A single-use Microsoft verification code that was not requested does not by itself mean the account is hacked, but it does mean someone or something tried to sign in using that email address.
Key points from Microsoft guidance:
- Why the unrequested code was sent
An unrequested verification code or sign-in prompt can happen when:
- Someone is trying to access the account.
- Someone accidentally entered the wrong phone/email when trying to sign in.
- Delivery of a code or prompt that was requested earlier was delayed.
- What to do with a code that was not requested
- Do not use or enter the code anywhere.
- Do not respond to any verification request that was not initiated.
- If a prompt appears (for example in an app), always choose Deny for any sign-in request not initiated. Microsoft states that if someone is trying to access the account, without the correct code or approval, the account remains safe.
- How to verify the email is legitimate
- Legitimate Microsoft account security emails are sent from the domain @accountprotection.microsoft.com.
- For unusual sign-in alerts, a valid sender address is
******@accountprotection.microsoft.com. - If the domain matches
@accountprotection.microsoft.com, the message itself is from Microsoft, even if the sign-in attempt was not.
- Recommended next steps to protect the account
- Sign in to the Microsoft account directly (by typing the address into the browser, not via the email link) and review recent sign-in activity using the official security pages referenced in the articles.
- If any sign-in looks unfamiliar, follow the guidance in the “unusual sign-in” and “hacked or compromised account” articles (change password, review security info, etc.).
- Ensure security info (recovery email, phone, and two-step verification) is up to date so alerts and codes continue to go to the correct contact methods.
As long as the code is not entered and unrequested prompts are denied, the account is protected from that specific attempt.
References: