LS-SLACK-006: Slack Legacy Token¶
| Severity | HIGH |
| Blast radius | User account and workspace compromise |
| Rotate at | https://api.slack.com/legacy/custom-integrations/legacy-tokens |
If this leaks¶
Legacy tokens carry the full permissions of the user who created them across the workspace.
What to do¶
- Rotate or revoke the credential at https://api.slack.com/legacy/custom-integrations/legacy-tokens.
- 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¶
\bxox[aor]-(?:\d+-){2,3}[A-Za-z0-9]{24,}\b
Suppress¶
On one line: # leakscan:ignore LS-SLACK-006. For the whole project:
disable_rules: [LS-SLACK-006]