A password can be stolen when someone tricks you into entering it, records what you type, guesses it, or gets it from a data breach. Learn what each attack looks like and how to protect your email, social media, and other accounts.
Five common ways passwords are stolen
- Phishing. A fake email, text message, or sign-in page imitates a service you trust. It may claim that your account is locked or ask you to update a payment method so you feel pressured to act.
- Keylogging. A keylogger records what you type. Malicious downloads and attachments can install one, and other malware can also capture what is on screen.
- Brute-force guessing. Automated attempts try many possible passwords. Short or predictable passwords are easier to guess.
- Dictionary guessing. This starts with common words, known passwords, and typical variations. Adding a year or number to a familiar word may still make it predictable.
- Rainbow tables. If a service exposes poorly protected password hashes in a breach, an attacker can try to match them against precomputed values. A unique salt and suitable password hashing make those tables ineffective against properly stored passwords. NIST password-storage guidance.
Four steps to protect your accounts
Verify unexpected messages before you act. Check the full sender address and watch for a generic greeting, an urgent account warning, or a request for payment or a sign-in code. Open the company’s official app or website yourself to check your account. To report a message in Gmail on a computer, open it, choose More next to Reply, then select Report phishing. Gmail’s reporting instructions.

The boxes show two signs in this example: an account-hold claim and a button asking you to update payment details. FTC example. Scan the device if you suspect a keylogger. Download apps from official stores or the developer’s own website. If you installed suspicious software or opened a risky attachment, update your security software and run a scan. On Windows open Windows Security → Virus & threat protection → Quick scan. Choose Scan options for a more thorough scan when needed. If you think the device may still be infected, use another trusted device to change your passwords.

The box highlights Quick scan and Scan options. Microsoft Windows Security guide. Replace weak, reused, or exposed passwords. Use a password manager to create a long, unique password for each account. If one password was exposed, change it everywhere you used it, starting with email and other important accounts. When Chrome flags a password on Android, tap Check passwords after verifying the notification, or open Chrome → Settings → Autofill and passwords → Google Password Manager → Checkup.

Check passwords takes you to the accounts that may need attention. Google’s Password Checkup guide. Add a passkey or two-step verification. For a Google Account, open Security & sign-in in your account settings. Set up a passkey on a device you control if your account supports it. Enable 2-Step Verification and follow the prompts to add a second step. Keep any backup codes secure and decline sign-in prompts you didn’t request.

Tap Continue only when you opened passkey setup yourself. Google’s 2-Step Verification guide.
If you think someone already has your password
Open the service directly on a trusted device and change the password. Review recent security activity, sign out unfamiliar devices, and check that the recovery phone number and email are yours. Change the password on any other account that used it. If you’re locked out, use the service’s official recovery process. Google’s compromised-account recovery guide.