Skip to content

LS-TWITCH-001: Twitch Client Secret

Severity HIGH
Blast radius OAuth application compromise
Rotate at https://dev.twitch.tv/console/apps

If this leaks

Allows the application to obtain new OAuth tokens on behalf of users who have authorized it, and to manage the application's registration.

What to do

  1. Rotate or revoke the credential at https://dev.twitch.tv/console/apps.
  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)twitch(?:.{0,20})?client.?secret\s*[=:]\s*['\"]?([a-z0-9]{30})['\"]?

Suppress

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

disable_rules: [LS-TWITCH-001]