Skip to main content

Slack Bot Token

Description#

General#

  • Documentation: https://api.slack.com
  • Summary: Slack is a business communication platform. It supports the use of bots to automate some activities on channels. Bots can connect to the real time messaging API and post messages on their own behalf thanks to a bot token. They can also access a subset of API methods to better understand the channels, members, and messages received as part of its activities. Bot tokens are thus highly sensitive.
  • IPs allowlist: Slack's integrations support IPs allowlisting and will lock down token's usage to a given set of IP addresses if enforced. See allowlisting documentation for more details.
  • Scopes: Specific scopes can be attributed to a slack bot when creating the bot.

Revoke the secret#

Tokens can be revoked using the auth.revoke api route. It is one of the few credentials that has this "auto revoke" feature. See revocation documentation for more details.

Check for suspicious activity#

Monitoring suspicious activity of a given token is not directly mentioned in Slack's documentation. Yet, the activity of the slack bot can be manually monitored on the channel it is granted access to.

Details for Slackbototken#

  • Category: Messaging system

  • Company: Slack

  • High recall: True

  • Validity check available: False

  • Minimum number of matches: 1

  • Occurrences found for one million commits: 13.52

  • Prefixed: True

  • PreValidators:

- type: FilenameBanlistPreValidator  banlist_extensions:  - ^(cs|x|p|s|r)?html5?~?$  - ^[aps]?cssc?~?$  - ^lock$  - ^mdx?~?$  - ^storyboard(c|er)?~?$  - ^xib$  banlist_filenames: []  check_binaries: false- type: ContentWhitelistPreValidator  patterns:  - xoxb-

Examples#

- text: "slack_client = SlackClient('xoxb-263594206564-FGqddMF8t08v8N7Oq4i57vs1')"  apikey: xoxb-263594206564-FGqddMF8t08v8N7Oq4i57vs1- text: MY_SLACK_TOKEN = 'xoxb-263594206564-2343594206574-FGqddMF8t08v8N7Oq4i57vs1MBS')"  apikey: xoxb-263594206564-2343594206574-FGqddMF8t08v8N7Oq4i57vs1MBS