how do hackers get your password how do hackers get passwords how do hackers guess your password

How do hackers get your password? The 7 real ways

Adrian Maverick · · 9 min read

Hackers rarely "crack" a password out of thin air. Most of the time they get it from you or from somewhere you used it: a data breach at another site where you reused it, a fake sign-in page you typed it into, malware on your device, or a guess built from personal details and common choices.

The UK's National Cyber Security Centre (NCSC) lists ten ways passwords are discovered and notes that most of them use widely available, automated tools that need only moderate skill. Here they are in seven groups, with what each looks like from your side and the fix that closes it.

1. A password you reused, leaked in someone else's breach

When a website is breached, lists of email addresses and passwords end up being traded and posted online. Attackers then try those same pairs on email, banking, shopping and social sites. NCSC describes it as using passwords leaked from data breaches against other systems where people used the same password.

This is why you can be "hacked" on a site that was never breached. CISA's password page tells the story of a woman whose bank and email were both taken over because she used one password for both, and that password had been posted online after a company breach.

What stops it: a different password for every account. A password manager makes that realistic. Has my password been leaked shows how to check yours with tools you already have.

2. You typed it into a fake page (phishing)

The FTC says phishing messages pose as a company you trust and tell a story to make you click: suspicious activity, a login attempt, a problem with your account or payment. The link leads to a copy of the real sign-in page, and whatever you type goes to the attacker.

Calls and texts work the same way. Someone posing as support asks you to "confirm" your password or read back a code.

What stops it: never sign in from a link in a message. Type the address yourself or use the app. Google states that it never asks for your password or verification codes over email, phone call or message, and the same is true of any service worth using. A password manager helps here too, because it won't fill in your password on a lookalike site. See how to spot a phishing email, and if you already clicked, what to do if you clicked a phishing link.

3. They guessed it

Guessing comes in a few forms, all on NCSC's list:

  • Personal guesses. Your name, birthday, pet, team or kids' names, often found on social media.
  • Common passwords against many accounts. Called password spraying: a handful of popular passwords tried on a huge number of accounts, hoping one fits.
  • Automated guessing. Software that tries large numbers of passwords until one works.

Online guessing is slower than people fear. Well-run sites slow down or lock out repeated attempts, which NCSC calls throttling and account lockout. So guessing mostly catches passwords that are short, common or personal.

Swapping letters for symbols doesn't help as much as it feels like it should. NCSC says attackers know patterns like replacing "o" with a zero and build them into their guesses. Can AI crack passwords covers how much smarter those guesses are getting.

What stops it: length and randomness. CISA recommends at least 16 characters, either random or a passphrase of 4 to 7 unrelated words. How to create a strong password walks through it.

4. They stole the site's password database

Sites shouldn't store your actual password. They store a "hash," a scrambled version that can't simply be turned back. But NCSC explains that when a hash file is stolen, attackers can still recover passwords from it by guessing offline, with no lockout to slow them down.

Weak and common passwords fall first. A long, random password can stay out of reach even after a breach, while "Summer2024!" won't.

What stops it: you can't control how a site stores passwords, so control the damage. Use long, unique passwords so a stolen hash is hard to reverse and, if it is, opens only one account.

5. Malware recorded it on your device

A keylogger records what you type, including passwords. NCSC lists it as its own route. Other malware goes after data saved on the device. It usually arrives through a download, a fake update, a pirated app or an email attachment.

Signs are often subtle: browser extensions you didn't install, settings changing by themselves, or accounts getting taken over again right after you change the password.

What stops it: keep your system and apps updated, install software only from official stores and sites, and run trusted antivirus software, which Google recommends in its hacked-account steps. Remove browser extensions you don't recognize. If you suspect malware, clean the device before changing passwords, or the new ones get recorded too. How to tell if your phone is hacked covers phones.

6. Someone saw it or found it

Low-tech still works. NCSC lists shoulder surfing, someone watching you type, and passwords stored insecurely: sticky notes by the screen, a "passwords" note on your phone, or a document on your laptop. People you live or work with are the usual risk here.

What stops it: keep passwords in a password manager instead of notes, and use a screen lock on every device. Read are password managers safe if you're unsure about storing everything in one place.

7. It was intercepted on the network

NCSC includes intercepting a password as it travels over a network. On modern sites this is rare, because HTTPS encrypts the connection between your browser and the site. The risk returns with old sites and apps that don't use HTTPS, or if you click through a browser warning about an insecure connection.

What stops it: don't sign in on pages that show a security warning, and keep your browser up to date.

Why do hackers keep getting my password?

If a new password gets taken again soon after you change it, one of three things is usually happening:

  1. It's being recorded. Malware on a device you sign in from sees every new password. Scan and clean it first.
  2. Someone still has access. Your email may have a forwarding rule, or the attacker may still be signed in, so every reset link reaches them too. NCSC notes that an attacker inside an account will probably also get the reset request. What to do if your email is hacked covers the cleanup.
  3. The new password is a variation of the old one. NCSC says people forced to change passwords tend to pick minor variations, which attackers try first.

That's also why NCSC advises against changing passwords on a schedule: stolen passwords are generally used right away. Change one when you know or suspect it leaked, and make the new one completely different.

The early warning most people ignore

A sign-in code you didn't ask for is a signal. NCSC points out that a text or email code you didn't request can mean someone already has your password and got stuck at the second step. Don't share the code, change that password, and check where else you used it.

That second step is the reason two-factor authentication matters: it makes a stolen password much less useful. Attackers have ways around some forms of it, covered in how do hackers bypass 2FA, which is why a passkey is the stronger choice where a site offers one.

Protect the email that resets everything

Almost every password reset goes to your email, so the inbox password matters more than any other. Give it a password you use nowhere else. Secria Mail also lets you sign up to services with aliases instead of your main address, and you can delete an alias for good if it starts getting attacked. Sign-up asks for no phone number, and every plan, free included, uses post-quantum encryption. Create a free account.

Frequently asked questions

Can hackers get your password from just your email address?

No. Your address tells them where to try, not what to type. They still need the password from a breach, a phishing page, malware or a guess, which is why a unique, long password and two-factor authentication matter.

How do hackers know my password if I never shared it?

Most likely it leaked in a breach at a site where you used the same password, or it was guessed because it was short or common. Malware on a device you used is the other common route.

How do hackers get hashed passwords?

By breaking into a company's systems and copying its password database. They then try to work out the original passwords from the hashes offline. Long, random passwords hold up far better than common ones.

Should I change my passwords regularly?

No, not on a schedule. NCSC says regular changes lead to small variations of old passwords and add no real protection. Change a password right away when you know or suspect it leaked, and keep every password unique.

How do hackers change your password once they're in?

With your old password, or through your email: whoever controls the inbox can request reset links for your other accounts. If that has happened, start with someone changed my password.

Use a different long password everywhere, sign in only from the real site or app, and add a second step to the accounts that matter most.

Secria fact-checks every post against primary sources. Spotted something wrong or out of date? Email hq@secria.me and we will correct it.