Skip to main content
01543 524 594  ·  hello@initialit.co.uk
CYBER ESSENTIALS · MICROSOFT PARTNER · UK HELPDESK · 5.0 ★ GOOGLE
Home › Blog › Cyber Security

FBI warning: Microsoft 365 device code phishing gets past MFA

Kali365 tricks staff into approving an attacker’s sign-in on the real Microsoft page. Here is how it works and the Conditional Access policy that stops it.

See also: Managed cyber security · Microsoft 365 management · Managed IT support

Andy Price · Founder9 October 2026 · 6 min read

The FBI issued a public service announcement last week about a Microsoft 365 attack that walks straight past MFA, past passwords and past every login defence you have set up.

It is called device code phishing. The phishing kit driving the current wave is named Kali365 and the FBI has linked it to attempted compromises at hundreds of organisations since it appeared in April.

If you run Microsoft 365, this is worth fifteen minutes of your attention.

Key takeaways

  • Device code phishing tricks a user into entering an attacker’s sign-in code on the genuine microsoft.com/devicelogin page, so the attacker’s device is authorised with the user’s account.
  • MFA does not stop device code phishing, because the victim completes MFA themselves and Microsoft issues the attacker a valid token.
  • The reliable fix is a Conditional Access policy in Microsoft Entra ID that blocks device code flow, with narrow exceptions for devices that genuinely need it.
  • Changing the password does not remove an attacker who holds a refresh token; the tokens have to be explicitly revoked.
  • Staff should only enter a Microsoft sign-in code when they started the login themselves, and should report any code that arrives by email.

How the attack actually works

This is not a clever fake login page. There is no spoofed Microsoft domain to spot.

  1. The attacker initiates a real device login on Microsoft. Microsoft hands them a short code, the kind your smart TV asks you to type when you log in to Netflix.
  2. The attacker emails you, pretending to be a colleague sharing a document, a finance team sharing an invoice, or a service like SharePoint or DocuSign. The email contains that code and tells you to enter it on microsoft.com/devicelogin.
  3. You click. The page is real. It is genuinely Microsoft. You type the code. You complete MFA on your own device.
  4. Microsoft, doing exactly what it is meant to do, authorises the attacker’s device because you just told it to.

That last step is the whole game. You did not hand over your password. You completed MFA correctly. Microsoft issued an OAuth access token to a device on the other side of the world because you, the legitimate user, asked it to.

Your password is unchanged. Your MFA is unbroken. The attacker now has your mailbox, your Teams chats, your OneDrive files, and a refresh token that lets them keep coming back.

Why MFA does not save you

MFA stops attackers using your password without you. It does nothing when you complete the login yourself and unwittingly hand the keys to someone else.

The attacker never needs your password because they did not log in as you. They got Microsoft to issue them a fresh token, tied to their device, with your account behind it. From Microsoft’s point of view, everything looks perfectly legitimate. Audit logs will show “successful interactive sign-in.” No anomaly fires.

This is also why the usual security training breaks down. Most phishing advice boils down to “check the URL.” Here the URL is correct. It is microsoft.com. The training that protects you from 95% of phishing emails actively reassures you in this one.

The single rule to tell your team today

Send this to everyone in your business before you close your laptop tonight:

Only enter a Microsoft sign-in code on a Microsoft page when you started the login. A code never arrives in your inbox out of the blue. If one does, do not enter it. Delete the email and tell us.

That rule, if followed, would block the attack. It is also a rule that depends on every person in the company spotting it, every time, when they are busy, when they are tired, when an email looks important enough to act on fast. That makes it a useful defence, but a fragile one.

The proper fix

The technical fix sits in Microsoft Entra ID under Conditional Access. The exact steps:

  1. In Entra ID, create a new Conditional Access policy.
  2. Target: all users, all cloud applications.
  3. Conditions: block the “device code flow” authentication transfer method.
  4. Add narrow exceptions only for the small handful of legitimate uses, things like shared meeting room displays or industrial devices that genuinely cannot type a password.
  5. Layer monitoring on top so anomalous OAuth token grants are flagged the moment they happen, not three weeks later when an invoice gets diverted.

This stops the attack mechanically. It does not depend on anyone remembering anything. It is the kind of control Cyber Essentials Plus assessors look for, and it is the kind of thing that should already be set up in any properly managed Microsoft 365 tenant.

If you are not certain whether your tenant has this policy in place, that is exactly what we mean when we talk about the difference between having “MFA turned on” and having a managed tenant with proper cyber security behind it.

Why this advisory matters more than most

The FBI publishes cybersecurity advisories regularly. Most never get acted on at companies without someone whose explicit job is to read them, translate them, and apply the fix in the right place.

Kali365 is different for three reasons.

It is a kit anyone can buy

Phishing-as-a-Service means the technical skill required to run this attack has dropped to roughly zero. Templates, AI-generated phishing lures, dashboards tracking your employees by name. What decides the outcome now is how well the defender has prepared.

The bypass is by design

Most “MFA bypass” stories are about flaws in how MFA is implemented. This one is using MFA exactly as designed. There is no patch coming for this from Microsoft because the device code flow is a real feature for real devices. The fix has to live in your tenant configuration.

Token compromise is harder to clean up than a password compromise

Refresh tokens can let an attacker stay in your account for days or weeks after the initial click, even if you change your password. Killing the session requires explicit revocation steps that most teams have not rehearsed.

What to do this week

Three actions, in order.

  1. Today, tell your team the rule. “A code in your inbox you did not ask for is a red flag. Delete and tell us.” Put it in your next all-hands email.
  2. This week, check your Entra ID Conditional Access policies. Specifically look for a policy blocking device code authentication. If there is not one, that is the gap. If you have an IT provider, ask them to confirm in writing that this policy is in place. The phrase to use is “Conditional Access policy blocking device code flow.”
  3. This month, audit your existing OAuth grants. Entra ID can show you every third-party application currently holding a refresh token against any of your accounts. Anything you do not recognise should be revoked.

Sources

  • FBI IC3 Public Service Announcement I-260521 (May 2026)
  • Microsoft Threat Intelligence on device code flow abuse
  • Arctic Wolf, Help Net Security and BleepingComputer reporting on Kali365
Free 2-minute health check

Could your business spot this attack?

Our Cyber Security Health Check rates your defences against current UK threats and tells you what to fix first.

Take the Cyber Security Health Check →

If you would like us to check whether your tenant blocks device code flow, Book a 30-minute IT review or call Andy on 01543 524 594. You can also take our free Cyber Security Health Check to see what to fix first.

Frequently asked questions

Is this only a problem for big companies?

No. Kali365 is being distributed through Telegram for a flat fee, and the FBI is tracking attempts at hundreds of organisations, the majority small to medium businesses. Any tenant with valuable email, files, or finance access is a target.

My MFA is on. Surely I am safe?

You are safe from the most common attacks. You are not safe from this one because the attacker never tries to bypass your MFA. They wait for you to complete it yourself.

Will Microsoft fix this?

There is nothing to fix in the protocol. Device code flow is a real feature for things like smart TVs and shared kiosks. The defence has to be applied per tenant via Conditional Access. Microsoft has published guidance on this and it is in the FBI advisory linked below.

How do I know if our tenant is already protected?

Open Entra ID admin centre, go to Conditional Access, look for a policy with a name like “Block device code flow” or one with the “Authentication transfer” condition set to block. If you cannot find one, you are not protected. If you have an IT provider, the question to ask is: “Do we have a Conditional Access policy blocking device code flow, and can you screenshot it?”

We are a Cyber Essentials Plus business. Does that cover us?

Cyber Essentials Plus tests for MFA being present, not for advanced Conditional Access policies. The assessment is a baseline, not an upper bound. This attack would pass a current CE+ assessment and still succeed.

What happens if I am hit?

Refresh tokens must be explicitly revoked, which is different from just changing a password. The mailbox needs to be searched for malicious rules an attacker may have set up to forward or auto-delete emails. Connected applications need to be reviewed. This is not a “change your password and move on” cleanup. Get help fast.