Device Code Phishing: The Login You Approved Wasn’t Yours

When was the last time you typed a six-digit code into a login screen and approved a prompt on your phone without really reading it? Imagine a visitor signing your name in the guest book at your own front desk, and you waving them through because the pen was in your hand.

That’s the unsettling idea behind device code phishing. You may use Microsoft’s genuine sign-in page and approve a real security prompt, but the sign-in you approved can belong to someone else.

A construction meeting invite with a hidden login

In a November 12, 2026 incident write-up, Huntress described an attack it observed in mid-October against a company in the construction sector. The names of the companies and people involved were redacted. This was a published security-firm incident report, not an incident at a Platinum Web Services client.

The email appeared to come from a senior vice president at another construction company and pitched an introductory call about a long-term supply partnership. It used a lookalike version of the real company’s domain. The message link was wrapped in Microsoft Safe Links and went through a Google share link, so the attacker’s domain wasn’t visible in the email body.

Clicking through led to a convincing fake “Microsoft Teams Meeting Scheduler.” The target picked a time and saw a “Booking Reference” with a countdown. Behind the scenes, the page had started a real Microsoft device code sign-in request. The reference was the sign-in code.

When the person clicked to copy or confirm the booking, the page copied the code and opened a popup to Microsoft’s genuine sign-in page. After the victim entered the code and completed the requested authentication, the attacker’s session was approved. The page then closed the popup, said verification was complete, and sent the victim to a Calendly booking page. Nothing seemed wrong.

Huntress reported that the kit arrived encrypted, which could defeat email scanners and crawlers that don’t run JavaScript. It also had a fallback: if Microsoft returned an error, such as one requiring MFA, the page said a new code was being prepared and started again. Huntress contained the attack.

Close-up of hands holding a phone above a wooden work table, with a blurred laptop in the background

How device code phishing uses a real sign-in

Device code authentication is a legitimate way to sign in on a device with a limited interface. A smart TV, printer, Teams meeting device, or conferencing unit may show a short code. You enter that code in a browser on another device to finish signing in.

Microsoft’s genuine page for that process is microsoft.com/devicelogin. The page can be real, and the code can be real, while the request behind it is still an attacker’s.

Here’s the trick: the attacker starts a sign-in on their own end and gets a code. Then they persuade you to enter it. When you complete the sign-in, including any MFA (multifactor authentication) prompt, your approval authorizes the attacker’s session and gives it access tokens.

Think of the guest book. You may be standing at the right front desk, holding the right pen, and signing your name. But you haven’t checked who the visitor is or why they’re there.

Your approval proves a person signed in, not that the person was you.

That’s why “we have MFA” isn’t the reassurance it may sound like. In this kind of MFA bypass, the attacker isn’t necessarily stealing your code or building a fake Microsoft page. They’re getting you to approve their sign-in through the real flow.

Microsoft’s analysis of the EvilTokens phishing kit shows this is part of a broader threat. Microsoft reported that the platform emerged in February 2026 and compromised more than 12,000 inboxes across more than 10,000 organizations worldwide. Its 44 lure themes included invoices, requests for proposals, and shared files. Stolen tokens were used to access email and maintain persistence, often by creating inbox rules that hide messages.

If an attacker gets into your mailbox, they may see vendor threads, invoices, W-2s, and client files. They may also be able to email your customers from your real address.

And the first sign may not be a strange login screen. It could be a vendor asking why you changed payment instructions, or a customer replying to an email you never sent.

Why this keeps working

Here’s the uncomfortable part. MFA worked well enough that attackers stopped trying to break it head-on. Microsoft noted that stealing sign-in tokens has become far more common and industrialized as organizations adopted MFA. If you can’t pick the lock, convince the person inside to open the door.

And here’s what “phishing-resistant” really means. A physical security key checks the address in your browser against the address it expects. Hand it a lookalike domain and it refuses, even if you typed the code perfectly and even if you were completely fooled. An authenticator app with number matching can’t make that check for you. Neither can a text message. The factor is only as strong as the question it asks.

A password reset by itself may not end the access. Attackers can create new inbox rules, register unfamiliar devices, or grant access to apps. Those changes can help them keep a foothold after you change your password.

For more on recognizing different lures, see our articles on smishing and suspicious texts and permission creep in cloud services.

A practical device code phishing lockdown

You don’t have to abandon every useful sign-in feature. You do need to know where it’s necessary, limit it where it isn’t, and make unusual approvals easier to spot.

Most small businesses genuinely need device code flow in a few narrow places: a conference room panel, a lobby display, a printer that signs in to a service, a piece of old line-of-business software nobody wants to touch. Your estimators and your office manager almost certainly never do. That gap between what the feature is for and who can use it is where the risk lives.

  • Audit device code use, then block it where it isn’t needed. Microsoft recommends reviewing existing use and restricting the flow wherever possible. If you set up a Conditional Access policy to block it, begin in report-only mode, review the impact, and exclude emergency access, or break-glass, accounts. Microsoft’s guidance explains the setup.
  • Move to phishing-resistant MFA. Start with email, administrator accounts, and remote access. CISA ranks physical security keys, such as a YubiKey, above authenticator apps with number matching, then authenticator one-time codes, biometrics (best combined with another method), and text or email codes, which it calls the weakest option. CISA also says any MFA is better than none. Its small-business guidance recommends starting with admin accounts and people who handle sensitive data, and requiring MFA for email, file storage, and remote access. See CISA’s MFA recommendations.
  • Teach one simple rule: only type a device code for a sign-in you started yourself. If a popup takes you to microsoft.com/devicelogin and you didn’t initiate the sign-in, stop. That’s a red flag, even if the page looks genuine.
  • Alert on changes that can preserve access. Watch for new inbox rules, new MFA methods, unfamiliar devices, unauthorized app consents, and suspicious outbound mail. Review unfamiliar device sign-ins, including interactive sign-in logs for automated tool user agents.
  • Plan to shorten the life of a bad session. Session revocation may invalidate refresh tokens without immediately ending existing access tokens, which can stay active for up to an hour. Microsoft recommends temporarily disabling a compromised account for immediate containment, even if it briefly interrupts that person’s work.

An estimator and colleague review printed construction plans in a project office with warm afternoon light

If someone already approved the prompt

If you suspect an employee approved an unexpected device code prompt, treat it as an active incident. Don’t wait for a password reset to tell you whether access has stopped.

  • Disable the account first to contain access, then revoke its sessions.
  • Remove rogue MFA methods and unfamiliar registered devices.
  • Remove suspicious inbox rules and forwarding.
  • Review sent mail and app consents for unauthorized activity.
  • Notify your bank, attorney, and insurer if money or data may have moved.
  • Preserve the emails and sign-in logs for investigation.

The account may need to be temporarily unavailable while you contain the incident. That disruption is frustrating, but it can help prevent an attacker from using an existing session while you work on recovery.

Why this matters to St. Louis-area contractors

For construction and subcontractor businesses in St. Louis, St. Charles County, Chesterfield, Clayton, O’Fallon, and the Metro East, an invitation to discuss a bid or supply partnership can feel like an ordinary part of the workday. Bid threads, RFPs, supplier invoices, and change orders are also the kinds of material attackers can use to make a lure feel believable. That is why St. Louis cybersecurity conversations at Missouri firms of this size keep circling back to sign-in controls rather than firewalls.

That doesn’t mean you should treat every project email as a threat. It means an unexpected request to copy a code or approve a sign-in deserves a pause, especially when it arrives inside a business conversation you weren’t expecting.

A worker on a ladder paints the exterior of a small commercial building under renovation, with a pickup truck parked at the curb

Frequently asked questions

Does MFA stop device code phishing?

Not by itself. With device code phishing, you may be completing a legitimate MFA step for an attacker’s sign-in. Restricting device code flow where it isn’t needed, using phishing-resistant MFA, and checking that you initiated the sign-in can help close that gap.

Is a text-message code the same as a security key?

No. CISA ranks physical security keys as the strongest method in its list and text or email codes as the weakest. An authenticator app with number matching is also ranked above text or email codes. Any MFA is better than none, but stronger methods provide better protection.

How would I know if it happened?

Check sign-in logs for unfamiliar activity, then look for new inbox rules, unexpected forwarding, unfamiliar devices, new MFA methods, and app consents you don’t recognize. Ask your team to report unexpected verification prompts. If someone asks why you sent an email you didn’t send, investigate promptly.

Keep your front door, and your sign-ins, under your control

The guest-book analogy is worth remembering: before you wave someone through, make sure you know who is at your door. Stronger sign-in controls, staff awareness, and timely review of account activity are practical parts of cybersecurity for small business.

Platinum Web Services provides cyber security solutions for small business and managed IT services for businesses across O’Fallon and the rest of the St. Louis area. Whether the work sits on your own servers or in cloud services, the goal is the same: account takeover protection and phishing-resistant MFA tuned to how your team actually works. We provide 24/7 support for IT emergencies; business hours are 24/7.

If you’d like to review your sign-in protections, contact Platinum Web Services or email support@platinumwebservices.net.

7827 Town Square Ave, 104-1184, O’Fallon, MO 63368

Accuracy note: The incident details in this article come from published security research, and the case was not a Platinum Web Services client. Figures are what the cited published sources reported. Nothing here is legal advice; breach-notification questions belong with the business owner’s attorney.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *