Skip to content

LS-AI-001: Anthropic API Key

Severity HIGH
Blast radius API usage and billing abuse
Rotate at https://console.anthropic.com/settings/keys
--verify GET https://api.anthropic.com/v1/models

If this leaks

Allows making Claude API calls billed to the account owner, potentially racking up large usage charges or exhausting rate limits.

What to do

  1. Rotate or revoke the credential at https://console.anthropic.com/settings/keys.
  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

sk-ant-[0-9a-zA-Z\-_]{40,}

Suppress

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

disable_rules: [LS-AI-001]