Independent Microsoft 365 security assessment.Atlant Security
365/AuditBY ATLANT SECURITY
Build your scope Audit brief builder

IDENTITY THREATS / MICROSOFT 365

Device code phishing in Microsoft 365

Understand device code phishing, review Entra Conditional Access and investigate suspicious sign-ins. Scope a Microsoft 365 exposure review with Atlant Security.

Discuss your requirements

A genuine sign-in can authorise the wrong request

Device code phishing abuses a legitimate sign-in method designed for devices and applications that cannot complete a conventional browser sign-in themselves. A person is persuaded to enter a supplied code on Microsoft’s real authentication page. The crucial question is who initiated the request that the code represents.

If an attacker initiated it, successful authentication can give the requesting client tokens for permitted resources under the user’s identity. The consequences depend on the tokens, permissions and controls involved; they do not automatically include administrator access. A familiar Microsoft domain and a successful MFA prompt are not, on their own, proof that the request was yours.

The trust boundary, in three steps
  1. 01A request starts elsewhere

    A message or conversation persuades the person to use a supplied sign-in code.

  2. 02The person authenticates

    The genuine Microsoft page processes the sign-in, including MFA where required.

  3. 03The requesting client gets access

    Issued tokens can reach permitted resources. The person may have authorised a session they did not intend.

Conceptual explanation of abuse, not a test of your tenant. Microsoft’s device code flow documentation.

Why this belongs in your Microsoft 365 review

Microsoft reported a widespread, automated device code phishing campaign in April 2026. Its September 2026 investigation also described device code abuse following a passkey-themed social-engineering lure. These are documented campaigns, not evidence that every organisation has been compromised.

For a business, the review question is practical: can an unexpected sign-in flow give an attacker access to valuable email, collaboration data or connected services, and would your team recognise and contain that activity? We connect the answer to actual policy coverage and available evidence rather than treating “MFA enabled” as the end of the assessment.

Reduce unnecessary device code flow access

Microsoft recommends blocking device code flow wherever possible and retaining it only for necessary, controlled scenarios. The relevant Conditional Access condition is Authentication flows → Device code flow; a generic legacy-authentication block should not be assumed to cover it. Review the policy that actually targets this flow.

  • Establish the dependency. Identify who uses the flow, for which application or device, and why. Assign a business owner to every proposed exception.
  • Evaluate before enforcing. Use Microsoft’s documented block-policy approach in report-only mode first. Confirm the intended users, resources and exclusions, then move to enforcement through your change process.
  • Make exceptions accountable. Record the purpose, owner, scope and review date. Protect emergency access against lockout, and inspect those exclusions rather than assuming that excluded accounts are safe.
  • Confirm entitlement. Conditional Access requires Microsoft Entra ID P1 or an applicable suite entitlement. Establish actual licence assignments; a product name in a purchasing record is not proof of user coverage.

Follow the current Microsoft block-policy guidance and Conditional Access licensing requirements. A report-only policy evaluates impact; it does not enforce a block.

Account for Teams devices and administrative tools

Some Teams device resource accounts and tooling have legitimate device-code dependencies. Before a broad block, review provisioning, reauthentication and Device Registration Service requirements against Microsoft’s Teams-device guidance. A room’s resource account and the technician deploying it are different identities.

Avoid turning a narrow device requirement into an exemption for a whole department. Where alternatives are supported, evaluate browser-based or brokered user sign-in, or managed identities and workload identity federation for automation. Test the real business scenario, document residual exposure and keep a rollback owner available.

Investigate the session, not just the first sign-in

Start with Entra sign-in records filtered for Authentication protocol = Device code flow. Also examine Original transfer method: Microsoft’s protocol tracking can carry the flow’s origin into later token activity even when the current event uses another authentication protocol. Availability and retention of the necessary evidence must be confirmed.

Review questionEvidence to connect
Was the flow expected?Account, application, target resource, time and the approved business dependency.
Which policy applied?Policy state, assignments, exclusions and the sign-in’s Conditional Access result.
What followed the sign-in?Relevant mailbox, collaboration, application and account-change records within the available investigation window.
Would someone act?Alert ownership, escalation route, response authority and evidence that the process has been exercised.

An unfamiliar location or a device-code event is an investigation lead, not a standalone proof of compromise. Correlate the context and record what cannot be established. See Microsoft’s authentication-flow and protocol-tracking guidance.

If someone has already entered a suspicious code

Contact your IT or incident-response team through a known, trusted channel now. Give them the message, approximate time and affected account. Do not enter more codes at the sender’s request. This website’s enquiry form is not an emergency response channel.

An authorised responder should preserve relevant evidence and assess containment, including account access and session/token revocation. Investigate authentication-method changes, app consent, forwarding or inbox rules and activity in accessible services. Recovery needs to address persistence and validate control of the account; a password reset alone should not be treated as a complete investigation. Use Microsoft’s compromised-account response guidance alongside your incident plan.

What Atlant Security examines

Include device code phishing exposure as a focused workstream in a Microsoft 365 security audit, or alongside an Entra ID assessment and Conditional Access review. Agree the tenant, user population, evidence period and legitimate dependencies before collection.

WorkstreamUseful audit output
Usage and dependency reviewA dated inventory of observed use, business owners and unexplained cases.
Policy coverage and exceptionsA coverage matrix distinguishing enforced protection, report-only evaluation, exclusions and unavailable evidence.
Detection and response readinessEvidence gaps, escalation ownership and specific validation questions for the responsible team.
Remediation planningPrioritised actions with licence dependencies, change safeguards and agreed closure evidence.

We begin with supervised review or approved read-only evidence. Phishing simulations, token collection, active access tests and production changes require a separate, explicitly authorised scope. Public DNS cannot reveal your Conditional Access policies or establish whether device code phishing is blocked.

Put device code phishing in your audit scope.

Choose identity and logging in the planner and mention device code flow in your objectives. You can attach your NDA or RFP before sharing confidential evidence.

Plan my Microsoft 365 audit Discuss a focused exposure review

Common questions

Does MFA prevent device code phishing?

MFA remains an important control, but a user can fulfil an MFA requirement while authenticating an attacker-initiated request. Review the authentication flow and effective policy coverage, not only whether an MFA method is registered.

Can your free domain check detect this exposure?

No. Public MX, SPF, DKIM and DMARC records do not expose tenant sign-in policies, exceptions or token activity. The public checker is a mail-DNS starting point; this review needs authorised tenant evidence.

Is device code phishing the same as app-consent phishing?

No. Device code phishing abuses which client a person is authenticating. Consent phishing focuses on persuading a person to grant application permissions. Both can warrant an app and permission review, but their evidence and controls should not be treated as interchangeable.

Sources & further reading

Reviewed 6 October 2026. Product names, licence entitlements and guidance can change. Confirm applicability to your tenant and agreed assessment date.

LET’S START A CONVERSATION

Define the scope.
Take the next step.

Your audit objectives, control boundaries and evidence period. A useful starting point for your assessment.

Discuss your requirements