Skip to content

LS-TWITTER-001: Twitter Bearer Token

Severity HIGH
Blast radius API usage abuse
Rotate at https://developer.twitter.com/en/portal/dashboard

If this leaks

Allows making API calls against the X (Twitter) API on behalf of the app, which can be used for spam, scraping, or rate-limit exhaustion.

What to do

  1. Rotate or revoke the credential at https://developer.twitter.com/en/portal/dashboard.
  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

AAAAAAAAAAAAAAAAAAAAA[A-Za-z0-9%]{40,}

Suppress

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

disable_rules: [LS-TWITTER-001]