Skip to content

LS-AI-023: HuggingFace Org Token

Severity HIGH
Blast radius Private model/dataset access
Rotate at https://huggingface.co/settings/tokens

If this leaks

Grants access to the organization's private models, datasets and Spaces.

What to do

  1. Rotate or revoke the credential at https://huggingface.co/settings/tokens.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

\bapi_org_[A-Za-z0-9]{34}\b

Suppress

On one line: # leakscan:ignore LS-AI-023. For the whole project:

disable_rules: [LS-AI-023]