“Enter This Code on Microsoft’s Website.” Even the Real Site Can Be a Trap.

If someone in your office is asked to type a short code into a Microsoft sign-in page, the usual advice is to check the web address. That advice doesn't help here. In this scam, the page really is Microsoft's.

What device-code phishing is

Microsoft has a sign-in method meant for devices that are awkward to type on, such as a printer or a conference-room screen. The device shows a short code. You enter that code on a regular computer, sign in, and the device is approved.

Attackers start that process themselves. They send you a code and ask you to enter it on Microsoft's real sign-in page. If you do, you aren't signing in your own device. You're approving theirs. They can then reach the mailbox and files tied to that account, often without ever seeing a password.

On November 30, Help Net Security reported on a phishing kit called MadApe, which researchers at Group-IB had described a few days earlier. The message often looks like a SharePoint, Teams, or DocuSign notice, usually with a PDF attached. A link shows a code and sends the person to Microsoft's real device-login site to paste it. Checking the web address isn't enough. Group-IB also notes that a completed sign-in of this kind may satisfy multi-factor authentication.

On December 1, Switzerland's national cyber office reported several of these cases from the previous week. If the person is already signed in to Microsoft, they may only need to enter the code and confirm, with no password prompt at all. After an account was taken over, the same lure was sent on to the person's contacts. In one case they described, that follow-up went to more than a thousand people. A message from someone you already work with is easier to trust.

What your team can do

  • Never enter a sign-in code you didn't ask for. If a shared file, invoice, or voicemail notice asks for one, stop.
  • Call the sender on a number you already have, or ask IT before you type anything.
  • If someone may already have entered a code, say so right away so sessions can be ended and access can be revoked.
  • Ask your IT person, or us, about a Conditional Access policy that blocks device-code sign-in for people who don't need it. Microsoft recommends getting as close as possible to blocking that method. Some offices still need it for certain devices, so this is a setting to review first.

These habits sit alongside the basics we covered in How to Protect Your Small Business from Hackers.

If you would like help walking your staff through this, or checking whether device-code sign-in is still turned on in your Microsoft 365 account, we're happy to take a look. Call us in Medford at (541) 665-8818, in Spokane at (509) 609-2111, or in Lehi at (801) 407-9305. You can also schedule a time with Greg.

Scroll to Top