GWB Tec Protect
Device protection with optional monitoring.
What if someone could get into your Microsoft 365 account without knowing your password, and without defeating your MFA? Device code phishing makes that possible. Here is how it works and how to shut it down.
Most staff have been told the same thing: check the web address, and if it's really Microsoft, it's safe to sign in. Device code phishing turns that advice against them. The page is genuine. The sign-in is genuine. The only thing wrong is who the sign-in is for.
Microsoft has a sign-in method called the device code flow. It exists for things that can't easily show a login box, such as a meeting-room screen or a smart TV. The device shows a short code, and you type it in at microsoft.com/devicelogin on your own phone or computer to approve it.
Criminals use the same process. They ask Microsoft for a code, then trick someone into entering it. When the victim approves it, Microsoft hands the sign-in to whoever asked for the code, and that's the attacker.
A typical example looks like this. A member of your team receives an email, or a Teams message, saying a colleague has shared a document or a meeting recording. To view it, they're told to go to Microsoft's sign-in page and enter a code.
Nothing on the page looks wrong, because nothing on the page is wrong. That's why it works.
It's real, and it's growing, but it needs putting in proportion. Microsoft documented a state-linked group, Storm-2372, using fake Teams meeting invitations to run device code phishing from August 2024. In April 2026, Barracuda reported detecting more than 7 million device code phishing attacks over four weeks.
Those are detections: attempts that Barracuda's systems saw. They are not successful compromises, and the figure covers Barracuda's own customers rather than the whole internet. The point isn't that your account is about to be taken. It's that a well-known gap is being exploited at scale, and it can be closed.
MFA is still essential. It stops the great majority of password-based attacks, and nobody should switch it off.
The weakness here is that the attacker never has to beat MFA. The victim completes it for them. Checking the web address doesn't help, and completing MFA doesn't prove the request was yours. The code is what links the sign-in to the attacker's device.
Passkeys and FIDO2 security keys are worth having, but they don't stop this attack: the victim is still signing in to the genuine Microsoft page. The control that works is to stop the device code flow being usable at all.
For most small businesses the fix is a single Conditional Access policy that blocks the device code flow, backed up by staff awareness.
This is where the plan you pay for matters. Conditional Access, the tool that can block device code sign-in, needs Microsoft Entra ID P1. Microsoft states that P1 is included in Microsoft 365 Business Premium. It can also be bought separately for other plans.
| Plan | Conditional Access | What it means for this attack |
|---|---|---|
| Business Basic | Not included | Security defaults and MFA, but no policy to block it unless P1 is added |
| Business Standard | Not included | Same as Basic |
| Business Premium | Included (Entra ID P1) | Able to block it, once the policy is set up |
If you're unsure, treat it as a compromise until you've shown it isn't, and get help early.
We can review how your Microsoft 365 is set up, look at your MFA and Conditional Access policies, and check whether device code sign-in is open. We can also look through recent sign-in activity for anything suspicious and give you a short list of what to fix first. It fits with our GWB Tec Protect work and managed IT support. For a one-off project, see IT consultancy. If you're moving to Microsoft 365, our migration checklist covers security from day one.
Sources: Barracuda, Threat Spotlight: Device code phishing and The MFA bypass that uses a real login page; Microsoft, Storm-2372 conducts device code phishing campaign, Block authentication flows with Conditional Access and Entra licensing.
It's an attack where a criminal gets you to enter a code, issued by Microsoft to the attacker, on Microsoft's genuine device login page. Approving it gives the attacker a signed-in session on your account.
Not by itself. The victim completes MFA as part of the attack, so the attacker's session is approved. MFA remains essential, but it needs to be combined with blocking the device code flow.
You need Conditional Access, which requires Microsoft Entra ID P1. Microsoft includes this in Microsoft 365 Business Premium. The policy still has to be configured and switched on.
Create a Conditional Access policy that blocks the device code authentication flow for users who don't need it, test it, then turn it on. Microsoft documents this under blocking authentication flows. It also helps to teach staff never to enter a code they didn't request.
Review Entra ID sign-in logs for device code sign-ins, look for unfamiliar registered devices, and check mailbox rules, forwarding and app permissions. We can do this for you as part of a security review.
Book a Microsoft 365 security review and find out where you stand, in plain English.