Skip to content

LS-TWILIO-002: Twilio Auth Token

Severity HIGH
Blast radius Communications abuse and billing fraud
Rotate at https://console.twilio.com/us1/account/keys-credentials/api-keys
--verify none (needs the account SID pair)

If this leaks

Combined with the account SID, allows sending SMS and making calls billed to the account, and reading call/message logs and recordings.

What to do

  1. Rotate or revoke the credential at https://console.twilio.com/us1/account/keys-credentials/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)twilio(?:.{0,20})?['\"][0-9a-f]{32}['\"]

Suppress

On one line: # leakscan:ignore LS-TWILIO-002. For the whole project:

disable_rules: [LS-TWILIO-002]