Cybersecurity 3 min read

Is a real Microsoft sign-in page always safe to use?

The page was genuine Microsoft. The code was the attacker's. Typing it in handed over the account, with no password stolen.

The question

Someone on our team got a password-protected contract by email. It sent them to the real Microsoft sign-in page and asked for a code. The page was genuine, so that's safe, right?

What we told them

No. The page being real is the trick.

This is called device code phishing. Microsoft has a sign-in method built for things without a keyboard, like a meeting-room screen. The device shows a short code, you type it into Microsoft's device sign-in page on your phone or laptop, sign in, and the device gets access to your account.

Attackers start that process themselves and send you their code. When you type it in and sign in, you are not logging in to a website. You are approving their session. They get a Microsoft 365 token, and because you passed the password and MFA checks for them, nothing looks wrong.

Researchers at ANY.RUN have just described a kit called Skyw4lker doing exactly this. The email carries a password-protected attachment, with the password in the email body, which keeps many scanners from looking inside. A chain of decoy pages ends at a page asking for a Microsoft device code. The Hacker News reported on 28 Oct 2026 that it is aimed at US manufacturing, technology and healthcare firms.

Our view: the usual “check the address bar” training does not cover this, because the address bar is right. Staff need one simpler rule. Never type a sign-in code you did not ask for. If a screen in front of you did not just show you that code, do not enter it anywhere.

Then close the door in settings. Most small businesses never sign in devices this way. If you have Microsoft Entra ID P1, which comes with Microsoft 365 Business Premium, your admin can block device code sign-in with a Conditional Access policy and exempt the one device that needs it.

The takeaway

A genuine Microsoft page can still hand over your account if you type an attacker's code into it. Tell staff never to enter a sign-in code they did not request, and have your admin block device code sign-in unless a specific device needs it.

Got a question like this one?

Send it over — 20 minutes, no pitch, a straight answer either way.