Skip to content

LS-PD-001: PagerDuty API Key

Severity HIGH
Blast radius Incident response and on-call data exposure
Rotate at https://support.pagerduty.com/docs/api-access-keys

If this leaks

Allows reading and modifying incidents, schedules, and escalation policies, and could be used to silence alerts or access on-call contact information.

What to do

  1. Rotate or revoke the credential at https://support.pagerduty.com/docs/api-access-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)(?:pagerduty)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([a-zA-Z0-9_+\-]{20})(?![A-Za-z0-9])

Suppress

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

disable_rules: [LS-PD-001]