What to Do If Your Microsoft Account Is Hacked

TheDigitalLife Editorial Team

Published May 14, 2026 · Last checked November 15, 2026 · 6 min read · Digital Safety

TheDigitalLife Editorial Team · Edited by R. K. Tiwari · Editorial standards

A Microsoft account covers Outlook.com email, OneDrive files, Microsoft 365 subscriptions and the Xbox profile, so losing it can expose a lot. Microsoft's support site describes a recovery path in a specific order, and the order matters: scan your computer for malware before you change the password, then reset it, then check the account settings that Microsoft may have changed after the hack. This guide follows that sequence, explains what to do if you cannot sign in and covers the tools Microsoft offers to keep the account safe.

Start with the sign-in helper

Microsoft's page on recovering a hacked account begins with a sign-in helper tool. It asks for your email address or phone number and then either shows self-help steps that fit your situation or offers a chance to talk to an agent. Microsoft also says its support agents are not allowed to send password reset links or to access and change account details, to protect your account and its contents, so be wary of anyone who claims otherwise.

Step 1: Scan your computer first

Microsoft says to clear your PC of viruses or malware before you change your password. Make sure your antivirus program is running and up to date, then run a full scan. In Windows Security, open the Virus and threat protection tab, choose Scan options, then Full scan, then Scan now. Microsoft stresses that you should run the scan before changing the password, whichever antivirus app you use, and set it up to update and scan automatically. A practical reason is that malware on the PC could capture a new password as you type it. The FTC gives the same order for any hacked account: update security software, scan, remove anything suspicious and restart before you follow the provider's recovery steps.

Step 2: Change or reset the password

After the scan, Microsoft says to sign in and change your password, making sure it is strong. If you cannot sign in, reset the password. Microsoft's reset page explains that it must verify your identity first: you choose where to receive a verification code, retype part of the hinted email address or the last four digits of the phone number, request the code and enter it to set a new password. If you do not recognize any of the verification options or have lost access to them, use the sign-in helper.

Step 3: Check account settings

Microsoft's recovery page says that because someone else had access, it reset some of your account settings, and it tells you to check connected accounts, forwarding and automatic replies. Look for a forwarding rule or automatic reply you did not create, because a hacker can use them to receive copies of your mail. The FTC's guidance also warns about email auto-forwarding rules and about changes to recovery information, so confirm that the email address and phone number on file are yours.

Microsoft's Outlook.com security page also points to the recent activity page at account.live.com/activity, where you can see when and where your account was accessed, including successful sign-ins and security challenges. On the account's Security basics page, selecting Review activity lets you check for unusual sign-ins; for activity you are sure was not you, you can expand it and select "This wasn't me".

If you cannot sign in at all

If the hacker changed your recovery information, Microsoft offers an account recovery form. Microsoft says the form can take time and is designed to ask questions only you can answer, such as contacts, email subject lines and passwords you used before. You need a working email address to receive the result, and Microsoft says it will respond within 24 hours. If it cannot verify you, you can try again up to two times per day. Microsoft recommends completing the form on a device and in a place you commonly use to sign in. If you turned on two-step verification and cannot use any alternate method, Microsoft says it cannot help, which is why a recovery code matters.

Prevent a repeat

Microsoft's Outlook.com guidance recommends turning on two-step verification, adding an alternate email address and a mobile phone number so you can recover the account quickly, and checking recent activity regularly. A Microsoft account recovery code is a 25-digit code. Microsoft says to print it and keep it in a safe place, not on a device you use to sign in, and notes that creating a new code makes earlier codes stop working. Also see two-factor authentication: best apps, backup codes and mistakes to avoid, password manager safety: should you use one? and how to secure all your accounts after one password leak.

If the hacker reached your payment cards or personal information, see credit card fraud: first steps to protect your account and identity theft recovery checklist: what to do first. A common way in is a fake support pop-up; see fake tech support pop-up: what to do immediately.

Sources:

R. K. Tiwari, owner and editor of TheDigitalLife

Written by TheDigitalLife Editorial Team

Edited by R. K. Tiwari

Owner & Editor

R. K. Tiwari is the owner and editor of TheDigitalLife. He checks each guide against official U.S. sources before it is published.

About the editor and our editorial standards