Skip to main content

Cotool + Have I Been Pwned

Connect Have I Been Pwned to Cotool so agents check emails and verified domains for breaches, pastes, and stealer logs, and test password hashes with k-anonymity.

Threat Intelligence
Updated

The short answer

Have I Been Pwned answers whether an email address, a verified domain, or a password hash has turned up in a known breach, a paste, or info stealer logs. Cotool agents run those lookups during investigations to check breach exposure for the people and credentials an alert involves.[1][2][5]

How it connects: Cotool calls the HIBP v3 API with an API key sent in the hibp-api-key header. Keys are 32-character hexadecimal strings, and Pwned Passwords range queries need no key at all.[1][5]

What Cotool uses from Have I Been Pwned

Breaches for an email
The breachedAccount search returns the breaches an address appears in, and truncateResponse=false returns the full breach model. Public account searches exclude sensitive breaches.[5]
Pastes for an email
The pasteAccount search lists public pastes an address was found in, with the paste source, id, title, date, and email count.[5]
Verified domain search
The breachedDomain search returns every breached alias on a domain you have verified, with the breaches each appeared in. Unverified domains return HTTP 403, and verified-domain searches can include sensitive breaches.[5]
Stealer logs
Stealer log searches return the website domains an info stealer captured an address against, the addresses captured on a website domain, or the aliases captured on an email domain. The address or domain must be verified in the dashboard.[5][6]
Breach catalog
All breaches, a single breach by name, and the most recently added breach, each with title, domain, breach and added dates, data classes, and flags such as sensitive, spam list, and malware.[5]
Pwned Passwords
A range query sends the first 5 characters of a SHA-1 or NTLM hash and returns every matching suffix with a count of how often it appears, so the full hash never leaves the caller.[5]

Detections, hunts, and triage

Check an alerted user's exposureEnrichment
During an identity alert, an agent looks up the user's email for breaches and stealer log entries. A stealer log hit against the company's SSO domain means an info stealer captured the user's credentials as they signed in.[3][5]
Sweep the domain when a new breach landsHunt
When the most recently added breach changes, a hunt runs the verified-domain search and lists which employees appear in that breach, then checks whether their accounts show other signs of misuse.[4][5]
Find stolen credentials for one serviceTriage
The stealer log search by email domain maps each employee alias to the website domains their credentials were captured on, so responders can find everyone whose sign-in to a given service was stolen.[5]
Test hashes from a credential dumpEnrichment
Given SHA-1 or NTLM hashes from a dump or a config file, an agent checks each against Pwned Passwords with range queries to see which passwords are already public.[5]

Example query

Return full breach details for an addressbash
curl -s "https://haveibeenpwned.com/api/v3/breachedaccount/account-exists%40hibp-integration-tests.com?truncateResponse=false" \
  -H "hibp-api-key: $HIBP_API_KEY" \
  -H "user-agent: security-team-lookup"

Queries HIBP's test address, which returns one breach, with the full breach model. Authenticated requests need a user agent that identifies the application, and the email should be URL encoded.[5]

Setup and permissions

Buy or copy an API key from the HIBP dashboard, where keys and subscriptions are managed, and add and verify any domains to search there.[5][6]

PermissionAccess
Core, Pro, or High RPM planEmail breach search, paste search, and subscription status are available on these plans.[5]Read
Core or Pro plan with verified domainsDomain search returns breached aliases only for domains verified by DNS, meta tag, or email.[5]Read
Pro planStealer log searches by email address, website domain, and email domain.[5]Read
  • Breach, paste, and stealer log APIs are rate limited by the purchased key. Requests over the limit get HTTP 429 with a retry-after header.[5]
  • Authenticated requests must send a user agent that identifies the consuming application; a missing user agent can return HTTP 403.[5]

How Cotool works with Have I Been Pwned

  • Cotool added Have I Been Pwned in release 0.78.0, alongside ArmorCode, for breach exposure checks.[1]
  • Cotool's threat intel feed is filtered for relevance and exposure in each customer's environment, and breach lookups give agents a direct check of whether specific people and credentials are exposed.[1][4]

FAQ

Does a Have I Been Pwned email search show sensitive breaches?
No. Have I Been Pwned excludes sensitive breaches from public account and hash-range searches. Searches on a domain you have verified can return them.[5]
Does checking a password with Pwned Passwords send the password to Have I Been Pwned?
No. A Pwned Passwords range query sends only the first 5 characters of the SHA-1 or NTLM hash, and the caller matches the returned suffixes locally. The Pwned Passwords API also needs no subscription or API key.[5]

Sources

  1. Changelog (Cotool docs) · accessed November 22, 2026
  2. Integrations (Cotool) · accessed November 22, 2026
  3. Respond to every signal (Cotool Respond) · accessed November 22, 2026
  4. Threat hunting (Cotool Hunt) · accessed November 22, 2026
  5. API Documentation (Have I Been Pwned) · accessed November 22, 2026
  6. Sign in to your dashboard (Have I Been Pwned) · accessed November 22, 2026

Related integrations

All integrations

Use cases with Have I Been Pwned

Related reading

Attackers are scaling with tokens

Cotool helps defenders operate at machine speed. See how security teams are scaling Detection & Response.

Book a demo