Do not use the code or reply to the message.
- Ignore and delete any verification or single-use code email that was not requested.
- Check that the email is genuinely from Microsoft:
- The sender domain for legitimate Microsoft account security emails is @accountprotection.microsoft.com.
- If the domain is different, treat it as phishing and delete it.
- Even if the email is genuine, it usually means either:
- Someone else is trying to sign in to the account using the email/phone by mistake, or
- Someone is trying to access the account without permission. Without the code, they cannot complete sign-in.
- To improve security:
- Sign in to the Microsoft account security page and review security info and recent activity.
- Consider enabling or switching to passwordless sign-in methods such as Microsoft Authenticator, Windows Hello, SMS/Email codes, or a physical security key to better protect the account.
Do not respond to any codes that were not requested. As long as the code is not used, the account remains safe.
References: