Open to everyone Reading, lesson 18 of 100, 2 min read
How passwords are attacked
Ways passwords are stolen or guessed
| Attack | How it works | Best defence |
|---|---|---|
| Phishing | You type your password into a fake page | Two-step sign-in; check the address; a password manager that refuses to fill on fake sites |
| Credential stuffing | Passwords leaked from one site are tried on many others | A different password for every account |
| Password spraying | A few very common passwords are tried against many accounts, slowly, to avoid lockouts | Ban common passwords; two-step sign-in |
| Brute force | Every possible combination is tried | Long passwords; rate limits and lockouts |
| Dictionary attack | Words, names and common patterns are tried first | Avoid real words with simple changes (Password1!, Lagos2026) |
| Offline cracking | Stolen password hashes are guessed at huge speed on the attacker's own computers | Long passphrases; services that store passwords with slow, salted hashes |
| Keyloggers and malware | What you type is recorded | Updated devices, antivirus, no pirated software |
| Shoulder surfing and notes | Someone watches or finds your password | Privacy screens, password managers |
Why length beats complexity
Each extra character multiplies the number of possible passwords. A random 8-character password using letters, numbers and symbols has about 6 × 10^15 possibilities. A passphrase of five random common words has far more, and is easier to remember:
weak: Adebayo@123
better: mango-river-kettle-north-saltAttackers know the tricks people use: capital letter first, number and ! at the end, @ for a. Those make a password feel complex without making it hard to guess.
Has my password leaked?
Data breaches are common. Reputable breach-notification services let you check whether your email address appears in known leaks. If it does, change the password for that account and any account that shared it.
Note
You will see in module 6 how services should store passwords so that a leak of their database does not reveal them.