Skip to content

LS-AI-020: OpenRouter API Key

Severity HIGH
Blast radius API usage and billing abuse
Rotate at https://openrouter.ai/settings/keys
--verify GET https://openrouter.ai/api/v1/key

If this leaks

Allows calling the OpenRouter API billed to the key owner, and reading any files, fine-tunes or usage data the account exposes.

What to do

  1. Rotate or revoke the credential at https://openrouter.ai/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

\bsk-or-v1-[a-f0-9]{64}\b

Suppress

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

disable_rules: [LS-AI-020]