These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
Salesloft Drift GitHub → AWS pivot
March – June 2025 · Contained
Stolen GitHub tokens gave the attacker months inside Salesloft's GitHub account, and from there Drift's AWS environment and the OAuth tokens it held for its customers' Salesforce instances.
- Way in
- Leaked token
- Access held
- T1Administration: WriteT1Workflows: WriteT1Outside collaboratorT3Contents: ReadSalesloft source codeEnvironment variable secretsDrift AWS, its OAuth tokens
Full summary
The attacker had Salesloft's GitHub personal access tokens from at least 22 March 2025. Mandiant says they used them for reconnaissance and to enumerate secrets, downloaded content from several repositories, added a guest user and set up workflows, and took secrets stored as environment variables. Between March and June they also looked around the Salesloft and Drift application environments. They then got into Drift's AWS environment, where the OAuth tokens Drift held for its customers' integrations were kept. From 8 to 18 August 2025 they used those tokens to export data from hundreds of customers' Salesforce instances and searched it for AWS keys, passwords and Snowflake tokens, and on 9 August they read mail in a few Google Workspace accounts through the Drift Email integration. Neither Salesloft nor Mandiant has said how the PATs were obtained or exactly how the attacker got from GitHub to AWS.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
Mandiant's timeline starts on 22 March 2025, with API calls through Tor and anonymising proxies and Salesloft GitHub personal access tokens used for reconnaissance and to enumerate secrets. Salesloft has not said whose tokens they were or how they were taken.
What breaks this step
- Set an organization-wide maximum PAT lifetime (90 days is a reasonable default)
- Disable classic PATs organization-wide, forcing migration to fine-grained PATs
- Secret scanning and push protection enabled
- Set `persist-credentials: false` on actions/checkout wherever later steps do not push
- Require organization owner approval for fine-grained PATs.
- Never upload the checkout workspace as an artifact.
Between March and June 2025 the attacker downloaded content from multiple repositories in the Salesloft GitHub account. Mandiant lists code repositories among what was exfiltrated, and in the cleanup Salesloft added secret scanning and rotated secrets found in code.
What breaks this step
- Set an organization-wide maximum PAT lifetime (90 days is a reasonable default)
- Disable classic PATs organization-wide, forcing migration to fine-grained PATs
- Audit and revoke stale PATs, unused SSH keys, and inactive accounts
- Enforce an IP allow list for Git and web UI access from trusted ranges
- Service-account automation migrated from PATs to GitHub Apps
In the same period the attacker added a guest user to the GitHub account, access that would outlast the stolen tokens. Among Mandiant's remediation items is removing personal access tokens and external collaborators as ways in.
What breaks this step
- Restrict public repo creation, visibility changes, repo deletion, private forks and outside collaborator invites to owners
- Run a quarterly access review of owners, repo admins, team membership and outside collaborators
- Review every currently installed GitHub App / OAuth App and its granted scope
- Keep OAuth app access restrictions on and require security/IT approval for new apps
- Enable audit logging and export it to a SIEM for retention and detection
The attacker also established workflows. Mandiant separately lists environment variable secrets as exfiltrated. Neither source says the workflows were what read those secrets; Permiso suggests the workflows or credentials from the repositories led to AWS.
What breaks this step
- CODEOWNERS in place, required on sensitive paths
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Inventory every Actions secret and its visibility/scope; the results are usually surprising
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Put production secrets in environments with required reviewers
The attacker then reached Drift's AWS environment and took the OAuth tokens Drift held for its customers' integrations with Salesforce, Google Workspace and other services. Salesloft has not said which credential opened AWS. Mandiant's cleanup included locking down Drift's AWS accounts and reviewing IAM roles and policies.
From 8 to 18 August 2025 UNC6395 used the tokens to query Cases, Accounts, Users and Opportunities in customers' Salesforce instances and searched the results for AWS access keys, passwords and Snowflake tokens. They deleted the query jobs, but the logs remained. On 9 August Drift Email tokens were used to read mail in a very small number of Google Workspace accounts.
On 20 August Salesloft and Salesforce revoked every Drift access and refresh token and Drift was removed from the AppExchange. Google published its report on 26 August. Drift went offline on 5 September and came back on 16 September. Mandiant's work ended on 30 September; its timeline runs to 5 September and it found no evidence beyond limited reconnaissance in the Salesloft application itself.
Frameworks
Contained. First seen March 2025, last seen June 2025. Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- postmortemUpdate on Mandiant Drift and Salesloft application investigations (6 September 2025)
- postmortemSummary of the Mandiant investigation of Drift applications
- researchWidespread data theft targets Salesforce instances via Salesloft Drift (Google Threat Intelligence)
- researchAnatomy of the Salesloft breach
- trackerCompromised Salesloft Drift tokens enable data theft across integrations (Wiz)
Reported by: Mandiant (UNC6395)