Last week we helped a client recover from a Microsoft 365 account takeover. Multi-factor authentication (MFA) was switched on and working. The attacker got in anyway.
We’re not naming the client, and we’ve left out anything that could identify them. But the attack was clever, it’s becoming common, and it could happen to any business using Microsoft 365 today. So we think the story is worth telling.
Here’s what happened, how we shut it down, and the one change we’re now recommending to every client we work with.
| In short: The attacker didn’t crack a password. They got hold of a valid, already-approved sign-in session.The method looks like “device code phishing”. It uses Microsoft’s real sign-in page, so there’s no fake website to spot.Standard MFA didn’t stop it, because the real user completed the MFA step themselves without realising what they were approving.Conditional Access, included in Microsoft 365 Business Premium, can block this type of sign-in outright.If you’re on Microsoft 365 Business Basic or Business Standard, you don’t have Conditional Access. |
What our monitoring picked up
Our monitoring flagged successful sign-ins to a client’s Microsoft 365 account from several overseas locations, all within minutes of each other.
A closer look at the sign-in logs showed something worse than a break-in attempt. These weren’t failed logins from someone guessing passwords. They were successful logins, all using a single stolen session that had already passed every check Microsoft normally runs.
How the attacker got in without the password or the MFA code
This has the fingerprints of a “device code phishing” attack. It’s designed to be almost invisible to the person being targeted, so it’s worth understanding how it works.
First, what device code sign-in is
Device code sign-in is a genuine Microsoft feature. It exists for devices that don’t have a proper keyboard or web browser, like meeting-room screens, smart TVs, printers and some command-line tools. The device shows you a short code. You type that code into Microsoft’s sign-in page on your phone or laptop, approve it, and the device is signed in to your account.
It’s convenient. Attackers have worked out how to abuse it.
How the attack plays out
- A message arrives that looks completely ordinary. A document to review, a shared file, a Teams message, a routine account notice.
- The link goes to Microsoft’s real sign-in page. No fake website, no spelling mistakes, no dodgy web address. The padlock in the browser is genuine, because the page is genuine.
- The page asks you to enter a short code, or to approve a sign-in. It looks like a normal Microsoft step, so you do it. You might even get your usual MFA prompt and approve that too.
- What actually happened is that you approved a sign-in for the attacker’s device. Microsoft hands that device a valid, working session on your account.
- From that moment, the attacker can act as you. They don’t need your password. They don’t need your MFA code. Your account has already passed both checks on their behalf.
Why MFA didn’t stop it
MFA checks your identity at the moment you sign in. In this attack, the real user did complete the MFA check. They just did it for the attacker’s device without realising. Once a session exists, Microsoft doesn’t ask for MFA again until that session expires, and that can be a long time.
MFA is still essential. It stops the vast majority of password attacks and you should never switch it off. But on its own, it was never designed to catch this particular trick.
How we shut it down
As soon as the activity was flagged, our team worked through a full containment and investigation process.
1. Cut the attacker off
- Revoked every active session on the account, so the stolen session stopped working immediately
- Reset the account password
- Re-confirmed MFA was enforced
2. Work out what they’d done
- Reviewed the sign-in logs, both interactive and non-interactive, and preserved them for the record
- Ran a message trace to check what, if anything, had been sent from the account
- Reviewed every app that had been granted access to the account, looking for anything the attacker might have added
3. Check nothing else had been touched
- Checked endpoint security alerts, browsing history and system logs for any sign of further compromise
- Ran a full antivirus scan
- Reviewed startup items, scheduled tasks and installed software
- Confirmed backups and file syncing were unaffected
The account is now secure, and we’ve kept it under close monitoring since.
The lesson: MFA on its own is no longer enough
We’re not sharing this to alarm anyone. We’re sharing it because attacks like this are becoming more common, and they’re built specifically to get past the defences most businesses already have in place.
Phishing and credential harvesting was the most commonly reported type of cyber incident in New Zealand in the first three months of 2026, according to the National Cyber Security Centre. Attackers aren’t only going after big companies. They send these messages in bulk and wait to see who clicks.
The good news is there’s a practical next step that closes this gap.
What Conditional Access is, and how it closes this door
Conditional Access is a Microsoft 365 security feature that lets you set rules about who can sign in to your accounts, from where, and on what device. Every sign-in is checked against those rules before it’s allowed through.
In plain terms, you decide things like:
- Block sign-ins from countries where your business doesn’t operate. On its own, this would have stopped the overseas logins in the attack above.
- Block the device code sign-in method for everyone who doesn’t need it. Most businesses have no reason to use it at all, so the door can simply be shut.
- Only allow sign-ins from devices your business manages, so a stolen session on an unknown device is refused.
- Ask for MFA again whenever something looks unusual, like a new location or an unfamiliar device.
Paired with stronger link-scanning and anti-phishing protection, Conditional Access directly closes the door this attack walked through.
Which Microsoft 365 plan do you need?
Conditional Access is included in Microsoft 365 Business Premium. It’s not included in Business Basic or Business Standard.
Business Premium also includes Microsoft Defender for Office 365, which scans links and attachments in email before they reach your team, and Intune, which is how you manage and trust company devices. Together, that’s the set of tools that would have stopped this attack at several different points.
If you’re currently on a standard Microsoft 365 plan without Conditional Access, this is the single most valuable upgrade you can make to your account security right now.
Not sure which plan you’re on? You can check under Billing, then Your products, in your Microsoft 365 admin centre. Or ask us and we’ll tell you in a couple of minutes.
Three things you can do today, whatever plan you’re on
- Tell your team about this attack. If a message ever asks them to enter a code on a Microsoft sign-in page, or to approve a sign-in they didn’t start, the answer is to stop and check with IT first.
- Make sure someone is actually watching your sign-in logs. This attack was caught because monitoring was in place. Without it, the attacker could have sat in the account for weeks.
- Check who has admin rights. The fewer accounts with full access, the less an attacker can do with a stolen session. This is basic cyber security hygiene, and it’s often overlooked.
Want to know where you stand?
If you’d like us to check whether your business is protected against this kind of attack, or you’d simply like to see what Conditional Access would look like for your team, book a free IT Review & Assessment.
We’ll look at your current Microsoft 365 setup, tell you plainly where the gaps are, and show you exactly what needs to change. No pressure, no jargon.
[Button: Book your free IT Review & Assessment]
Common questions
We already have MFA. Do we really need Conditional Access as well?
Yes. MFA protects the moment of sign-in. Conditional Access controls whether that sign-in is allowed to happen at all, based on where it’s coming from and what device it’s on. They work together. The attack in this post got past MFA because the user unknowingly approved it, and Conditional Access rules would have blocked the sign-in regardless.
We’re a small business. Would anyone really target us?
These attacks are sent in bulk, not hand-picked. The attacker doesn’t know or care how big you are until they’re in. Once inside, a compromised mailbox is typically used to send fake invoices, redirect payments, or attack your customers and suppliers in your name.
How would we know if this has already happened to us?
Common signs include MFA prompts you didn’t trigger, sent emails you don’t recognise, mailbox rules you didn’t create (especially ones that delete or forward mail), and sign-in alerts from overseas. If anything feels off, get in touch straight away. Speed matters.
Does moving to Business Premium mean a big migration?
No. It’s a licence change on your existing Microsoft 365 setup. Your email, files and Teams stay exactly where they are. The real work is in setting up the Conditional Access rules and device management properly, which is what we do for our clients.
Contact Mace IT Services to arrange a quick chat about Conditional Access for your business.