TL;DR: OAuth tokens issued to third-party SaaS integrations can bypass MFA, persist for long periods, and create broad access paths into systems like Salesforce, according to Valence Security’s analysis of the Salesforce and Gainsight incident. The real control gap is not the platform itself but the governance of connected apps, token scope, and ongoing review.
At a glance
What this is: This is Valence Security’s analysis of a Salesforce and Gainsight OAuth incident, with the key finding that third-party integration tokens remain a high-risk and often under-monitored access path.
Why it matters: It matters because IAM and NHI teams need to govern connected apps and OAuth grants as first-class identities, not as informal extensions of SaaS administration.
By the numbers:
- 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools.
👉 Read Valence Security's analysis of the Salesforce and Gainsight OAuth incident
Context
OAuth tokens are a delegated trust mechanism, which means a business-approved connection can quietly become an enduring access path into SaaS data. In this incident pattern, the governance problem is not limited to the primary application, but extends to the connected app, the token lifecycle, and the visibility teams have into what those tokens can do.
For IAM and NHI practitioners, that creates a familiar but still under-controlled problem space. OAuth grants behave like non-human identities in practice: they persist, they carry scope, and they often outlive the business reason they were created. The article's starting point is typical of modern SaaS exposure, not an edge case.
Valence Security’s analysis fits a broader pattern in which attackers target integrations because they are easier to abuse than hardened SaaS cores. The operational lesson is that connected apps need the same governance discipline as service accounts, API keys, and other NHIs.
Key questions
Q: How should security teams govern OAuth tokens in SaaS environments?
A: Treat OAuth tokens as non-human identities with an owner, scope, expiry, and review cadence. Security teams should inventory all grants, remove unnecessary integrations, narrow permissions, and enforce rotation or revocation when the business need changes. Governance fails when tokens are managed only as application settings rather than as credentials with ongoing access risk.
Q: Why are OAuth tokens such a persistent SaaS security risk?
A: OAuth tokens are persistent because they often bypass MFA, carry broad delegated permissions, and remain valid long after the original approval. That combination creates durable access for attackers if a token is stolen or abused. The problem is amplified when organisations lack full visibility into connected apps and do not review grants regularly.
Q: What is the difference between a SaaS integration risk and a SaaS platform vulnerability?
A: A SaaS platform vulnerability is a flaw in the core service, while an integration risk comes from trusted third-party access that the platform legitimately allows. Integration risk is often harder to spot because it looks like normal API activity. Practitioners need both application hardening and identity governance for connected apps.
Q: When should organisations revoke or rotate OAuth tokens?
A: Rotate or revoke OAuth tokens when an integration is unused, over-privileged, recently exposed, or no longer has a clear business owner. Do not wait for a public incident to act. A good rule is to review high-risk integrations on a fixed cadence and immediately revoke grants that cannot be justified or monitored.
Technical breakdown
Why OAuth tokens become durable non-human identities
OAuth tokens are delegated credentials, so they inherit the permissions of the approved integration rather than the user who initially consented. In SaaS environments, that makes them a non-human identity problem: the token can remain active, continue to authenticate API calls, and bypass interactive controls such as MFA. The risk increases when scope is broad, rotation is infrequent, and the integration is approved once but rarely reviewed again. Because token activity often looks like normal API traffic, detection depends on behavioural baselines and integration inventory, not just login monitoring.
Practical implication: Treat OAuth grants as lifecycle-managed identities with expiry, ownership, and periodic recertification.
Shadow SaaS and connected app sprawl
Connected apps are often introduced outside central security review, especially in business units that optimise for speed over control. Each approval creates a trust edge between systems, and those edges accumulate into shadow SaaS. The core failure is visibility, because security teams may not know which integrations exist, what data they can reach, or whether the scope still matches the original use case. When an incident occurs, revoking a token is only the first step; the underlying discovery problem remains unless the environment is continuously mapped.
Practical implication: Build a current inventory of every connected app, owner, scope, and data path before the next incident exposes it.
Token rotation and revocation as an operational control
Rotation matters because long-lived OAuth tokens extend the attacker’s window of opportunity once a grant is abused. Revocation is necessary during response, but rotation discipline is what reduces residual exposure between advisories, incidents, and routine access changes. For SaaS estates, the practical challenge is that token and consent lifecycles are often managed separately from core IAM processes, so gaps appear when business owners approve access without a corresponding security checkpoint. The incident pattern shows that integration trust must be continuously revalidated, not assumed to be stable.
Practical implication: Align OAuth token revocation, rotation, and re-approval with the same control cadence used for privileged access.
Threat narrative
Attacker objective: The attacker objective is to use trusted integration access to reach business data without attacking the SaaS platform directly.
- Entry via unauthorized access to OAuth tokens associated with third-party Gainsight applications.
- Escalation through broad delegated permissions that allowed API activity against Salesforce data.
- Impact through customer data exposure and disruption of the affected app trust chain.
Breaches seen in the wild
- Salesloft OAuth token breach — hackers stole OAuth tokens to access Salesforce data via Salesloft.
- Dropbox Sign breach — compromised Dropbox Sign service account exposed API keys and OAuth tokens.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
OAuth grants are now a core NHI governance problem, not a side issue in SaaS administration. The access path in this incident is a delegated credential with scope, persistence, and ownership requirements that map directly to NHI control failures. Teams that still treat connected apps as mere configuration items are missing the identity layer embedded in the integration. The practitioner conclusion is simple: govern OAuth grants as non-human identities.
Identity blast radius is the right concept for this class of incident. Once an integration is approved, the useful question is not only whether it is authenticated, but how far it can reach if abused. That blast radius depends on scope, data entitlements, and the number of downstream systems trusting the token. Practitioners should measure and reduce blast radius before they assume revocation alone will contain the risk.
Shadow SaaS is where most of the hidden OAuth risk accumulates. Business-led integration sprawl creates access paths that are rarely visible in central IAM tooling and often absent from access review workflows. That leaves security teams responding after tokens are already in circulation. The practical takeaway is that discovery, ownership, and review are now part of the control plane.
Token lifecycle governance is the missing operational discipline in SaaS trust management. Rotation, revocation, and re-approval need to be coordinated, or the environment drifts into long-lived delegated access that attackers can exploit. This is especially true for integrations that handle customer data or support administrative functions. Practitioners should fold OAuth tokens into the same governance model used for other high-risk NHIs.
From our research:
- 85% of organisations lack full visibility into third-party vendors connected via OAuth apps, according to The State of Non-Human Identity Security.
- Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them.
- For a broader control baseline, see NHI Lifecycle Management Guide for lifecycle, revocation, and review practices.
What this signals
Shadow integration risk will keep outpacing traditional app governance until OAuth grants are managed as identities. The programme-level response is to unify discovery, ownership, and lifecycle review across service accounts, API keys, and delegated SaaS access. Without that consolidation, every new integration expands the identity surface faster than manual controls can absorb it.
Ephemeral trust debt is the debt created when an integration is approved once and then left to persist without reassessment. Security teams should expect this debt to accumulate in SaaS estates unless they pair approval workflows with recurring review and revocation. The most practical next step is to connect SaaS integration inventory to Top 10 NHI Issues and operationalise ownership checks.
The implication for practitioners is straightforward. If the environment cannot explain who approved each OAuth grant, what it can access, and when it was last reviewed, it is already carrying hidden exposure. That gap is especially relevant to teams aligning with NIST Cybersecurity Framework 2.0 because governance and continuous monitoring both depend on visible trust paths.
For practitioners
- Inventory every OAuth-connected app Create a current register of all connected apps, token owners, scopes, and business justifications across Salesforce and adjacent SaaS platforms.
- Reduce token blast radius Remove unused integrations, narrow scopes to the minimum required permissions, and revalidate approvals for any app that can read or export sensitive data.
- Operationalise token rotation and revocation Use a scheduled process for rotating OAuth tokens and revoking stale grants, then confirm the change with post-revocation API monitoring.
- Monitor for abnormal API behaviour Baseline normal API activity, then alert on unusual export volume, new endpoints, and access outside expected business hours.
- Extend NHI governance to SaaS integrations Map OAuth grants into the same governance workflow used for service accounts and API keys, including ownership review and periodic recertification.
Key takeaways
- OAuth tokens can function as durable non-human identities, which means SaaS integration governance belongs inside IAM and NHI programmes.
- The primary control gap is visibility into connected apps, not just response after a token is revoked.
- Teams should reduce scope, review approvals, and align token lifecycle controls with privileged access discipline.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | OAuth tokens here behave like long-lived NHI credentials requiring rotation and revocation. |
| NIST CSF 2.0 | PR.AC-4 | Connected-app permissions map directly to access control and least-privilege governance. |
| NIST Zero Trust (SP 800-207) | AC-4 | The incident shows why continuous verification is needed for delegated SaaS access. |
Treat SaaS integrations as continuously verified trust paths, not one-time approvals.
Key terms
- OAuth Token: An OAuth token is a delegated credential that lets an approved application act on a user or service's behalf. In SaaS environments, it can persist beyond the original approval and carry enough scope to read, write, or export data if not reviewed and rotated.
- Connected App: A connected app is a third-party integration that is granted access to a SaaS platform through APIs and OAuth permissions. From a governance perspective, it is an identity-bearing access path that needs ownership, scoping, and periodic review like any other non-human identity.
- Shadow SaaS: Shadow SaaS is the set of unmanaged or undiscovered SaaS applications and integrations operating outside central security oversight. It creates hidden access paths, weakens auditability, and makes it difficult to know which external systems can reach sensitive business data.
- Identity Blast Radius: Identity blast radius is the amount of access and data exposure that can be reached if a credential or integration is abused. In SaaS and NHI governance, the goal is to reduce that radius by narrowing scope, limiting entitlements, and reviewing trust relationships continuously.
Deepen your knowledge
OAuth token governance and SaaS integration control are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your team is dealing with delegated access paths in Salesforce or other SaaS platforms, it is worth exploring.
This post draws on content published by Valence Security covering the Salesforce and Gainsight OAuth incident: Salesforce and Gainsight OAuth Incident: What Security Teams Need to Know. Read the original.
Published by the NHIMG editorial team on 2026-01-06.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org