Skip to content

LS-VAULT-002: Vault Batch Token

Severity HIGH
Blast radius Secrets manager compromise (cascading)
Rotate at https://developer.hashicorp.com/vault/docs/concepts/tokens#batch-tokens

If this leaks

Allows reading every secret the token's policies grant until it expires.

What to do

  1. Rotate or revoke the credential at https://developer.hashicorp.com/vault/docs/concepts/tokens#batch-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

\bhvb\.[A-Za-z0-9_-]{130,}

Suppress

On one line: # leakscan:ignore LS-VAULT-002. For the whole project:

disable_rules: [LS-VAULT-002]