AIDEFEND in Action AIA-0180 Incident

Salesloft Drift: Stolen OAuth Tokens From an AI Chat Agent Integration Used to Mass-Export Salesforce Data

Businesses use Salesloft's Drift AI chat assistant to talk with website visitors and save conversations in Salesforce. Drift held credentials called OAuth tokens to access those accounts. In August 2025, attackers used stolen tokens to export customer records and look for other credentials. A separate Drift Email integration let them access a small number of Google Workspace mailboxes.

Credential TheftData ExfiltrationIdentity & AccessSaaS SecurityAI Supply Chain
5 applicable AIDEFEND defenses
Source: Widespread Data Theft Targets Salesforce Instances via Salesloft Drift 
Authors: Austin Larsen, Matt Lin, Tyler McLellan, Omar ElAhdan (Google Threat Intelligence Group)
Original article: Aug 26, 2025

Threat Analysis

  • What Drift was connected to. Drift was Salesloft's AI chat agent, a chatbot that companies place on their websites to talk with visitors. To link it to Salesforce, a Drift administrator authorized Drift's connected app, Salesforce's registration for a third-party application that calls its API. Drift then held OAuth access tokens and refresh tokens (refresh tokens obtain new access tokens without anyone signing in again) and called Salesforce as the user who had connected it. A separate Drift Email integration held similar grants to Google Workspace mailboxes.
  • How the tokens left the vendor. Salesloft, citing Mandiant, says the actor accessed its GitHub account between March and June 2025, downloaded repository content, added a guest user and set up workflows, then accessed Drift's AWS environment and took the OAuth tokens Drift held for customer integrations. Mandiant's summary adds the use of GitHub personal access tokens and the exfiltration of environment-variable secrets. How the GitHub access began is not disclosed. FINRA's alert to its member firms says investigators believe the tokens came from phishing or social engineering; this analysis follows the operator's account of Mandiant's findings.
  • What the actor did with them. From 8 to at least 18 August 2025, the actor that Google Threat Intelligence Group (GTIG) tracks as UNC6395 used the valid tokens against customers' Salesforce instances, which treated the calls as Drift's own. GTIG describes count queries on accounts, opportunities, users and cases, then systematic export of large volumes of data; GTIG's Austin Larsen told reporters a Python tool automated the theft for each organization. At Cloudflare, several days of queries, including an early broad query on case records, led on 17 August to a Bulk API 2.0 job that took its support case text in just over three minutes. The actor then deleted the job, though GTIG notes the logs remained.
  • The real target was credentials. GTIG assesses that harvesting credentials was the primary aim: the actor searched the exported data for AWS access keys (beginning AKIA), passwords and Snowflake tokens, which end up in support cases when customers paste them into tickets. Cloudflare found and rotated 104 Cloudflare API tokens in its case data. On 9 August, Drift Email tokens were also used to read a very small number of Google Workspace mailboxes configured for Drift.
  • Why this is an AI security case. The chatbot's model was not attacked, and no source reports manipulated conversations. The actor abused standing authority delegated to an AI agent: one vendor held long-lived tokens for many customers' CRMs and mailboxes, each carrying its connection user's access. Because the actor called Salesforce directly, controls inside the agent, such as prompt filtering or tool limits, never saw the traffic. In each tenant, the damage was bounded by the grant the customer had approved and the monitoring it kept on that grant.
  • Scale and response. GTIG told reporters it knew of over 700 potentially impacted organizations; Salesforce said a small number of customer instances may have been accessed, and GTIG says no core Salesforce vulnerability was involved. On 20 August Salesloft and Salesforce revoked all Drift access and refresh tokens. Salesloft first asked administrators to reconnect; GTIG later advised treating every token stored in or connected to Drift as compromised, Salesforce disabled Drift's Salesforce, Slack and Pardot integrations, and on 5 September Salesloft took Drift offline and rotated its client keys. Mandiant's intrusion timeline runs from 22 March to 5 September 2025.

Applicable AIDEFEND Defenses (5)

AID-H-004.006
Hosted Agent Publication & Exposure Controls
High
The stolen tokens acted as the Drift connection user, so each customer's exposure was whatever that user could read. Before connecting a hosted AI agent, check which Salesforce user its connector runs as and compare that user's access with the agent's needs: a chat agent for anonymous website visitors has no reason to read support cases. Use a dedicated connection user limited to those objects, with the connected app open only to admin-approved users. A stolen token then reaches only that narrower set, though it can still be used and the data the agent needs stays exposed.
AID-D-011.004
Non-Human Identity & Delegated Token Abuse Detection
High
The tokens were valid, so the abuse showed only in how they were used. Correlate the Drift connection user's token activity with Salesforce Event Monitoring records of logins, API calls and queries, and flag what the integration never does: addresses outside those Salesloft published for Drift, Tor exit nodes, user agents such as Salesforce-Multi-Org-Fetcher/1.0, counts across Account, User and Case, or a Bulk API job. Drift Email token use in Google Workspace can be checked the same way. This detects; revocation must follow. Keep copies of the integration's Salesforce API and query events outside the tenant, where the integration cannot delete them. Test whether the archive still records a query after its job is deleted. This preserves evidence of the export for investigators.
AID-E-001.002
Issued Token, Authentication Session & Lease Revocation
High
Revoking the issued tokens ended the actor's access: on 20 August Salesloft and Salesforce revoked all Drift access and refresh tokens, and Google revoked the Drift Email tokens. A customer need not wait for the vendor: revoke the app's OAuth tokens in Salesforce, remove its Google Workspace access, and confirm none remain. This does not recover exported data, and while the vendor is still compromised, reconnecting simply hands it fresh tokens.
AID-E-001.004
Delegated Grant & Connected-App Authorization Revocation
High
Revoking tokens takes back what the actor holds; removing the grant keeps the vendor path shut. Salesforce disabled Drift's Salesforce, Slack and Pardot integrations, and Google disabled the Workspace integration. A customer can block or uninstall the connected app so that no token can be issued or refreshed through it. That mattered here: Salesloft first asked administrators to reconnect Drift, yet Mandiant's intrusion timeline ran to 5 September. Keep the grant blocked until the vendor confirms containment.
AID-E-001.001
Root & Long-Lived Credential Object Eviction
High
The actor wanted the credentials inside the records. Once an export is known, every AWS key, Snowflake token, password or API token found in the affected objects must be revoked or rotated at its issuer, consumers moved to the new value, and the old value shown to be refused; Cloudflare rotated 104 API tokens found in its case data. This limits what the harvested secrets can open, but only for those found, and not for any already used.

What Defenders Should Do Now

  • List every AI agent that holds a grant into your CRM, mail and collaboration tenants. In Salesforce, read the Connected Apps OAuth Usage page; in Google Workspace, review third-party app access. For each grant, record the vendor, the user it acts as and the objects that user can read. A grant with no owner, or with a connection user nobody recognizes, is the first thing to fix.
  • Give each AI agent integration its own least-privilege connection user. Create a dedicated Salesforce user with only the objects and fields the agent needs, open the connected app only to admin-approved users, and reconnect the integration as that user. In a sandbox, query an object the integration does not need, such as Case, with that user's API session; the request must be refused.
  • Alert on how the connection user's token is used, not only on logins. With Salesforce Event Monitoring data kept in a SIEM outside the tenant, alert when the connection user authenticates from an address outside the vendor's published list, presents an unfamiliar user agent, starts a Bulk API job or queries objects the integration never touches. Test the rule with a harmless query from an unapproved address and confirm it fires.
  • When a vendor reports token theft, cut the grant and keep it cut. Revoke the app's tokens, block or uninstall the connected app, disable its connection user, and confirm on the OAuth usage page that no token remains. Reconnect only after the vendor confirms containment, and only as the restricted connection user: Salesloft first asked administrators to reconnect Drift, while the intrusion timeline Mandiant later published runs to 5 September.
  • Find and rotate credentials that sit in CRM records. Search cases, comments and email-to-case records for AKIA, snowflakecomputing.com, password and token strings, or run a scanner such as TruffleHog. Revoke or rotate each credential at the system that issued it and confirm the old value is refused there; deleting the text from the case does not disable the credential.
  • Plant a canary key where stolen CRM data would be mined. Put a canary AWS key in a synthetic support case, taken from a zero-permission IAM user watched by CloudTrail or from a paid or self-hosted canary service (TruffleHog, the scanner this actor used, recognizes keys from the free canarytokens.org service without using them), and confirm with a controlled test that using it raises an alert. A hit tells you that case data has left your tenant, possibly before any vendor notice arrives.

2 additional considerations

Bind the integration's token use to the vendor's source addresses

Salesforce can refuse a connected app's requests from outside approved addresses when the app is set to enforce IP restrictions and the connection user's profile lists login IP ranges. During this incident Salesloft said legitimate Drift traffic comes from known Drift addresses, while the stolen tokens were used from Tor exit nodes and other hosts.
Recommendation: Salesforce administrators can set the integration's connected app to enforce IP restrictions and limit the connection user's login IP ranges to the vendor's published egress addresses, then confirm from another address that a request is refused. This depends on the vendor publishing and maintaining a stable address list, needs coordination whenever it changes, and does not stop an attacker who sends requests from inside the vendor's own environment.

Keep credentials out of support records

The actor searched exported support cases for keys and passwords, which were there because customers had pasted them into tickets. Fewer secrets stored in the CRM means less to harvest from any integration that can read it.
Recommendation: Support operations and security teams can scan new and existing case records for credential patterns, redact matches and ask the submitter to revoke and replace the credential, and warn customers in the case form not to paste secrets. Pattern scanning misses credentials with no recognizable format and does not recall copies that have already been exported.

Conclusion

The stolen tokens let the attackers use the customer permissions already granted to Drift. AIDEFEND  points to narrowing those permissions and watching for unusual exports. If an integration is breached, revoke both the existing tokens and the grant that can issue new ones. Replace any credentials exposed in the exported records.

Last updated: