Token theft · November 20, 2025

Old Gainsight OAuth tokens were reused to call Salesforce APIs; Salesforce revoked the connection

In November 2025 Salesforce detected unusual activity through Gainsight-published apps connected to customers' Salesforce orgs and, on 20 November, revoked those apps' OAuth tokens. Gainsight's CTO says the attacker held 285 Salesforce OAuth tokens issued between 2017 and August 2023, checked which still worked on 22 October 2025 and used them against customer orgs from 16 to 19 November. Customers that connected Gainsight should review Salesforce logs for the published indicators and rotate credentials stored in the affected objects.

DisclosedNovember 20, 2025
Earliest known activityOctober 22, 2025
AffectedGainsight, Salesforce, Gainsight connected app for Salesforce
TypeToken theft
StatusResolved

What was exposed

Salesforce OAuth tokens that customers had granted to the Gainsight integration, some issued as early as 2017, which stayed valid because they were never revoked or rotated. With them the attacker could call Salesforce APIs as the integration and read whatever data the connected app could reach. Salesforce says the activity may have allowed unauthorized access to some customers' Salesforce data; Gainsight says only a handful of customers had data affected. How the tokens were originally obtained is not established: Gainsight says they either leaked from its systems in the past or were harvested from external environments. Any credential stored in a reachable Salesforce object should be considered exposed.

Am I affected?

You are potentially affected if your Salesforce org had a Gainsight-published connected app installed before 20 November 2025, especially if its authorization dated from 2023 or earlier. Gainsight's CEO says Salesforce notified the handful of customers whose data was affected. Check Salesforce Event Monitoring and API logs from October through November 2025 for the IP address 3.239.45.43 (23 October), 104.3.11.1 (8 November), VPN and proxy addresses (Mullvad, Surfshark, Proton, Tor and others) on 16 to 19 November, and the user agents listed below. Salesforce says token revocation did not delete audit trail, Event Monitoring or API activity records, so the logs are still there to review.

What to do now

  1. Review Salesforce Event Monitoring, audit trail and API logs for the published IP addresses and user agents, and for any unexpected activity by the Gainsight integration user.
  2. If you find activity, identify which objects were queried and rotate every credential, API key or password stored in those records.
  3. Re-authorize Gainsight only if you still need it, and revoke old OAuth grants for any third-party app you no longer use.
  4. Set refresh-token expiry and IP restrictions on connected apps so a stolen token stops working.

Keys to rotate

Guides to the credentials this incident put at risk:

Timeline

  1. Gainsight says the attacker bulk-validated about 250 of the tokens to see which were still active. Source
  2. Salesforce's indicator window begins; it lists an AWS address seen on this date using a compromised Gainsight access token. Source
  3. Gainsight says Salesforce detected the activity after tokens were used to call Salesforce APIs against customer orgs from 16 November. Source
  4. Salesforce disconnects Gainsight-published apps, revokes their OAuth tokens and publishes a security advisory; it says there is no indication of a vulnerability in the Salesforce platform. Source
  5. Salesforce re-enables Gainsight integrations after remediation that Mandiant and CrowdStrike validated. Source
  6. Gainsight's CTO publishes an account: the newest token dated from August 2023, about 23% still existed in Gainsight's systems, and Mandiant found no evidence within the available year of logs that they came from Gainsight's systems. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • IP addresses 3.239.45.43 and 104.3.11.1, plus VPN and proxy exit addresses from Salesforce's list.
  • User agents python-requests/2.28.1, python-requests/2.32.3, python/3.11 aiohttp/3.13.1 and Salesforce-Multi-Org-Fetcher/1.0, the last also seen in the Salesloft Drift activity.

Frequently asked questions

Am I affected by the Gainsight incident?

You are potentially affected if your Salesforce org had a Gainsight-published connected app installed before 20 November 2025, especially if its authorization dated from 2023 or earlier. Gainsight's CEO says Salesforce notified the handful of customers whose data was affected. Check Salesforce Event Monitoring and API logs from October through November 2025 for the IP address 3.239.45.43 (23 October), 104.3.11.1 (8 November), VPN and proxy addresses (Mullvad, Surfshark, Proton, Tor and others) on 16 to 19 November, and the user agents listed below. Salesforce says token revocation did not delete audit trail, Event Monitoring or API activity records, so the logs are still there to review.

What was exposed in the Gainsight incident?

Salesforce OAuth tokens that customers had granted to the Gainsight integration, some issued as early as 2017, which stayed valid because they were never revoked or rotated. With them the attacker could call Salesforce APIs as the integration and read whatever data the connected app could reach. Salesforce says the activity may have allowed unauthorized access to some customers' Salesforce data; Gainsight says only a handful of customers had data affected. How the tokens were originally obtained is not established: Gainsight says they either leaked from its systems in the past or were harvested from external environments. Any credential stored in a reachable Salesforce object should be considered exposed.

Which keys should I rotate?

Rotate any Salesforce credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.