LS-TG-001: Telegram Bot Token¶
| Severity | HIGH |
| Blast radius | Bot account takeover |
| Rotate at | https://core.telegram.org/bots#botfather |
--verify |
GET https://api.telegram.org/bot |
If this leaks¶
Grants full control of the Telegram bot, including reading messages sent to it, sending messages to any chat it is in, and changing its profile.
What to do¶
- Rotate or revoke the credential at https://core.telegram.org/bots#botfather.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
\b\d{8,10}:[A-Za-z0-9_-]{35}\b
Suppress¶
On one line: # leakscan:ignore LS-TG-001. For the whole project:
disable_rules: [LS-TG-001]