← Back to Explore
elastichighTTP
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.
Detection Query
FROM logs-azure.signinlogs-* METADATA _id, _index, _version
| WHERE azure.signinlogs.category == "SignInLogs"
AND azure.signinlogs.properties.authentication_details IS NOT NULL
| EVAL ad = TO_STRING(azure.signinlogs.properties.authentication_details)
| WHERE ad LIKE "*Passkey (*" OR ad LIKE "*FIDO2 security key*"
// Pair each authentication method with its own success flag; event.outcome is sign-in level and is not tied to the passkey step
| GROK ad """"authentication_method":%{DATA:method_raw},"authentication_"""
| GROK ad """"succeeded":%{DATA:succeeded_raw}}"""
| GROK ad """"authentication_method_detail":%{DATA:detail_raw},"authentication_"""
| EVAL Esql.auth_methods = SPLIT(REPLACE(method_raw, """[\[\]"]""", ""), ","),
Esql.auth_method_succeeded = SPLIT(REPLACE(succeeded_raw, """[\[\]"]""", ""), ",")
| EVAL Esql.method_outcome_pairs = MV_CONCAT(MV_ZIP(Esql.auth_methods, Esql.auth_method_succeeded, "~"), " || ")
// Require the passkey or FIDO2 step itself to have succeeded
| WHERE Esql.method_outcome_pairs LIKE "*Passkey (synced)~true*"
OR Esql.method_outcome_pairs LIKE "*Passkey (device-bound)~true*"
OR Esql.method_outcome_pairs LIKE "*FIDO2 security key~true*"
// Extract the provider and AAGUID from the authenticator detail
| EVAL Esql.auth_method_details = SPLIT(REPLACE(detail_raw, """[\[\]"]""", ""), ",")
| MV_EXPAND Esql.auth_method_details
| GROK Esql.auth_method_details """%{GREEDYDATA:provider_raw} - %{NOTSPACE:aaguid_raw}"""
| WHERE aaguid_raw IS NOT NULL AND (
aaguid_raw == "00000000-0000-0000-0000-000000000000"
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}"
)
| EVAL Esql.passkey_aaguid = aaguid_raw, Esql.passkey_provider = provider_raw
| KEEP _id, _index, _version, @timestamp, azure.signinlogs.*, source.*, user.*, user_agent.*, event.outcome, Esql.*
Author
Elastic
Created
2026/10/22
Data Sources
Entra ID Sign-In Logs
References
Tags
Domain: CloudDomain: IdentityPlatform: Entra IDPlatform: AzureData Source: Entra ID Sign-In LogsUse Case: Identity and Access AuditUse Case: Threat DetectionTactic: PersistenceRule Type: ES|QLResources: Investigation GuideProfile: Beta
Raw Content
[metadata]
creation_date = "2026/10/22"
integration = ["azure"]
maturity = "production"
min_stack_comments = "ES|QL support for the flattened field type (authentication_details) is in preview from 9.5."
min_stack_version = "9.5.0"
updated_date = "2026/11/20"
[rule]
author = ["Elastic"]
description = """
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.
"""
false_positives = [
"""
WebAuthn clients may replace the AAGUID with zeros when attestation conveyance is "none", and test or custom
WebAuthn implementations can present zero or malformed AAGUIDs. Confirm the user registered the passkey, review the
registration audit event for the initiating application, and verify the sign-in context (source, device, timing)
before escalating. Enforcing FIDO2 attestation and AAGUID key restrictions prevents such credentials from being
registered at all.
""",
]
from = "now-9m"
language = "esql"
license = "Elastic License v2"
name = "Entra ID Passkey Sign-In with Nonattestable Authenticator AAGUID"
note = """## 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 = [
"https://specterops.io/wp-content/uploads/sites/3/2026/08/Pass-the-Passkey_A4_v2.pdf",
"https://github.com/dirkjanm/ROADtools",
"https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-passkeys-fido2",
"https://www.elastic.co/security-labs/entra-id-oauth-phishing-detection",
]
risk_score = 73
rule_id = "26ca4e6b-9c67-4d51-a23a-e3eccbbee3ec"
setup = """#### Required Microsoft Entra ID Sign-In Logs
This rule requires the Azure integration with Microsoft Entra ID Sign-In logs enabled and collected via Azure Event Hub.
"""
severity = "high"
tags = [
"Domain: Cloud",
"Domain: Identity",
"Platform: Entra ID",
"Platform: Azure",
"Data Source: Entra ID Sign-In Logs",
"Use Case: Identity and Access Audit",
"Use Case: Threat Detection",
"Tactic: Persistence",
"Rule Type: ES|QL",
"Resources: Investigation Guide",
"Profile: Beta",
]
timestamp_override = "event.ingested"
type = "esql"
query = '''
FROM logs-azure.signinlogs-* METADATA _id, _index, _version
| WHERE azure.signinlogs.category == "SignInLogs"
AND azure.signinlogs.properties.authentication_details IS NOT NULL
| EVAL ad = TO_STRING(azure.signinlogs.properties.authentication_details)
| WHERE ad LIKE "*Passkey (*" OR ad LIKE "*FIDO2 security key*"
// Pair each authentication method with its own success flag; event.outcome is sign-in level and is not tied to the passkey step
| GROK ad """"authentication_method":%{DATA:method_raw},"authentication_"""
| GROK ad """"succeeded":%{DATA:succeeded_raw}}"""
| GROK ad """"authentication_method_detail":%{DATA:detail_raw},"authentication_"""
| EVAL Esql.auth_methods = SPLIT(REPLACE(method_raw, """[\[\]"]""", ""), ","),
Esql.auth_method_succeeded = SPLIT(REPLACE(succeeded_raw, """[\[\]"]""", ""), ",")
| EVAL Esql.method_outcome_pairs = MV_CONCAT(MV_ZIP(Esql.auth_methods, Esql.auth_method_succeeded, "~"), " || ")
// Require the passkey or FIDO2 step itself to have succeeded
| WHERE Esql.method_outcome_pairs LIKE "*Passkey (synced)~true*"
OR Esql.method_outcome_pairs LIKE "*Passkey (device-bound)~true*"
OR Esql.method_outcome_pairs LIKE "*FIDO2 security key~true*"
// Extract the provider and AAGUID from the authenticator detail
| EVAL Esql.auth_method_details = SPLIT(REPLACE(detail_raw, """[\[\]"]""", ""), ",")
| MV_EXPAND Esql.auth_method_details
| GROK Esql.auth_method_details """%{GREEDYDATA:provider_raw} - %{NOTSPACE:aaguid_raw}"""
| WHERE aaguid_raw IS NOT NULL AND (
aaguid_raw == "00000000-0000-0000-0000-000000000000"
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}"
)
| EVAL Esql.passkey_aaguid = aaguid_raw, Esql.passkey_provider = provider_raw
| KEEP _id, _index, _version, @timestamp, azure.signinlogs.*, source.*, user.*, user_agent.*, event.outcome, Esql.*
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1098"
name = "Account Manipulation"
reference = "https://attack.mitre.org/techniques/T1098/"
[[rule.threat.technique.subtechnique]]
id = "T1098.001"
name = "Additional Cloud Credentials"
reference = "https://attack.mitre.org/techniques/T1098/001/"
[rule.threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"