Azure AD Device Code Authentication
The following analytic identifies Azure Device Code Phishing attacks, which can lead to Azure Account Take-Over (ATO). It leverages Azure AD SignInLogs to detect suspicious authentication requests using the device…
Description
The following analytic identifies Azure Device Code Phishing attacks, which can lead to Azure Account Take-Over (ATO). It leverages Azure AD SignInLogs to detect suspicious authentication requests using the device code authentication protocol. This activity is significant as it indicates potential bypassing of Multi-Factor Authentication (MFA) and Conditional Access Policies (CAPs) through phishing emails. If confirmed malicious, attackers could gain unauthorized access to Azure AD, Exchange mailboxes, and Outlook Web Application (OWA), leading to potential data breaches and unauthorized data access.
Detection logic
Detection requirements
- Platform
- ContainersIaaSIdentity ProviderLinuxmacOSOffice SuiteSaaSWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
- Log source category
- azure_active_directory
Known benign triggers
- In most organizations, device code authentication will be used to access common Microsoft service but it may be legitimate for others. Filter as needed.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| 0xboku.com/2021/07/12/ArtOfDeviceCodePhish.html | Only this detection cites it |
| attack.mitre.org/techniques/T1528 | Only this detection cites it |
| embracethered.com/blog/posts/2022/device-code-phishing/ | Only this detection cites it |
| github.com/rvrsh3ll/TokenTactics | 3from 2 sources |
| learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- d68d8732-6f7e-4ee5-a6eb-737f2b990b91
- Tagged by the source as
- Azure Active Directory Account TakeoverAzure TenantcloudSplunk CloudSplunk EnterpriseSplunk Enterprise Securityidentity
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Published
- Aug 26, 2026
- Version
- 1