On this page
Data Breach API: Keep API Key Hashes Distinct from Usable Keys

Data Breach API: Keep API Key Hashes Distinct from Usable Keys

Data Breach API: Keep API Key Hashes Distinct from Usable Keys

“API key hash” can be normalized to “API key” by removing one word. The alert becomes more actionable, but states that the integration discovered a usable credential. A data breach API consumer needs to preserve how the secret was stored, as well as what type of account it belongs to.

Hex’s November 24, 2026 incident report notes that on November 23 an attacker executed commands on its servers. Hex could not rule out that the attacker also read its databases. Among other data, API key hashes may have been accessed. Hex stated its API keys are 128 bit random values, hashed using HMAC-SHA256 and therefore believed rotation of the keys was not necessary. Hex suggested users change their password and reset 2FA with a new secret.

This advice is specific to Hex and does not mean that all hashed credentials are safe. The concern here is more specific. The integration needs to differentiate between various representations.

A credential type and its representation are not the same.

An API key is an example of a credential type. A hash is an example of a stored representation. A reported hash alone does not establish that the application has a usable bearer token. Further, just because a string is named a hash, it does not mean it has similar security characteristics to other strings named hashes.

Webz.io’s Data Breach Monitoring API gives structured information about breaches, combination lists, and infostealer logs. Available fields and access to sensitive values depend on the source and permissions. Preserve supported representation information in the normalized view. A generic credential category will not supply missing evidence. This supports distinguishing between breach-wide descriptions of assets and specific account evidence. When evidence suggests that a key hash associated with an account was exposed, the application must also describe what that value represents.

Consider a constructed integration scenario: An authorized evidence review provides the application with an account reference, a value described as an API key hash, and a link to the issuer’s explanation. This is test data for the application, not a sample Webz.io response or a finding about a Hex user.

The invalid normalizer interprets the value as an “API key,” copies it into a generic secret field, and sets its status to “usable.” The downstream application states “Active API Key Exposed.” Assertions regarding activity and usability were added by the normalizer.

Modify the normalizer to leave the credential description as is and set usability to “unassessed.” Store the issuer’s assessment separately, with its source and the date the assessment was reviewed. The normalizer can now state, “API key hash exposed, however usability is unknown based on this record.”

Don’t take the hash to a live service to check if it works. Testing it that way might be done without the authorization of the reviewer and would not prove that the key is secure. For this case, do not verify the mapping with an external endpoint like a login page.

Check the output that gets sent to the responder.

Run the fixture through the real notification and export paths. The analyst should see the hash with an unresolved usability assessment and the issuer’s recommendation. Look for phrases like “active” or “valid” that may have been generated by the template or summary.

Next, remove the description of the representation from the fixture. This should result in a message stating that the representation is unknown. It should not guess plaintext from a field name or a hashing scheme from a string’s length. An unresolved value should be reviewed. Changing the name of the variable does not resolve this issue.

Replay the fixture after the issuer changes their assessment. Show the newer assessment and its review date. The application should retain the older assessment and source. Stored alerts should not be taken as evidence that the issuer has always given that advice.

Let the response follow the evidence.

For this example, closing the loop means correcting the mapping and checking the notification. Meanwhile, credential response remains a separate decision for the account owner under the issuer’s current instructions and the organization’s policy. The representation check should not delay containment when independent evidence shows a usable secret was exposed. Hex’s report illustrates how “rotate credential” shouldn’t always be taken to mean that the provider is recommending to rotate all credentials. Similarly, the term “hash” does not justify suppression of a finding about exposure of a secret.

A good handoff should identify the type of credential in question and what representation has been provided. A good handoff should also include an assessment indicating the next step to take. If no such representation is provided, that should be indicated to the responder.

Subscribe to our blog for more news and updates!

By submitting you agree to Webz.io's Privacy Policy and further marketing communications.

Footer Background Large
Footer Background Small

Power AI with Web Data

icon

Ready to Explore Web Data at Scale?

Speak with a data expert to learn more about Webz.io’s solutions
Speak with a data expert to learn more about Webz.io’s solutions
Create your API account and get instant access to millions of web sources
Create your API account and get instant access to millions of web sources