Your email address is the master key to your digital life. It resets your bank password, unlocks your social accounts, and receives your invoices. It is also, almost certainly, sitting in at least one leaked database you have never heard of. When a company is breached, its user database — emails, names, phone numbers, and often password hashes — is copied, traded, and merged into enormous collections that circulate for years. The good news: checking whether your email appears in known breaches takes two minutes, costs nothing, and tells you exactly where you stand. This guide walks through the check properly, explains what the results actually mean, and gives you the response checklist to follow if your address shows up.
We run this audit on our own company accounts as part of routine security maintenance, and it is consistently an eye-opener: in a recent review, one ordinary working mailbox appeared in ten separate breach collections — including modern "stealer log" compilations that most people have never heard of. Nothing about that mailbox was unusual. That is the point. Breaches are not a scandal that happens to other people; they are background radiation for anyone who has used the internet for a decade. The skill is not avoiding them — it is knowing how to check, and what to do with the answer.
1. Three Different Things Get Called a "Breach"
Before checking, it helps to know what you are looking at, because the response differs. A classic data breach is a single company losing its database: a forum, a shop, a game server. Your email appears alongside whatever that site stored — sometimes just an email and username, sometimes hashed passwords, addresses, and dates of birth. A combo list is an aggregation: attackers merge dozens of older breaches into one giant email-and-password file used for credential stuffing, trying the same pairs against banks, email providers, and streaming sites. A stealer log is the newest and nastiest category: malware on an infected computer records everything typed into the browser — passwords, session cookies, autofill data — and those logs are bundled and sold. If your email appears in a stealer log, assume the passwords you typed on that machine are known in plain text, not merely hashed.
2. Step by Step: Check Your Email on Have I Been Pwned
Have I Been Pwned (haveibeenpwned.com), run by security researcher Troy Hunt, is the reference database for this check: it indexes billions of breached accounts from verified incidents, and it is the same source many password managers and browsers quietly use behind the scenes. The check itself is simple:
Step 1. Open haveibeenpwned.com and enter the email address you want to check. Use the address you give to important accounts first — your primary mailbox — then repeat for older addresses you may have forgotten about. Step 2. Read the result. A green screen means the address does not appear in the breaches the service knows about (more on what that does and does not guarantee below). A red screen lists every breach and "paste" your address appears in. Step 3. Click into each breach and note two things: the breach date, and the "Data classes" line — this tells you exactly what leaked: email addresses only, or passwords, phone numbers, physical addresses, and more. Step 4. Pay special attention to entries labelled as stealer logs or credential-stuffing lists; those carry the highest urgency. Step 5. Use the free "Notify me" option to register the address, so you are emailed automatically if it appears in a future breach.
3. Check Your Passwords Separately — Without Revealing Them
Knowing your email leaked is only half the picture; the dangerous half is whether a password you still use leaked with it. Have I Been Pwned also maintains Pwned Passwords, a searchable set of hundreds of millions of real passwords seen in breaches. Typing your actual password into a website feels wrong — and the service is designed so you never have to. It uses a technique called k-anonymity: your browser (or your code) hashes the password with SHA-1, sends only the first five characters of the hash to the API, and receives back every known password hash beginning with those characters. The match is checked locally, on your machine. The full hash — let alone the password — never leaves your device.
Developers can call the same API directly. This is the complete, working pattern:
import hashlib
import requests
def pwned_count(password: str) -> int:
sha1 = hashlib.sha1(password.encode("utf-8")).hexdigest().upper()
prefix, suffix = sha1[:5], sha1[5:]
response = requests.get(f"https://api.pwnedpasswords.com/range/{prefix}", timeout=10)
response.raise_for_status()
for line in response.text.splitlines():
candidate, count = line.split(":")
if candidate == suffix:
return int(count)
return 0
print(pwned_count("hunter2")) # the result may surprise youIf a password you use returns any count above zero, retire it everywhere. It does not matter how strong it looks — once a password exists in these collections, automated tools will try it, combined with your email, against every service that matters. This is also the strongest argument for a password manager: unique passwords per site turn a breach of one service into a non-event for all the others.
4. Your Email Is in a Breach. Do This, in This Order
Work through this checklist calmly and in order. First, change the password on the breached service itself — from the official app or by typing the address yourself, never from a link in an email about the breach (phishing waves reliably follow public breach news). Second, change that same password on every other account where you reused it; this is the step people skip, and it is the one credential stuffing depends on. Third, turn on two-factor authentication, or better, passkeys, on your email account first and then on financial and social accounts — your mailbox is the recovery path for everything else, so it gets the strongest lock. Fourth, if the breach included stealer logs, treat the machine as suspect: run a reputable malware scan, then change important passwords from a clean device and sign out all sessions, because stealer logs often include live session cookies that bypass passwords entirely. Fifth, expect targeted phishing: attackers with your real name, phone number, and purchase history write convincing messages. Verify unusual requests through a second channel. Finally, check the practical fallout: if financial data or ID numbers were in the data classes, watch statements closely and use whatever fraud-alert or freeze mechanisms your country offers.
5. For Developers: Watching Over Your Users and Your Domain
If you run a product, breach hygiene is partly your job too. Integrate the Pwned Passwords check at signup and password-change time and reject passwords that appear in breach corpora — this single control defeats most credential-stuffing attempts against your service. Have I Been Pwned also offers domain search, which lets a verified domain owner see every breached address on their domain; it requires proving control of the domain, which is exactly the safeguard that keeps the data out of strangers’ hands. At the organisational level, fold a quarterly breach check of company mailboxes into your security routine, the same way you would review access logs: breaches surface months or years after they happen, and a mailbox that was clean in January may appear in a newly published collection by June.
Common Mistakes to Avoid
Reusing one "strong" password everywhere. Strength does not survive reuse: one breach converts your strongest password into a skeleton key. Clicking the "your account was breached" email. Real breach notifications exist, but so do perfect imitations; always navigate to the service yourself. Paying a "data removal" service to erase you from breaches. Leaked databases cannot be un-leaked; anyone promising deletion from breach collections is selling theatre. Spend the money on a password manager instead. Ignoring a stealer-log result because "my antivirus says I am clean now." The log was captured when the infection was active; the passwords from that period must be treated as public, and sessions revoked, regardless of the machine’s current state.
Frequently Asked Questions (FAQ)
Q: Is it safe to type my email into Have I Been Pwned?
Yes. The service is the industry reference, operated transparently for over a decade, and an email lookup reveals nothing sensitive — results show only breach names, dates, and data classes. For passwords, use the k-anonymity flow described above so the password itself is never transmitted.
Q: The check says "no breaches found." Am I completely safe?
No — it means your address is not in the breaches this database has collected and verified. Private or undiscovered breaches are invisible to everyone. Treat a clean result as good news, not a guarantee, and keep the habits that make breaches survivable: unique passwords, two-factor authentication, and a password manager.
Q: Should I delete accounts I no longer use?
Yes. Every dormant account is a stored copy of your email, password hash, and personal details waiting for that service’s breach day. Deleting old accounts shrinks your exposure permanently, and it costs nothing but a few minutes.
Conclusion
You cannot control whether a company you trusted gets breached. You can control whether that breach matters. Two minutes on Have I Been Pwned tells you where your email has surfaced; the k-anonymity password check tells you which of your passwords are burned; and the response checklist — change, uniquify, add two-factor, revoke sessions — converts a frightening headline into a closed ticket. Run the check today, register for notifications, and put it on your calendar twice a year. Security is rarely about heroics; it is about exactly this kind of boring, repeatable maintenance.
💡 Engineering Key Takeaway
Assume every password you have ever reused is already public. Unique passwords per site, stored in a manager, plus two-factor authentication on your mailbox, reduce any single breach to a minor inconvenience.