Entra ID Passkey Sign-In with Nonattestable Authenticator AAGUID

Identifies a successful passkey or FIDO2 authentication step in a Microsoft Entra ID sign-in whose Authenticator Attestation GUID (AAGUID) is all zeros or is not a well-formed UUID. Platform and hardware authenticators report a vendor AAGUID registered in the FIDO Metadata Service, so a zero or malformed value indicates a software authenticator or a custom WebAuthn implementation. Offensive tooling such as ROADtools roadtx and DSInternals.Passkeys can register shadow passkeys with any AAGUID, including legitimate vendor values, so this rule catches only the unconfigured or careless case. Treat it as a corroborating signal alongside non-portal passkey registration.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2026/10/22"
  3integration = ["azure"]
  4maturity = "production"
  5min_stack_comments = "ES|QL support for the flattened field type (authentication_details) is in preview from 9.5."
  6min_stack_version = "9.5.0"
  7updated_date = "2026/11/20"
  8
  9[rule]
 10author = ["Elastic"]
 11description = """
 12Identifies a successful passkey or FIDO2 authentication step in a Microsoft Entra ID sign-in whose Authenticator Attestation GUID (AAGUID) is
 13all zeros or is not a well-formed UUID. Platform and hardware authenticators report a vendor AAGUID registered in the
 14FIDO Metadata Service, so a zero or malformed value indicates a software authenticator or a custom WebAuthn
 15implementation. Offensive tooling such as ROADtools roadtx and DSInternals.Passkeys can register shadow passkeys with
 16any AAGUID, including legitimate vendor values, so this rule catches only the unconfigured or careless case. Treat it as a
 17corroborating signal alongside non-portal passkey registration.
 18"""
 19false_positives = [
 20    """
 21    WebAuthn clients may replace the AAGUID with zeros when attestation conveyance is "none", and test or custom
 22    WebAuthn implementations can present zero or malformed AAGUIDs. Confirm the user registered the passkey, review the
 23    registration audit event for the initiating application, and verify the sign-in context (source, device, timing)
 24    before escalating. Enforcing FIDO2 attestation and AAGUID key restrictions prevents such credentials from being
 25    registered at all.
 26    """,
 27]
 28from = "now-9m"
 29language = "esql"
 30license = "Elastic License v2"
 31name = "Entra ID Passkey Sign-In with Nonattestable Authenticator AAGUID"
 32note = """## Triage and analysis
 33
 34### Investigating Entra ID Passkey Sign-In with Nonattestable Authenticator AAGUID
 35
 36A user successfully completed a passkey or FIDO2 authentication step (the step's own `succeeded` flag is checked, not the sign-in level `event.outcome`) with an authenticator whose AAGUID is all zeros (`00000000-0000-0000-0000-000000000000`) or not a well-formed UUID. Vendor authenticators report a registered AAGUID, so this value points to a software authenticator. Offensive tooling (ROADtools roadtx `registerpasskey`, DSInternals.Passkeys) defaults to or can be set to a legitimate vendor AAGUID, so absence of this alert is not evidence of a genuine authenticator; presence indicates an unconfigured software authenticator or a custom WebAuthn client and warrants validation of how the passkey was registered.
 37
 38### Possible investigation steps
 39
 40- Confirm the user did not knowingly register a new passkey. Review the `User registered security info` / FIDO2 registration audit events for the user and determine who initiated the registration, whether it was self-service, and when it occurred relative to this sign-in.
 41- Review the sign-in context (`user.name`, `source.ip`, `user_agent.original`, `azure.signinlogs.properties.app_display_name`) for a hosting or VPS origin, an anomalous or automation user agent, or a client inconsistent with the user's norm.
 42- Determine whether the target holds privileged roles; a shadow passkey on a privileged account is high impact.
 43- Correlate with recent adversary-in-the-middle sign-ins, OAuth consent grants holding `UserAuthenticationMethod.ReadWrite.All`, device registrations, or PRT issuance for the same user.
 44
 45### False positive analysis
 46
 47- An all-zero AAGUID is not produced by legitimate platform or hardware authenticators, so false positives are rare. A non-malicious test or custom WebAuthn implementation is the main benign cause; confirm the user and registration context.
 48
 49### Response and remediation
 50
 51- Treat the account as potentially compromised: delete the attacker-registered passkey and any attacker-registered device (delete devices first to break device-bound PRT persistence), then revoke sessions and refresh tokens and reset credentials.
 52- Review and revoke any application or consent grant that could have registered the passkey, and audit other authentication methods added for the user.
 53- Enforce FIDO2 attestation and configure AAGUID key restrictions so only approved authenticators can be registered and used.
 54"""
 55references = [
 56    "https://specterops.io/wp-content/uploads/sites/3/2026/08/Pass-the-Passkey_A4_v2.pdf",
 57    "https://github.com/dirkjanm/ROADtools",
 58    "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-passkeys-fido2",
 59    "https://www.elastic.co/security-labs/entra-id-oauth-phishing-detection",
 60]
 61risk_score = 73
 62rule_id = "26ca4e6b-9c67-4d51-a23a-e3eccbbee3ec"
 63setup = """#### Required Microsoft Entra ID Sign-In Logs
 64This rule requires the Azure integration with Microsoft Entra ID Sign-In logs enabled and collected via Azure Event Hub.
 65"""
 66severity = "high"
 67tags = [
 68    "Domain: Cloud",
 69    "Domain: Identity",
 70    "Platform: Entra ID",
 71    "Platform: Azure",
 72    "Data Source: Entra ID Sign-In Logs",
 73    "Use Case: Identity and Access Audit",
 74    "Use Case: Threat Detection",
 75    "Tactic: Persistence",
 76    "Rule Type: ES|QL",
 77    "Resources: Investigation Guide",
 78    "Profile: Beta",
 79]
 80timestamp_override = "event.ingested"
 81type = "esql"
 82
 83query = '''
 84FROM logs-azure.signinlogs-* METADATA _id, _index, _version
 85| WHERE azure.signinlogs.category == "SignInLogs"
 86    AND azure.signinlogs.properties.authentication_details IS NOT NULL
 87| EVAL ad = TO_STRING(azure.signinlogs.properties.authentication_details)
 88| WHERE ad LIKE "*Passkey (*" OR ad LIKE "*FIDO2 security key*"
 89
 90// Pair each authentication method with its own success flag; event.outcome is sign-in level and is not tied to the passkey step
 91| GROK ad """"authentication_method":%{DATA:method_raw},"authentication_"""
 92| GROK ad """"succeeded":%{DATA:succeeded_raw}}"""
 93| GROK ad """"authentication_method_detail":%{DATA:detail_raw},"authentication_"""
 94| EVAL Esql.auth_methods = SPLIT(REPLACE(method_raw, """[\[\]"]""", ""), ","),
 95       Esql.auth_method_succeeded = SPLIT(REPLACE(succeeded_raw, """[\[\]"]""", ""), ",")
 96| EVAL Esql.method_outcome_pairs = MV_CONCAT(MV_ZIP(Esql.auth_methods, Esql.auth_method_succeeded, "~"), " || ")
 97
 98// Require the passkey or FIDO2 step itself to have succeeded
 99| WHERE Esql.method_outcome_pairs LIKE "*Passkey (synced)~true*"
100    OR Esql.method_outcome_pairs LIKE "*Passkey (device-bound)~true*"
101    OR Esql.method_outcome_pairs LIKE "*FIDO2 security key~true*"
102
103// Extract the provider and AAGUID from the authenticator detail
104| EVAL Esql.auth_method_details = SPLIT(REPLACE(detail_raw, """[\[\]"]""", ""), ",")
105| MV_EXPAND Esql.auth_method_details
106| GROK Esql.auth_method_details """%{GREEDYDATA:provider_raw} - %{NOTSPACE:aaguid_raw}"""
107| WHERE aaguid_raw IS NOT NULL AND (
108    aaguid_raw == "00000000-0000-0000-0000-000000000000"
109    OR NOT aaguid_raw RLIKE "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
110  )
111| EVAL Esql.passkey_aaguid = aaguid_raw, Esql.passkey_provider = provider_raw
112| KEEP _id, _index, _version, @timestamp, azure.signinlogs.*, source.*, user.*, user_agent.*, event.outcome, Esql.*
113'''
114
115
116[[rule.threat]]
117framework = "MITRE ATT&CK"
118[[rule.threat.technique]]
119id = "T1098"
120name = "Account Manipulation"
121reference = "https://attack.mitre.org/techniques/T1098/"
122[[rule.threat.technique.subtechnique]]
123id = "T1098.001"
124name = "Additional Cloud Credentials"
125reference = "https://attack.mitre.org/techniques/T1098/001/"
126
127[rule.threat.tactic]
128id = "TA0003"
129name = "Persistence"
130reference = "https://attack.mitre.org/tactics/TA0003/"

Triage and analysis

Investigating Entra ID Passkey Sign-In with Nonattestable Authenticator AAGUID

A user successfully completed a passkey or FIDO2 authentication step (the step's own succeeded flag is checked, not the sign-in level event.outcome) with an authenticator whose AAGUID is all zeros (00000000-0000-0000-0000-000000000000) or not a well-formed UUID. Vendor authenticators report a registered AAGUID, so this value points to a software authenticator. Offensive tooling (ROADtools roadtx registerpasskey, DSInternals.Passkeys) defaults to or can be set to a legitimate vendor AAGUID, so absence of this alert is not evidence of a genuine authenticator; presence indicates an unconfigured software authenticator or a custom WebAuthn client and warrants validation of how the passkey was registered.

Possible investigation steps

  • Confirm the user did not knowingly register a new passkey. Review the User registered security info / FIDO2 registration audit events for the user and determine who initiated the registration, whether it was self-service, and when it occurred relative to this sign-in.
  • Review the sign-in context (user.name, source.ip, user_agent.original, azure.signinlogs.properties.app_display_name) for a hosting or VPS origin, an anomalous or automation user agent, or a client inconsistent with the user's norm.
  • Determine whether the target holds privileged roles; a shadow passkey on a privileged account is high impact.
  • Correlate with recent adversary-in-the-middle sign-ins, OAuth consent grants holding UserAuthenticationMethod.ReadWrite.All, device registrations, or PRT issuance for the same user.

False positive analysis

  • An all-zero AAGUID is not produced by legitimate platform or hardware authenticators, so false positives are rare. A non-malicious test or custom WebAuthn implementation is the main benign cause; confirm the user and registration context.

Response and remediation

  • Treat the account as potentially compromised: delete the attacker-registered passkey and any attacker-registered device (delete devices first to break device-bound PRT persistence), then revoke sessions and refresh tokens and reset credentials.
  • Review and revoke any application or consent grant that could have registered the passkey, and audit other authentication methods added for the user.
  • Enforce FIDO2 attestation and configure AAGUID key restrictions so only approved authenticators can be registered and used.

References

Related rules

to-top