Skip to content

LS-DISCORD-001: Discord Bot Token

Severity HIGH
Blast radius Bot account takeover
Rotate at https://discord.com/developers/applications

If this leaks

Grants full control of the Discord bot account, including reading messages in every server it has joined and sending messages with its permissions.

What to do

  1. Rotate or revoke the credential at https://discord.com/developers/applications.
  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

[MN][A-Za-z0-9]{23}\.[A-Za-z0-9_-]{6}\.[A-Za-z0-9_-]{27}

Suppress

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

disable_rules: [LS-DISCORD-001]