Entra ID Passkey Sign-In with Unusual Authenticator AAGUID
Identifies a successful passkey or FIDO2 authentication step in a Microsoft Entra ID sign-in using an Authenticator Attestation GUID (AAGUID) not previously seen in the tenant. A tenant-new AAGUID is an authenticator model the organization has not used before, which can be a newly adopted authenticator or an attacker-registered shadow passkey from tooling such as ROADtools roadtx or DSInternals.Passkeys. All-zero and malformed AAGUIDs carry no authenticator model information and are not evaluated by this rule.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2026/10/21"
3integration = ["azure"]
4maturity = "production"
5min_stack_comments = "FIELD_EXTRACT not available until 9.5.0"
6min_stack_version = "9.5.0"
7updated_date = "2026/11/23"
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies a successful passkey or FIDO2 authentication step in a Microsoft Entra ID sign-in using an Authenticator
13Attestation GUID (AAGUID) not previously seen in the tenant. A tenant-new AAGUID is an authenticator model the
14organization has not used before, which can be a newly adopted authenticator or an attacker-registered shadow passkey
15from tooling such as ROADtools roadtx or DSInternals.Passkeys. All-zero and malformed AAGUIDs carry no authenticator
16model information and are not evaluated by this rule.
17"""
18false_positives = [
19 """
20 A user legitimately enrolling and then signing in with a new authenticator model the organization has not used
21 before (a newly adopted hardware key vendor, a new platform passkey provider, or a new phone) produces a first-seen
22 AAGUID for the tenant. Correlate the AAGUID with the known-good authenticators for the environment (the FIDO
23 Metadata Service or the public passkey AAGUID reference), confirm the user registered the passkey, and review the
24 source, device, and whether the registration was recent and self-service. Environments without meaningful passkey
25 adoption will see first-seen AAGUIDs more often as adoption ramps.
26 """,
27]
28from = "now-5d"
29language = "esql"
30license = "Elastic License v2"
31name = "Entra ID Passkey Sign-In with Unusual Authenticator AAGUID"
32note = """## Triage and analysis
33
34### Investigating Entra ID Passkey Sign-In with Unusual 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 has not been seen for the tenant in the lookback window. First-seen is evaluated on ingestion time so delayed sign-in logs are not missed. The AAGUID identifies the authenticator model or provider; one that is new to the organization can be a newly adopted legitimate authenticator, or an attacker-registered shadow passkey being used for phishing-resistant persistence. Offensive tooling such as roadtx `registerpasskey` and DSInternals.Passkeys can register software passkeys with an arbitrary AAGUID, which may not match the organization's known authenticators.
37
38### Possible investigation steps
39
40- Resolve the AAGUID (`Esql.passkey_aaguid`) and provider string (`Esql.provider_values`) against the organization's known-good authenticators, the FIDO Metadata Service, or the public passkey AAGUID reference. An unknown or software-provider AAGUID on an account that normally uses a hardware key or platform passkey is higher priority. Note that an operator can set the AAGUID to spoof a known-good value, so a familiar AAGUID does not clear the sign-in on its own.
41- Confirm the user actually registered this passkey: review the `User registered security info` / FIDO2 registration audit events for the user, who initiated them, whether they were self-service, and whether the initiating application is the expected My Security Info portal rather than a script or API client.
42- Review the sign-in context (`Esql.user_values`, `Esql.source_ip_values`, `Esql.user_agent_values`, `Esql.app_values`) for a hosting or VPS origin, an anomalous user agent, or a first-party client inconsistent with the user's norm.
43- Determine whether the target holds privileged roles; a shadow passkey on a privileged account is high impact.
44
45### False positive analysis
46
47- A genuinely new but legitimate authenticator model (new hardware key vendor, new platform passkey provider, new phone) produces a first-seen AAGUID. Baseline the organization's authenticators and add exceptions for approved AAGUIDs.
48- As passkey adoption ramps in an environment, first-seen AAGUIDs appear more often; tune the lookback and expect early volume.
49
50### Response and remediation
51
52- If the user did not enroll this authenticator, 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.
53- Enforce FIDO2 attestation and configure AAGUID key restrictions so only approved authenticators can be registered and used; without enforced attestation an attacker can spoof an allowed AAGUID.
54"""
55references = [
56 "https://specterops.io/wp-content/uploads/sites/3/2026/08/Pass-the-Passkey_A4_v2.pdf",
57 "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-passkeys-fido2",
58 "https://cybersecurity.bureauveritas.com/services/information-technology/pentesting-services/what-can-be-pentested/cloud-pentesting/abusing-fido2-passkeys",
59 "https://www.elastic.co/security-labs/entra-id-oauth-phishing-detection",
60]
61risk_score = 47
62rule_id = "369fad3d-6abd-4f98-a20f-07dc444fde6e"
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 = "medium"
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-*
85
86| WHERE azure.signinlogs.category == "SignInLogs"
87 AND azure.signinlogs.properties.authentication_details IS NOT NULL
88 AND azure.tenant_id IS NOT NULL
89
90// filter for Passkey or FIDO2 security key sign-ins
91| EVAL ad = TO_STRING(azure.signinlogs.properties.authentication_details)
92| WHERE ad LIKE "*Passkey (*" OR ad LIKE "*FIDO2 security key*"
93
94// Pair each authentication method with its own success flag; event.outcome is sign-in level and is not tied to the passkey step
95| GROK ad """"authentication_method":%{DATA:method_raw},"authentication_"""
96| GROK ad """"succeeded":%{DATA:succeeded_raw}}"""
97| EVAL Esql.auth_methods = SPLIT(REPLACE(method_raw, """[\[\]"]""", ""), ","),
98 Esql.auth_method_succeeded = SPLIT(REPLACE(succeeded_raw, """[\[\]"]""", ""), ",")
99| EVAL Esql.method_outcome_pairs = MV_CONCAT(MV_ZIP(Esql.auth_methods, Esql.auth_method_succeeded, "~"), " || ")
100
101// Require the passkey or FIDO2 step itself to have succeeded
102| WHERE Esql.method_outcome_pairs LIKE "*Passkey (synced)~true*"
103 OR Esql.method_outcome_pairs LIKE "*Passkey (device-bound)~true*"
104 OR Esql.method_outcome_pairs LIKE "*FIDO2 security key~true*"
105
106// extract AAGUID from authentication method detail
107// a sign-in can carry several auth steps, so expand multi-valued details and evaluate each one
108| EVAL ad_detail = FIELD_EXTRACT(azure.signinlogs.properties.authentication_details, "authentication_method_detail")
109| MV_EXPAND ad_detail
110
111// find a well-formed 8-4-4-4-12 hex AAGUID anywhere in the value, independent of provider text or separator
112// the lookarounds reject longer hex/dash runs so a malformed value is not partially matched
113| GROK ad_detail """(?<![0-9A-Fa-f-])(?<aaguid_raw>[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})(?![0-9A-Fa-f-])"""
114
115// lowercase to normalize case; ignore missing or zeroed AAGUIDs, which carry no authenticator model
116| EVAL aaguid_raw = TO_LOWER(aaguid_raw)
117| WHERE aaguid_raw IS NOT NULL AND aaguid_raw != "00000000-0000-0000-0000-000000000000"
118
119// aggregate sign-in statistics by tenant and AAGUID
120| STATS Esql.first_ingested = MIN(event.ingested),
121 Esql.first_time_seen = MIN(@timestamp),
122 Esql.last_time_seen = MAX(@timestamp),
123 Esql.signin_count = COUNT(*),
124 Esql.user_count = COUNT_DISTINCT(azure.signinlogs.properties.user_id),
125 Esql.provider_values = VALUES(ad_detail),
126 Esql.user_values = VALUES(azure.signinlogs.properties.user_principal_name),
127 Esql.app_values = VALUES(azure.signinlogs.properties.app_display_name),
128 Esql.app_id_values = VALUES(azure.signinlogs.properties.app_id),
129 Esql.resource_values = VALUES(azure.signinlogs.properties.resource_display_name),
130 Esql.client_app_used_values = VALUES(azure.signinlogs.properties.client_app_used),
131 Esql.incoming_token_type_values = VALUES(azure.signinlogs.properties.incoming_token_type),
132 Esql.source_ip_values = VALUES(source.ip),
133 Esql.source_as_number_values = VALUES(source.`as`.number),
134 Esql.user_agent_values = VALUES(user_agent.original),
135 Esql.device_trust_type_values = VALUES(azure.signinlogs.properties.device_detail.trust_type),
136 Esql.device_is_managed_values = VALUES(azure.signinlogs.properties.device_detail.is_managed),
137 Esql.device_is_compliant_values = VALUES(azure.signinlogs.properties.device_detail.is_compliant),
138 Esql.conditional_access_status_values = VALUES(azure.signinlogs.properties.conditional_access_status),
139 Esql.auth_requirement_values = VALUES(azure.signinlogs.properties.authentication_requirement),
140 Esql.risk_state_values = VALUES(azure.signinlogs.properties.risk_state),
141 Esql.risk_level_during_signin_values = VALUES(azure.signinlogs.properties.risk_level_during_signin),
142 Esql.result_signature_values = VALUES(azure.signinlogs.result_signature),
143 Esql.correlation_id_values = VALUES(azure.signinlogs.properties.correlation_id),
144 Esql.session_id_values = VALUES(azure.signinlogs.properties.session_id),
145 Esql.unique_token_identifier_values = VALUES(azure.signinlogs.properties.unique_token_identifier)
146 BY azure.tenant_id, Esql.passkey_aaguid = aaguid_raw
147
148// first ingested within the last 10 minutes; ingestion time keeps delayed sign-in logs from aging out of the gate
149| EVAL Esql.recent_minutes = DATE_DIFF("minute", Esql.first_ingested, NOW())
150| WHERE Esql.recent_minutes <= 10
151| KEEP Esql.*, azure.tenant_id
152'''
153
154
155[[rule.threat]]
156framework = "MITRE ATT&CK"
157[[rule.threat.technique]]
158id = "T1098"
159name = "Account Manipulation"
160reference = "https://attack.mitre.org/techniques/T1098/"
161[[rule.threat.technique.subtechnique]]
162id = "T1098.001"
163name = "Additional Cloud Credentials"
164reference = "https://attack.mitre.org/techniques/T1098/001/"
165
166[rule.threat.tactic]
167id = "TA0003"
168name = "Persistence"
169reference = "https://attack.mitre.org/tactics/TA0003/"
Triage and analysis
Investigating Entra ID Passkey Sign-In with Unusual 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 has not been seen for the tenant in the lookback window. First-seen is evaluated on ingestion time so delayed sign-in logs are not missed. The AAGUID identifies the authenticator model or provider; one that is new to the organization can be a newly adopted legitimate authenticator, or an attacker-registered shadow passkey being used for phishing-resistant persistence. Offensive tooling such as roadtx registerpasskey and DSInternals.Passkeys can register software passkeys with an arbitrary AAGUID, which may not match the organization's known authenticators.
Possible investigation steps
- Resolve the AAGUID (
Esql.passkey_aaguid) and provider string (Esql.provider_values) against the organization's known-good authenticators, the FIDO Metadata Service, or the public passkey AAGUID reference. An unknown or software-provider AAGUID on an account that normally uses a hardware key or platform passkey is higher priority. Note that an operator can set the AAGUID to spoof a known-good value, so a familiar AAGUID does not clear the sign-in on its own. - Confirm the user actually registered this passkey: review the
User registered security info/ FIDO2 registration audit events for the user, who initiated them, whether they were self-service, and whether the initiating application is the expected My Security Info portal rather than a script or API client. - Review the sign-in context (
Esql.user_values,Esql.source_ip_values,Esql.user_agent_values,Esql.app_values) for a hosting or VPS origin, an anomalous user agent, or a first-party client inconsistent with the user's norm. - Determine whether the target holds privileged roles; a shadow passkey on a privileged account is high impact.
False positive analysis
- A genuinely new but legitimate authenticator model (new hardware key vendor, new platform passkey provider, new phone) produces a first-seen AAGUID. Baseline the organization's authenticators and add exceptions for approved AAGUIDs.
- As passkey adoption ramps in an environment, first-seen AAGUIDs appear more often; tune the lookback and expect early volume.
Response and remediation
- If the user did not enroll this authenticator, 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.
- Enforce FIDO2 attestation and configure AAGUID key restrictions so only approved authenticators can be registered and used; without enforced attestation an attacker can spoof an allowed AAGUID.
References
Related rules
- Entra ID Potential Passkey Downgrade
- Entra ID Non-Passkey Sign-In with Unusual Browser and OS
- Entra ID FIDO2 Passkey Registered Outside the Self-Service Portal
- Entra ID Application Self-Assigned to Privileged Role
- Entra ID Privileged Role Assigned to Another Account