root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat haveibeenpwned.md
// tools

Have I Been Pwned

22 Jul 2026 · 2 min read

What it is — Have I Been Pwned (HIBP), created by Troy Hunt, is a public database aggregating known data breaches. Give it an email and it tells you which leaks it appeared in; give it a domain (with ownership verification) and it shows the aggregated exposure of every account from that organisation.

TypeWeb service + API
CostEmail search free · domain API paid
URLhaveibeenpwned.com

How to use it

Look up a specific email directly on the site:

https://haveibeenpwned.com/account/<email>

It also checks whether a specific password appeared in a breach (uses k-anonymity: only sends the SHA1 hash prefix, never the plaintext password):

curl -s "https://api.pwnedpasswords.com/range/$(echo -n 'password' | sha1sum | cut -c1-5)"

The Pwned Passwords service is especially useful because it never transmits your full password — only the first 5 characters of the SHA1 hash, and you compare the rest locally. It's the same mechanism password managers like 1Password use to warn about compromised passwords without leaking your credentials.

What I use it for

  • Generating spraying candidates (with authorisation): in an authorised engagement, knowing which employees appear in breaches helps prioritise accounts more likely to reuse passwords.
  • Personal hygiene: I periodically check my own emails to see if any service I use suffered a breach and it's time to rotate that password.
  • Context for a bug bounty report: if I find leaked credentials related to a program, HIBP helps confirm whether they're from an already-known, public breach (different impact than a new, unreported leak).

Link

haveibeenpwned.com →