TL;DR: A growing phishing technique sends people to Microsoft's real sign-in page and asks them to enter a short code. The code approves a device the attacker controls, which gives them access to the victim's Microsoft 365 account without needing their password. MFA won't block it, because the victim approves the sign-in themselves. The simplest defence for staff is to never enter a code into Microsoft unless they started the sign-in. Businesses that don't need device code sign-in can switch it off in Microsoft Entra.
Checking the web address only gets you so far
"Look at the address bar before you type your password" has been standard phishing advice for about as long as business email has existed. It still catches a lot of scams.
A newer technique gets around it completely. Every page the victim types into belongs to Microsoft. There's no lookalike domain, no fake login form, and nothing odd in the URL to give it away.
How the attack plays out
It normally starts with an email or a message. The lure varies. It might be a shared document, a legal or compliance notice, or a meeting invitation. In one campaign documented by Microsoft's threat intelligence team, the attackers built up a rapport with their targets first, then sent fake Teams meeting invites.
Whatever the wrapper, the instructions lead to the same step. Copy a short code, go to Microsoft's sign-in page, and enter it.
Because the page is genuine, the request feels safe. Most people would assume that typing something into a Microsoft website carries very little risk.
What the code actually does
The code belongs to a Microsoft feature called device code sign-in. It's designed for equipment that's awkward to type on, such as smart TVs, meeting room displays and some shared devices. The device shows a code, you enter it on your laptop or phone and sign in there, and the device is given access to your account.
In this attack, the code was generated by the attacker's own machine. When you enter it and complete the sign-in, Microsoft sees the account owner approving a new device, and hands that device access to the account.
From that point the attacker can read your email, open files in OneDrive and SharePoint, and see your Teams conversations. They never needed your password. Microsoft has also reported attackers using this access to register a device in Entra ID, which can help them hold on to access for longer.
Not sure where to start?
Let's talk it through.
Have a quick, no-obligation call with our team.
No pitch, just answers.
Why MFA doesn't stop it
Multi-factor authentication is still one of the most important protections a business can have, so keep it switched on.
The problem here is that the MFA prompt appears as part of a sign-in you're completing yourself, on a real Microsoft page. Approving it is exactly what the attacker needs you to do. Everything a careful user would normally check comes back clean, and the attacker still gets in.
The question to ask before entering any code
This is where staff awareness does most of the work. Before entering a code into any Microsoft page, ask one question: did I start this?
If you're setting up a new app on the boardroom TV and it's showing you a code, you know where it came from. If an email you weren't expecting is walking you through a set of steps and handing you a code to type in, stop. Don't enter it, and check with your IT team or the sender through a different channel.
Switching device code sign-in off
There's a technical control as well. Microsoft's own advice is to block device code sign-in anywhere it isn't needed. In Microsoft Entra, a Conditional Access policy using the "Authentication flows" condition can block it for everyone, with exceptions for any meeting room or shared devices that genuinely rely on it.
Conditional Access needs Entra ID P1, which comes with Microsoft 365 Business Premium. Unless someone has deliberately restricted it, device code sign-in is likely still allowed in your tenant. It's worth testing the change on a small group first so nothing legitimate breaks.
Training needs to keep up
A lot of phishing training is built around spotting fake websites. That still matters, but it leaves staff with nothing to go on when the website is real. Training needs to cover how attackers misuse genuine services, and it needs refreshing as their methods change. Monthly interactive training is part of our Business Armour cyber security suite for exactly this reason.
If you'd like us to check whether device code sign-in is open in your Microsoft 365 tenant, or want your team's phishing training brought up to date, get in touch. We support businesses across Chester, North Wales, the Wirral and the wider North West.
The Pro-Networks Insider
Delivered to your inbox every other month
The scams currently targeting businesses like yours.
A #ProNetTopTip that your team can put into practice in minutes.
Plain English updates on Microsoft 365 and IT changes that affect you.