top of page
Office laptop showing a chat from IT Support marked External, with a sticky note: Call IT on a number you know

The 'Enter This Code' Microsoft Login Scam: Why Checking the Web Address Isn't Enough

Nov 7
5 min read

Most of us have been taught a simple rule: before you sign in, check the web address. If it says microsoft.com, you should be safe.

Device code phishing attacks against Microsoft 365 exploit that trust. The page really is Microsoft. The password and multi-factor prompt can be real too. What you are actually approving is someone else's login session — and that is how the attacker gets in.

For offices in Fairfield and across western Sydney that live in Outlook and Teams every day, this is worth a short staff briefing. Here is how it works, how to spot it, and what to do if someone already entered a code.


What is happening?


In 2026, attackers industrialised a trick that abuses Microsoft's legitimate device code sign-in flow. That flow was built for devices with awkward keyboards — smart TVs, printers, meeting-room consoles and some Teams devices — where you see a short code on one screen and type it into a browser on another.

Microsoft documented a major phishing-as-a-service platform called EvilTokens, which emerged in February 2026 and used this method at scale. In a 22 September 2026 Microsoft Security Blog report, Microsoft said campaigns tied to EvilTokens compromised more than 12,000 inboxes across over 10,000 organisations worldwide, with concentrated activity in several countries including Australia. Its Digital Crimes Unit later helped disrupt that infrastructure.

The technique did not vanish with one kit. Huntress coverage summarised by BleepingComputer on 27 October 2026 explains that the attack rides on Microsoft's real device-code login, so checking the web address alone will not expose it. In one 16-day window, Huntress reported EvilTokens hit 344 organisations across five countries. Tokens can keep working even after a password change.


How the scam works, in plain English


Device-code sign-in connects a browser login to another device or application. The scam works by getting you to approve a session the attacker started.

  1. The lure. An urgent email or message mentions a shared document, invoice, password expiry or account verification. Microsoft noted dozens of EvilTokens lure themes.

  2. The fake helper page. A link opens a helpful-looking page with a short code and a “Continue with Microsoft” or “Copy code” button.

  3. The real Microsoft page. You land on Microsoft's genuine device-login page. The address is correct on purpose.

  4. You finish the login. You enter the code, sign in if asked, and complete multi-factor authentication — authorising a device-code session as a real user.

  5. The attacker gains access. Their session receives access tokens. Depending on the permissions obtained, they may access email or files, create malicious inbox rules or attempt to register another device.


“Don't enter your password on a strange website” training misses this. You entered a code on a site that really is Microsoft.


Warning signs staff can actually use


  • You did not start a device-code login for a meeting-room screen, printer, TV or another approved application.

  • An unexpected email or chat told you to copy a code and continue with Microsoft.

  • The page that showed the code was not part of a sign-in process you deliberately started.

  • Pressure language: “password expires in 10 minutes”, “invoice will be cancelled”, “confirm now”.

  • After you entered a code, nothing useful happened.


A useful office rule: only enter a Microsoft device code when you started the sign-in yourself and know which device or approved application you are connecting. If an unexpected message supplied the code, stop and ask IT.

This pairs with our earlier warning about fake IT support on Microsoft Teams. Both attacks abuse tools staff already trust.


What your IT person should change


Microsoft recommends blocking device code flow wherever possible with Conditional Access in Microsoft Entra ID. If Teams devices genuinely need it, keep exceptions narrow — for example scoped to specific Teams device accounts — rather than leaving it open for everyone. See Microsoft's Teams devices Conditional Access guidance.

Ask your IT provider whether anyone actually needs device-code sign-in, whether it is blocked for ordinary staff, who watches unusual sign-ins and new devices after a phishing report, and whether key accounts can move towards phishing-resistant sign-in, such as passkeys or FIDO security keys. Someone responsible should answer those questions this week.


If you already entered a code


Treat it as a possible compromise, not an embarrassing mistake.

  1. Tell your IT provider or business owner immediately.

  2. Do not rely on a password change alone — tokens can outlive a reset.

  3. Ask IT to revoke sign-in sessions, review mailbox rules, check unexpected devices or apps, and temporarily disable the account if needed while investigating.

  4. Keep the phishing email or chat and the time you entered the code.

  5. Watch for unusual emails sent as you, missing messages or sudden invoice changes.


If money or invoices are involved, pause payment changes until someone verifies them on a known phone number — not by replying in the same email thread.


What to do now: your office checklist


  • Brief staff: never enter a Microsoft device code supplied by an unexpected email, chat or web page.

  • Only enter a code when you started the login and know which device or approved application it connects.

  • Ask IT whether device code flow is blocked for normal users, and why any exception exists.

  • Confirm someone monitors unusual sign-ins, new devices and sudden inbox rules.

  • Practise the incident steps above so the first report is calm and fast.

  • Include the fake Teams IT support checklist in staff training.



Frequently asked questions


Is Microsoft's device-login page itself a scam site?

No. It is a real Microsoft sign-in page used for legitimate device logins. The scam is tricking you into approving someone else's device-code request on that real page.

Does multi-factor authentication stop this?

Not by itself. Completing MFA on the real Microsoft page is often part of the attack — you are proving your identity for a session the attacker started. MFA still matters against many other threats; this technique abuses the legitimate sign-in process.

Are western Sydney businesses really a target?

Yes. Microsoft reported concentrated EvilTokens-related activity in several countries including Australia, across industries such as construction, wholesale, real estate, finance, education and healthcare. Businesses should not assume their size makes them safe.

What if we need device code for a meeting-room console?

Keep it as a controlled exception for the accounts that need it, not an open setting for every staff mailbox. Ask your provider to follow Microsoft's scoped Conditional Access guidance.


Need a second pair of eyes on Microsoft 365 security?


ITechSolutions has supported businesses for 25 years. Based in western Sydney, we cover all of Sydney with onsite visits and offer remote support Australia-wide. Explore our IT services, contact us or call 0411 983 296 if you want help reviewing device-code settings, staff briefings or a possibly compromised mailbox.

The ITechSolutions team

Comments


Need IT help?

Talk to our team about your IT, security or backups.

bottom of page