Skip to content
← RegistryDossier · 6 steps · 5 edges

Slack token in CI log → DM history → vendor mailbox compromise

A CI run echoed a Slack xoxb-/xoxp- token. Use it to read DMs, harvest password-reset links and vendor invitations, pivot into the corporate mailbox.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target uses Slack and runs CI in a way that occasionally leaks env vars to logs. The Slack token has channels:history + im:history + chat:write scopes.

§ Steps

  1. 01
    Use harvested links to enter mailboxInitial Access
    T1078Valid Accounts
  2. 02
    List channels, DMs, usersDiscovery
    T1087Account Discovery
  3. 03
    Search public CI logs for xox tokensReconnaissance
    W-RECON-GITHUB-DORKGitHub / GitLab Dorking
  4. 04
    M365 exfil via EWSCollection
    M365-EWS-EXFILExchange Web Services (EWS) Exfil
  5. 05
    Read DMs for reset links / OTPsCollection
    T1056Input Capture
  6. 06
    Authenticate to Slack APICredential Access
    SAAS-SLACK-TOKENSlack Token / Webhook Theft

§ References

§ Frequently asked

What is the "Slack token in CI log → DM history → vendor mailbox compromise" attack path?
A CI run echoed a Slack xoxb-/xoxp- token. Use it to read DMs, harvest password-reset links and vendor invitations, pivot into the corporate mailbox. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Use harvested links to enter mailbox (T1078) — a initial access primitive. Assumed environment: target uses Slack and runs CI in a way that occasionally leaks env vars to logs.
What is the final impact of this kill-chain?
The final step lands on Authenticate to Slack API (SAAS-SLACK-TOKEN), which falls under Credential Access. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers