Join our Newsletter — 33% off our NHI Course
Home› Guides› Entra ID Protection Anomalous Token Detections: Token and…
Guide Identity Visibility, Posture & Threat Detection

Entra ID Protection Anomalous Token Detections: Token and Token Issuer Anomalies Explained

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

An attacker who replays a stolen session or refresh token, or forges a SAML token, signs in with the MFA claim already satisfied, so the alerts that catch it are the token detections in Microsoft Entra ID Protection. Two of them, Anomalous token and Token issuer anomaly, look at the token itself rather than the password or the location alone. This guide explains what each detection looks for, how to triage the alert, which false positives to expect, and how to contain the incident, including the session revocation and federation checks that a password reset alone does not cover. It is for SOC analysts and identity engineers who already run ID Protection; the overall product, risk policies and roles are in the Microsoft Entra ID Protection guide.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • Two different attacks, two detections. Anomalous token flags a session or refresh token with unusual characteristics, a sign of replay; Token issuer anomaly flags a SAML token whose issuer may be compromised, a sign of forgery at a federation server.
  • MFA does not clear these. Microsoft no longer auto-remediates sessions with MFA claims when a token theft detection fires; with a user risk policy the user must make a secure password change and reauthenticate with MFA.
  • A password reset is not containment. Revoke refresh tokens, remove attacker-registered MFA methods and devices, delete inbox rules, and remember existing access tokens stay valid until they expire unless the resource supports continuous access evaluation.
  • Token issuer anomaly is a federation incident. Treat it as possible signing key compromise: check the domain federation configuration, token signing certificates and the AD FS or third-party IdP server, not just the user.
  • Expect noise at low and medium. Microsoft states Anomalous token still has a higher than normal chance of false positives at those levels, so triage by context and use Confirm safe for genuine false positives.

What the detections look for

ID Protection calculates some detections in real time during sign-in and others offline after the event. The token detections sit with a small group Microsoft treats as token theft related. The table summarises them from Microsoft's detection reference; names and licensing change, so check the reference before building rules on a riskEventType.

DetectionriskEventTypeRisk typeTimingWhat it indicates
Anomalous tokenanomalousTokenSign-in and userReal-time or offlineSession or refresh token with abnormal characteristics, such as an unusual lifetime or replay from an unfamiliar location
Token issuer anomalytokenIssuerAnomalySign-inOfflineThe SAML token issuer is potentially compromised; claims are unusual or match known attacker patterns
Attacker in the MiddleattackerinTheMiddleUserOfflineAuthentication session linked to a malicious reverse proxy; raises the user to High
Verified threat actor IPnationStateIPSign-inReal-timeSign-in from IP addresses associated with nation state or cyber crime groups, from Microsoft Threat Intelligence data
Microsoft Entra threat intelligenceinvestigationsThreatIntelligenceSign-in and userReal-time or offlineActivity matching known attack patterns

Availability: Microsoft lists Anomalous token, Token issuer anomaly and Verified threat actor IP as premium detections with Microsoft Entra ID P2, and Attacker in the Middle with Microsoft 365 E5 together with Enterprise Mobility + Security E5. Tenants without P2 see premium detections as "Additional risk detected" without detail, and full report and Microsoft Graph access to risk data comes with P2. Token protection and continuous access evaluation have their own requirements in Microsoft's Conditional Access documentation.

These detections map to a handful of ATT&CK techniques, which helps when you correlate them with endpoint and email alerts:

TechniqueRelevant detectionWhat else to look for
T1557 Adversary-in-the-MiddleAttacker in the Middle, Anomalous tokenPhishing email or suspicious URL click shortly before the sign-in
T1539 Steal Web Session CookieAnomalous tokenInfostealer or browser credential theft alerts on the user's device
T1550.001 Application Access TokenAnomalous tokenToken use from a new IP, user agent or application with no matching interactive sign-in
T1528 Steal Application Access TokenAnomalous token, threat intelligenceNew OAuth consent or unusual Graph access after the sign-in
T1606.002 SAML TokensToken issuer anomalySigning certificate export or changes on the federation server
T1484.002 Trust ModificationToken issuer anomalyDomain federation settings changed or a new federated domain added

Anomalous token

Microsoft describes Anomalous token as abnormal characteristics in the token, such as an unusual lifetime or a token played from an unfamiliar location, covering session tokens and refresh tokens. If the location, application, IP address, user agent or other characteristics are unexpected for the user, Microsoft advises treating it as a possible indicator of token replay. It can fire in real time on the sign-in and offline afterwards, and it contributes to both sign-in risk and user risk.

  • Typical causes: a session cookie captured by an adversary-in-the-middle phishing kit and replayed from attacker infrastructure, or browser session data taken by an infostealer and imported elsewhere. See the AiTM Phishing Guide and the Session Hijacking and Cookie Theft Guide.
  • Why MFA does not help: the stolen token already carries the MFA claim from the victim's real sign-in, so Conditional Access that only requires MFA is satisfied.
  • Non-interactive sign-ins matter: refresh token replay often appears in the non-interactive sign-in log rather than the interactive one. Microsoft's token theft playbook tells analysts to give unfamiliar non-interactive sign-ins immediate attention.
  • Risk detail pane: Microsoft added session details to the risk detection pane for these detections, including token issuer type, sign-in time, IP address, location, client, request ID and correlation ID.

Token issuer anomaly

Token issuer anomaly is an offline sign-in risk detection. Microsoft describes it as the SAML token issuer for the associated SAML token being potentially compromised, with claims in the token that are unusual or match known attacker patterns. It applies where a domain is federated to AD FS or another SAML identity provider, because in that model Entra ID trusts any token signed with the federation server's signing key.

  • Why it is serious: an attacker who has the token signing private key can mint a SAML token for any user in the federated domain, with any claims, including an MFA claim. This is the "Golden SAML" pattern covered in the Golden SAML and Federation Trust Abuse Defence Guide.
  • Not a user problem: resetting the affected user's password does nothing to a forged token path. The fix is on the federation side: the signing key, the federation server and the trust configuration.
  • MFA claims from the IdP: the domain federation setting federatedIdpMfaBehavior decides whether Entra ID accepts MFA performed by the federated IdP. The default, acceptIfMfaDoneByFederatedIdp, accepts it; rejectMfaByFederatedIdp makes Entra ID always perform MFA itself, which stops a forged MFA claim from satisfying Conditional Access.
  • Reduce exposure: tenants that move authentication to Entra ID remove the external signing key from the trust path. See AD FS to Entra ID Migration.

Triage steps

Microsoft's investigation guidance for both detections turns on one question: are the location, application, IP address, user agent and other characteristics expected for this user? Work through it in this order.

  1. Open the detection and the sign-in. In the Risk detections report, note the riskEventType, risk level, detection timing, IP, location and correlation ID. Find the matching rows in SigninLogs and, for refresh token replay, the non-interactive sign-ins (AADNonInteractiveUserSignInLogs if you export to Log Analytics or Microsoft Sentinel).
  2. Compare with the user's baseline. Summarise the user's sign-ins by IP address, device ID, city, country and application over recent days. A token used from a new ASN or hosting provider, with no compliant device ID and a different user agent from the original sign-in, is a strong replay signal.
  3. Look for the lure. Check email and URL click telemetry for a phishing message shortly before the original sign-in, and the device for infostealer or token theft alerts. Microsoft's playbook also lists Defender for Endpoint's attempted access of Primary Refresh Token alert as a related signal; see the Entra ID Primary Refresh Token (PRT) Security Guide.
  4. Check for persistence in AuditLogs. Look for new MFA or passwordless methods, new device registrations, OAuth consents, and role or application changes made after the detection. In Exchange, look for new inbox rules and forwarding (OfficeActivity or CloudAppEvents).
  5. Ask the user, carefully. Microsoft's playbook says that if the user cannot confirm the activity, assume breach. Microsoft also says not to dismiss risk solely because identity verification succeeded.
  6. For Token issuer anomaly, widen the scope. Query for other users with the same detection, check the domain's federation configuration in Microsoft Graph (issuerUri, signingCertificate, nextSigningCertificate, signingCertificateUpdateStatus) and review AuditLogs for changes to domain authentication or federation settings. Engage the team that owns the federation server.
  7. Decide and record. Confirm compromised and contain, Confirm safe for a false positive, or Dismiss for a benign true positive, and record the evidence behind the decision.

The KQL tables Microsoft's playbook uses are AADUserRiskEvents (filter RiskEventType on "anomalous" or "unfamiliar" for the IP in question), SigninLogs, AuditLogs, IdentityInfo for admin roles, OfficeActivity by ClientIP and, in Defender XDR advanced hunting, CloudAppEvents. The AiTM and token replay detection guide covers custom rules built on these tables.

False positives

Microsoft says Anomalous token was historically tuned to produce more noise than other detections and that, despite improvements, low and medium risk sessions still have a higher than normal chance of being false positives. Common benign causes are listed below with the evidence that separates them from replay.

Benign causeWhy it looks anomalousEvidence that it is benign
VPN or secure web gateway egress changeToken used from a new IP or countryIP belongs to your own VPN or proxy ranges; same device ID and user agent
Travel or mobile network roamingUnfamiliar location mid-sessionCompliant, managed device; location matches known travel
Long-running clients and sync toolsUnusual token lifetime or refresh patternKnown application ID and user agent; pattern repeats for many users
Approved testingDeliberate token replay in a red team or phishing simulationChange ticket or rules of engagement covering the user, time and source IP

Use the feedback options as Microsoft defines them: Confirm safe when the detection is wrong, so similar sign-ins are not considered risky; Dismiss when the activity was real but not malicious, such as approved testing; Confirm compromised when it is an attack. Do not bulk-dismiss token detections to clear a queue, and do not mark approved red team activity as safe, because that teaches the model to ignore the same pattern from a real attacker.

Response and containment

Microsoft's investigation guidance says to mark the sign-in compromised, invoke a password reset if self-remediation has not already done it, and block the user if the attacker can reset the password. Containment for token theft needs more than that, because a reset alone does not kill tokens already issued.

  1. Confirm compromised. This raises user risk to High and adds the Admin confirmed user compromised detection, so risk-based Conditional Access applies to further sign-ins.
  2. Disable the account if the attacker is active. Clear Account enabled on the user, or use Update-MgUser with AccountEnabled set to false. Disabling an administrator needs Privileged Authentication Administrator.
  3. Revoke sessions. Use Revoke sessions on the user's overview page, Revoke-MgUserSignInSession in Microsoft Graph PowerShell, or the revokeSignInSessions Graph action. This invalidates refresh tokens. Microsoft notes existing access tokens stay valid until they expire, one hour by default, unless the resource supports continuous access evaluation, and that Entra ID cannot revoke an application's own session cookie. See CAEP and Continuous Access Evaluation.
  4. Reset credentials securely. A secure password change with MFA, or an admin temporary password (which needs Security Operator plus User Administrator from ID Protection). For hybrid accounts, reset in on-premises AD; Microsoft suggests two resets if replication may lag.
  5. Remove persistence. Delete MFA methods and devices the attacker registered, disable the user's suspicious devices, delete malicious inbox rules and forwarding, revoke OAuth grants the attacker added, and roll back any privileged changes.
  6. Block the infrastructure. Add the attacker IPs to a blocking named location or block them at the federation edge, accepting that VPN and proxy rotation limit this.
  7. Federation checks for Token issuer anomaly. Treat the signing key as compromised until proven otherwise: investigate the federation server, rotate the token signing certificate (twice, so the old certificate is not left as the next certificate), confirm the federation configuration in Entra ID matches the new certificate, review federatedIdpMfaBehavior, and revoke sessions for every user in scope. Follow the incident handling in the Golden SAML and Federation Trust Abuse Defence Guide.
  8. Determine data accessed. Review mailbox, SharePoint and OneDrive activity from the attacker IPs, and assess notification duties with your privacy team.

The step-by-step incident flow, with roles and evidence to preserve, is in the OAuth Token Theft Incident Playbook and the Session Token Theft Response Playbook.

Prevention that reduces these alerts: Token protection is a Conditional Access session control that accepts only device-bound sign-in session tokens from supported applications. Microsoft lists Exchange Online, SharePoint Online and Teams native apps on Windows, macOS and iOS/iPadOS, plus Azure Virtual Desktop and Windows 365 on Windows, with browser support in preview. Microsoft recommends a pilot group and report-only mode first. Phishing-resistant authentication (passkeys, Windows Hello for Business, certificate-based authentication) removes the AiTM route that feeds most replay.

Detection and measurement

  • Stream risk events to your SIEM: export risk detections and both sign-in logs through diagnostic settings, so detections can be joined with email, endpoint and audit events.
  • Alert on the token group specifically: raise anomalousToken at any level for privileged users, and any tokenIssuerAnomaly, to an incident rather than a queue item.
  • Watch who changes risk: alert on Dismiss and Confirm safe actions taken in bulk or against privileged users.

Useful metrics:

  • Median time from a token detection to sessions revoked for confirmed compromises.
  • Percentage of token detections closed with a recorded decision and evidence.
  • False positive rate for Anomalous token by risk level, reviewed monthly.
  • Percentage of Exchange, SharePoint and Teams sign-ins covered by token protection enforcement.
  • Number of federated domains, trending to zero or to rejectMfaByFederatedIdp.

Common failure patterns

  • Closing on a password reset. The attacker's refresh token or app session survives because sessions were not revoked and persistence was not removed.
  • Treating Token issuer anomaly as a single risky user. The federation key is the asset at risk; every user in the federated domain is exposed until it is rotated.
  • Ignoring non-interactive logs. Refresh token replay hides there, and many tenants export only interactive sign-ins.
  • Dismissing instead of confirming. Dismiss leaves the password and sessions as they were, so the user stays compromised.
  • Relying on MFA prompts. Conditional Access that only asks for MFA is satisfied by the stolen token's existing claim. Pair it with token protection and phishing-resistant methods, and revoke sessions on every confirmed case.

Framework mapping

FrameworkReferenceRelevance
NIST CSF 2.0DE.CM, DE.AE, RS.MIMonitoring sign-ins, analysing adverse events, mitigating incidents
NIST SP 800-53 Rev. 5AC-12, IA-2, SI-4, IR-4Session termination, authentication, system monitoring, incident handling
CIS Controls v8.1Control 6, Control 8, Control 17Access control management, audit log management, incident response
MITRE ATT&CKT1557, T1539, T1550.001, T1528, T1606.002, T1484.002Token theft, replay and forgery techniques the detections surface

Practitioner checklist

  • Confirm which token detections your licences produce and that risk data reaches your SIEM, including non-interactive sign-ins.
  • Route any Token issuer anomaly and any Anomalous token on a privileged user straight to an incident.
  • Write a triage runbook that compares IP, device ID, user agent and application with the user's baseline.
  • Make session revocation, MFA method review and inbox rule review mandatory steps for every confirmed token compromise.
  • Keep a federation incident procedure ready: certificate rotation, configuration check and tenant-wide session revocation.
  • Set federatedIdpMfaBehavior deliberately on every federated domain, or plan the move to cloud authentication.
  • Pilot token protection in report-only mode for Exchange, SharePoint and Teams, then enforce.
  • Review a sample of Confirm safe and Dismiss decisions monthly.

Standards and references

Related NHI Mgmt Group resources: Microsoft Entra ID Protection · Entra ID Security Guide · OAuth Token Theft Incident Playbook · Golden SAML and Federation Trust Abuse Defence Guide · Conditional Access Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.