piighost/slack-token

Slack credentials in both families: the xox bot, user, app, legacy and refresh tokens, and the newer app-level xapp token with its counter, application id, timestamp and hex layout. The xox prefix belongs to no one else, so noise is negligible. Incoming webhook URLs are a different shape and are not covered here, the existing url pattern catches them only weakly. No whole-span collision, but the long digit runs inside a token trigger credit-card, uk-nhs and us-phone on sub-spans, so slack-token must be resolved before those.

Label: SLACK_TOKEN

Pattern

\b(?:xox[abeoprs]-[A-Za-z0-9-]{10,256}|xapp-\d-[A-Za-z0-9]{5,20}-\d{8,20}-[a-f0-9]{32,80})(?![A-Za-z0-9-])

Must be caught

Must be left alone

Tags: international, secrets, software-dev

Download the detector as TOML