Blog / Operating systems & apps /

Have I Been Pwned explained

You type your email address into a website and it says: “Oh no, pwned!” It is a slightly alarming moment. It is also one of the most useful free checks on the internet.

Have I Been Pwned (often shortened to HIBP) is a free service, created by security researcher Troy Hunt, that tells you whether your email address or password has shown up in a known data breach. “Pwned” is hacker slang for “owned”, meaning compromised.

It does not hack anything. It collects data from breaches that have already happened and been made public, and lets you search it safely.

Key takeaways

  • HIBP tells you if your email appeared in a known breach. It does not tell you if you are being attacked now.
  • A “yes” is common and not a disaster. It means a service you used was breached at some point.
  • The fix is the same each time: change the password, use a unique one, turn on two-factor authentication.
  • You can check passwords too, in a way that does not reveal them.
  • Subscribe to notifications to be told about future breaches.

What a “data breach” is

A company stores accounts: emails, usernames, passwords, sometimes more. If attackers get in and copy that database, it is a breach. The data then circulates, gets sold or posted publicly, and criminals use it to try the same email and password combinations on other sites.

That last part is the real danger. A forgotten forum you joined years ago is not the problem. Reusing that forum’s password on your email account is.

How HIBP knows

HIBP gathers breached datasets that have appeared publicly and loads in the email addresses (and, for some breaches, other fields). When you search, it checks its list. If your address is there, it tells you which breaches it appeared in and what type of data leaked: for example email addresses, passwords, names or phone numbers.

It does not show you your password. It shows you the name of the breached service and the date, which is enough to remind you where the risk lies.

Is it safe to type my email into it?

HIBP is widely respected in the security community and is run by a well-known researcher. Still, use the correct address, check you are on the real site, and never enter a password into the email search. The email search needs only the email address.

If you want extra reassurance, type the address by hand into the official site rather than following a link from an email that claims you have been breached. Phishers do imitate breach alerts.

Pwned Passwords

The second tool is Pwned Passwords. It lets you check whether a password has appeared in breaches. If a password shows up there many times, it is on attackers’ lists of common guesses and should never be used.

You may worry about typing a real password into a website. HIBP’s design deals with this using a technique called k-anonymity. In plain words: your browser sends only the first few characters of a scrambled version of the password, the service returns a list of all possible matches, and the final comparison happens on your device. The site never sees the full password.

Even so, a sensible habit is to check passwords through your password manager, which can run this check for you, rather than typing live passwords into a web form. Password managers compared covers which managers include breach checks.

What to do when it says you were pwned

Do not panic. Work through this:

  1. Look at which breaches. Note the services and when they happened.
  2. Change the password on that service, if you still use it.
  3. Change it anywhere else you used the same password. This is the important step.
  4. Make each password unique with a password manager.
  5. Turn on two-factor authentication, ideally with an authenticator app or a passkey rather than SMS.
  6. Close accounts you no longer use. Fewer accounts, fewer future breaches.
  7. Be alert to phishing. If your name, phone number or address leaked, expect more convincing scam messages.

If the breach included only an email address and nothing sensitive, there may be little to do except stay alert. Check the details listed for each breach.

What if the result is clean?

Good, but not a guarantee. HIBP only knows about breaches that have been found and loaded. A clean result means “not in the breaches we know about”, not “nothing has ever happened”.

Domain search for site owners

If you run a website with its own domain, HIBP has a domain search. After you verify that you control the domain, it can show which addresses at that domain appear in known breaches. For a business with staff emails, that is a helpful audit. Seeing a work address in a breach is a reminder to change the password and enable two-factor authentication on the accounts that matter, including hosting, email and your CMS. Website security basics: five things that stop most attacks pairs well with it.

Notifications

You can subscribe an email address to HIBP’s notifications. If the address appears in a newly added breach, you get an email. It takes a minute to set up and means you hear about it from a trustworthy source rather than months later.

Myths

“If I am in a breach, my accounts have been hacked.” Not necessarily. Your data leaked from one service. Your other accounts are at risk mainly if you reused the password.

“Changing my email is the fix.” The email is rarely the problem. Passwords and reuse are.

“HIBP stores my password.” The password check is designed not to.

“It is a scam.” It is a long-running, well-known service. Just make sure you are on the official site.

FAQ

How often should I check?
Once now, then subscribe to notifications.

Does a breach mean I should delete the account?
If you no longer use the service, yes. If you do, change the password and add a second factor.

Is it only for emails?
Emails and passwords are the main ones. Phone numbers can also be searched in some cases.

Next step

Search your main email address, and your work one, then change anything reused. How many breaches did it find?