Skip to content

LS-DD-001: Datadog API Key

Severity HIGH
Blast radius Observability data exposure and quota abuse
Rotate at https://app.datadoghq.com/organization-settings/api-keys
--verify GET https://api.datadoghq.com/api/v1/validate

If this leaks

Allows submitting metrics, logs, and traces to the account, and can be used to exhaust ingestion quotas or pollute dashboards.

What to do

  1. Rotate or revoke the credential at https://app.datadoghq.com/organization-settings/api-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

(?i)(?:dd|datadog)(?:_|-)?api(?:_|-)?key\s*[=:]\s*['\"]?([a-f0-9]{32})['\"]?

Suppress

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

disable_rules: [LS-DD-001]