Entra ID FIDO2 Passkey Registered Outside the Self-Service Portal
editEntra ID FIDO2 Passkey Registered Outside the Self-Service Portal
editIdentifies the registration of a FIDO2 or passkey authentication method for a Microsoft Entra ID user that was not initiated by the self-service combined registration portal (Microsoft App Access Panel), My SignIns or My Profile. Registration through Microsoft Graph, a service principal, or another application can indicate scripted provisioning with tooling such as DSInternals.Passkeys or roadtx, which adversaries use after account takeover to register a shadow passkey for phishing-resistant persistence. Administrative provisioning on behalf of users follows the same path and should be baselined.
Rule type: query
Rule indices:
- logs-azure.auditlogs-*
Severity: medium
Risk score: 47
Runs every: 5m
Searches indices from: now-9m (Date Math format, see also Additional look-back time)
Maximum alerts per execution: 100
References:
- https://cybersecurity.bureauveritas.com/services/information-technology/pentesting-services/what-can-be-pentested/cloud-pentesting/abusing-fido2-passkeys
- https://github.com/SpecterOps/pass-the-passkey
- https://blog.icewolf.ch/archive/2024/10/25/register-FIDO2-passkey-in-entra-id-on-behalf-of-users-with-powershell/
- https://www.elastic.co/security-labs/entra-id-oauth-phishing-detection
Tags:
- Domain: Cloud
- Domain: Identity
- Platform: Entra ID
- Platform: Azure
- Data Source: Entra ID Audit Logs
- Use Case: Identity and Access Audit
- Use Case: Threat Detection
- Tactic: Persistence
- Rule Type: Custom Query (KQL)
- Resources: Investigation Guide
- Profile: Beta
Version: 1
Rule authors:
- Elastic
Rule license: Elastic License v2
Investigation guide
editTriage and analysis
Investigating Entra ID FIDO2 Passkey Registered Outside the Self-Service Portal
A FIDO2 or passkey authentication method was registered for a user through a path other than the self-service combined registration portal. Legitimate end-user enrollment is initiated by the "Microsoft App Access Panel" application (0000000c-0000-0000-c000-000000000000). Registration via Microsoft Graph, a service principal, or another application can be legitimate admin provisioning, but it is also how adversaries establish persistence after account takeover: using a stolen token or a privileged application granted UserAuthenticationMethod.ReadWrite.All, they register an attacker-controlled passkey (a "shadow passkey") that is phishing-resistant and survives password resets and ordinary session revocation.
Possible investigation steps
-
Identify the initiating application or service principal (
azure.auditlogs.properties.initiated_by.app.displayName/initiated_by.app.appId/initiated_by.app.servicePrincipalId) and determine whether it is an approved provisioning tool in the environment. -
Compare the initiator (
azure.auditlogs.properties.initiated_by.user.userPrincipalName) with the target (azure.auditlogs.properties.target_resources.0.user_principal_name). An initiator that differs from the target, or an app/service-principal initiator, is higher priority. -
Inspect the registered authenticator in the event’s
modifiedProperties:Fido2AuthenticationMethod.AaGuid(compare against the organization’s known-good AAGUIDs and known offensive-tooling AAGUIDs),Fido2AuthenticationMethod.AttestationLevel(NotAttestedis lower assurance), andFido2AuthenticationMethod.PasskeyType(Syncedkeys are portable off-device). -
Correlate with
azure.signinlogsand OAuth consent/application audit events shortly before the registration: look for an adversary-in-the-middle session, a device-code flow, or a newly consented application that holdsUserAuthenticationMethod.ReadWrite.All. - Determine whether the target holds privileged roles; a shadow passkey on a privileged account is high impact.
False positive analysis
- Administrative or scripted provisioning of FIDO2 keys/passkeys on behalf of users (Graph/PowerShell) also originates outside the portal. Baseline and except the approved provisioning applications and administrators.
- If the initiating application is a sanctioned identity-lifecycle or helpdesk tool, confirm the target and timing align with an expected onboarding or provisioning activity.
Response and remediation
- If the registration is unauthorized, delete the attacker-registered passkey and any attacker-registered device via Microsoft Graph or the Entra portal. Delete devices first to break device-bound PRT persistence, then revoke sessions and refresh tokens and reset credentials.
- Review and revoke the application or consent grant that performed the registration, and audit other authentication methods added by the same principal.
- Enforce a phishing-resistant Conditional Access authentication strength and restrict which applications can write authentication methods.
Setup
editRequired Microsoft Entra ID Audit Logs
This rule requires the Azure integration with Microsoft Entra ID Audit logs enabled and collected via Azure Event Hub.
Rule query
editdata_stream.dataset:azure.auditlogs and
event.outcome:(Success or success) and
(
(
azure.auditlogs.operation_name:"User registered security info" and
azure.auditlogs.properties.result_reason:(
"User registered Fido2 Authentication Method" or
"User registered Passkey"
)
) or
(
azure.auditlogs.operation_name:"Admin registered security info" and
azure.auditlogs.properties.result_reason:(
"Admin registered Fido2 Authentication Method for user" or
"Admin registered Passkey"
)
)
) and
azure.auditlogs.properties.initiated_by.app.appId:(
* and not (
0000000c-0000-0000-c000-000000000000 or
19db86c3-b2b9-44cc-b339-36da233a3be2 or
8c59ead7-d703-4a27-9e55-c96a0054c8d2
)
)
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Persistence
- ID: TA0003
- Reference URL: https://attack.mitre.org/tactics/TA0003/
-
Technique:
- Name: Account Manipulation
- ID: T1098
- Reference URL: https://attack.mitre.org/techniques/T1098/
-
Sub-technique:
- Name: Additional Cloud Credentials
- ID: T1098.001
- Reference URL: https://attack.mitre.org/techniques/T1098/001/