Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

At least one Conditional Access policy is targeting the Device Code authentication flow

MT.1052HighEntra IDConditional Access

Part of Maester · Entra ID · Conditional Access · All checks

Run this check
Invoke-Maester -TestId MT.1052

Checks if at least one policy is targeting the Device Code condition.

Organizations should block or limit device code flow because it can be exploited in phishing attacks, such as those conducted by the Storm-2372 group. Attackers leverage this authentication method to trick users into entering device codes on malicious websites, granting unauthorized access to accounts. Blocking or limiting this flow helps prevent exploitation by minimizing attack vectors, improving overall security posture, and safeguarding against compromised credentials through phishing techniques.

Configure a Conditional Access policy to block the Device Code authentication flow and limit access to only trusted users and devices or to specific named locations.

Every attribute of this check
FieldValue
Test IDMT.1052
SeverityHigh
SuiteMaester
ProductEntra ID
FeatureConditional Access
AreaAuthentication
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1078.004 Cloud Accounts, T1528 Steal Application Access Token, T1566 Phishing
Supports controlsnist-800-53-r5:CM-7, nist-800-53-r5:IA-2
PowerShell testTest-MtCaDeviceCodeFlow
ServicesGraph