The Microsoft login page was genuine. The request to use it wasn’t.
A suspicious email sent to a school shows how criminals can abuse Microsoft’s own authentication system to gain access to accounts, potentially without ever stealing a password.
We’ve spent years telling people to check email addresses, look for suspicious links and make sure they’re signing in on the genuine Microsoft website.
That’s still useful advice, but a phishing email intercepted at a school today shows why it isn’t always enough.
The email had a perfectly plausible subject: someone expressing an interest in becoming a community governor. The sender appeared to be another school, and the message had been sent through Microsoft’s own email infrastructure.
Nothing particularly unusual there. Schools regularly receive enquiries about governance, and an email from another educational organisation isn’t likely to raise too many eyebrows.
But there was something rather nasty waiting behind the link.
Instead of a conventional fake Microsoft login page designed to steal a password, the recipient was presented with what appeared to be a protected PDF document. To access it, they were told to copy a verification code and enter it on a Microsoft verification page.
The document was even given a credible name relating to a governor skills audit, making the whole process appear connected to the original email.
Here’s the clever part. The Microsoft verification page could be completely genuine.
The recipient wasn’t necessarily being asked to enter their password into a fake website. They were being encouraged to authorise an authentication request initiated by somebody else.
This is known as device code phishing, and it’s a particularly concerning development for organisations that rely on Microsoft 365.
How does device code phishing work?
Microsoft has a legitimate authentication method called device code flow. It’s designed for devices that aren’t particularly easy to sign into, such as certain smart TVs, conference room systems and other devices without a conventional keyboard or browser.
Rather than entering your username and password directly on the device, you’re given a code to enter on a separate Microsoft verification page. Once you’ve authenticated and approved the request, the original device can receive the necessary authentication tokens.
It’s a perfectly legitimate feature, but criminals have worked out how to abuse it.
In a device code phishing attack, the criminal starts the authentication process on a device or application they control. They then persuade somebody else to enter the corresponding code and complete the authentication.
If the victim approves the request, the criminal’s session may receive valid authentication tokens. Depending on the application, permissions and security controls in place, those tokens could allow access to Microsoft 365 resources, including email.
The victim may even complete multifactor authentication during the process.
That’s what makes this technique particularly dangerous. MFA hasn’t necessarily failed. The victim has been tricked into using it to approve the wrong sign-in.
Microsoft itself has published research into these attacks, including campaigns that use convincing document-sharing requests to encourage people to complete device code authentication.
The email looked legitimate because, technically, much of it was
I examined the email headers, and there were several interesting findings.
The message appeared to have originated through Microsoft Exchange Online, using an authenticated sending domain. SPF, DKIM and DMARC all passed. Microsoft’s email filtering had also assigned it a low spam score.
These are checks that many organisations rely on when assessing whether an email is genuine.
But they tell us something about the technical authenticity of the message, not whether the person using the sending account can be trusted.
There was another detail that stood out. Although the email claimed to come from an organisation’s operations address, its Reply-To field directed responses to an unrelated Hotmail account with a rather unusual address.
That isn’t proof of a compromised account, but it’s a significant warning sign.
Taken together, the headers suggest this wasn’t simply an email using an obviously forged sender address. It’s consistent with a message originating from a legitimate Microsoft 365 environment, potentially through a compromised account.
The originating organisation would need to examine its own audit and sign-in records to establish what actually happened.
Why schools are an attractive target
The community governor subject was well chosen.
School offices deal with a constant stream of messages from parents, governors, suppliers, local authorities and other schools. Staff are expected to respond to unfamiliar people, open documents and manage enquiries throughout the working day.
A request to review a protected governor skills audit document fits reasonably well into that environment.
That doesn’t make school staff careless. It means the attack has been designed around the work they actually do.
If criminals gain access to a school Microsoft 365 account, the consequences can extend well beyond the original victim. Depending on the account’s permissions, they could potentially access sensitive correspondence, obtain documents or send further phishing messages from an account that other schools, parents and suppliers already recognise.
I’ve seen an increasing number of suspicious emails apparently originating from genuine school accounts. Some contain document links, some involve invoice requests, and others attempt to obtain access through Microsoft authentication or application permissions.
The common problem is that the recipient is dealing with a familiar or credible sender, making traditional advice to check the email address much less effective.
Why MFA alone doesn’t solve this
I’m a strong advocate of multifactor authentication. Every school and business should be using it on important accounts.
But we need to be clear about what MFA actually does.
It helps verify that the person authenticating has access to the required credentials or authentication method. It doesn’t automatically establish whether the action they’re authorising is sensible or legitimate.
If somebody is persuaded to approve an authentication request initiated by a criminal, MFA may become part of the attack rather than stopping it.
This is why security awareness needs to move beyond spotting spelling mistakes, dodgy logos and unfamiliar sender addresses.
People need to understand the reason they’re being asked to sign in.
A PDF document shouldn’t unexpectedly require you to authorise another device or application to access your Microsoft account.
If something asks you to enter a code from an email or document into Microsoft’s device verification page, stop and establish exactly what you’re approving.
What can schools and businesses do?
Fortunately, there are practical ways to reduce the risk.
First, Microsoft recommends blocking device code authentication wherever it isn’t genuinely required. Organisations using suitable Microsoft Entra licences can use Conditional Access policies to control this authentication method.
This needs a little planning, because some legitimate devices and administrative tools still depend on it. IT teams should check existing usage and test any proposed restrictions before enforcing them.
Second, organisations should monitor Microsoft 365 sign-in activity for unexpected device code authentication, unfamiliar applications and unusual account behaviour. This can help identify suspicious activity that traditional endpoint antivirus may never see.
Third, staff training needs to reflect how attacks actually work today. Rather than simply telling somebody to check whether a Microsoft page is genuine, explain that a genuine Microsoft page can still be involved in a scam.
Finally, if somebody has completed an unexpected device code verification, treat it as a potential account compromise. IT teams should review sign-in activity and application access, revoke affected sessions and investigate whether any data or email has been accessed.
Changing a password alone may not be sufficient if an attacker has obtained usable authentication tokens.
The real lesson
For years, one of the biggest warnings about phishing has been not to enter your password on an unfamiliar website.
Now we’re seeing attacks where the criminal doesn’t necessarily need your password, and the website asking you to authenticate really does belong to Microsoft.
It’s a difficult message to communicate because we’re asking people to be suspicious of something that looks entirely legitimate.
But the answer isn’t to make staff frightened of every email or sign-in request.
It’s to help them understand what they’re being asked to authorise, give them a straightforward way to check when something seems unusual, and put technical controls in place so one convincing email doesn’t become a serious incident.
Black Swan Cyber Security Solutions helps schools and small organisations protect their Microsoft 365 environments with practical security controls, monitoring and staff awareness. The identifying details of this incident have been withheld to protect those involved.



