Skip to content

LS-AI-015: Weights & Biases API Key

Severity HIGH
Blast radius ML experiment and model data exposure
Rotate at https://wandb.ai/authorize

If this leaks

Allows reading and writing experiment runs, artifacts and model files in every W&B project the user can reach.

What to do

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

(?i)(?:wandb|weights_?and_?biases)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([a-f0-9]{40})(?![A-Za-z0-9])

Suppress

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

disable_rules: [LS-AI-015]