Skip to content
Leaked secrets Write-up Beginner

Creating And Hacking Slack Bots A Deep Dive With Slack Jack

A Slack bot token, if leaked, can be used with a tool to access the Slack workspace and perform actions allowed by the bot's scopes. The author demonstrates this by creating a bot, obtaining its token, and using the tool to list channels.

Indranil Roy Follow

Published on systemweakness.com

Slack Jack is a tool for ethical hacking and security testing. It lets you hijack a Slack bot using its token (e.g., xoxb or xoxp) and perform various activities based on the bot’s permissions.

Indranil Roy, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the bot token was exposed or stolen, allowing an attacker to impersonate the bot and use its granted permissions.

Impact

An attacker with a valid bot token could access the Slack workspace and perform actions permitted by the bot's scopes, such as reading channels and sending messages.

What the attacker needed

A Slack bot token; the Slack Jack tool

The fix

Bot tokens should be stored securely and never exposed; if leaked, they should be revoked immediately.

How it was found

  1. Create a Slack app and configure bot token scopes.
  2. Install the app to the workspace and copy the bot token.
  3. Clone the Slack Jack repository and build the tool.
  4. Run the tool and provide the bot token.
  5. Use the tool's options to list channels and explore the workspace.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A Slack bot token is like a password that lets a program act as a bot in a Slack workspace. If someone gets that token, they can use it to read messages or send messages, depending on what the bot is allowed to do. This article shows how to set up a test bot and then use a tool to see what an attacker could do with its token.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by Indranil Roy

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.