TL;DR: UNC6040 and UNC6395 are abusing OAuth phishing, overprivileged integrations, and harvested secrets to move from SaaS compromise into data theft and lateral access across connected environments, according to Bishop Fox. The pattern shows that SaaS governance now depends on least privilege, IP restrictions, and visibility into where tokens and credentials actually live.
At a glance
What this is: This analysis shows how SaaS integration abuse is turning weak OAuth and secret governance into cross-application compromise and lateral movement.
Why it matters: It matters because IAM, PAM, and NHI teams have to govern not just human logins but integration accounts, tokens, and third-party access paths that often sit outside normal review cycles.
By the numbers:
👉 Read Bishop Fox's analysis of SaaS integration abuse and secret harvesting
Context
SaaS integration abuse is a governance problem as much as it is a detection problem. When a customer grants broad OAuth scopes, shared integration profiles, or poorly bounded service access, the resulting trust chain can reach far beyond the original application and into other SaaS platforms or infrastructure accounts. In this case, the primary issue is not the SaaS product itself but the customer-owned identity and secret surface around it.
The article also sits squarely in NHI governance because the attack path depends on tokens, API keys, credentials, and integration accounts that behave like machine identities. If teams cannot locate those secrets, scope their privileges, and monitor their use, they cannot contain compromise even when the initial phishing or platform breach is detected. That is now a typical failure mode, not an edge case.
Key questions
Q: What breaks when SaaS integrations are granted broad OAuth scopes and shared profiles?
A: Broad OAuth scopes and shared integration profiles turn a single compromise into multi-application access. They remove the boundary between one app and the rest of the environment, so attackers can reuse delegated trust, query data they should not see, and pivot into other systems without needing fresh authentication.
Q: Why do distributed SaaS environments create NHI risk?
A: Because SaaS automation relies on machine-like access paths such as OAuth grants, API keys, and service accounts. Those identities often receive broad scopes and outlive the original use case, especially when local admins control them. If they are not governed as NHIs, teams lose visibility into who or what can act inside the application.
Q: What do security teams get wrong about least privilege in SaaS and cloud environments?
A: Teams often treat least privilege as a role design exercise when the real problem is entitlement drift across multiple identities. A user may look compliant in one platform and over-permissioned in another. Effective least privilege requires cross-platform recertification, not isolated clean-up.
Q: Who is accountable when a SaaS integration exposes customer data?
A: Accountability sits with the organisation that owns the delegated access path, even if the token originated from a third-party service. Security, application, and SaaS owners all need a defined revocation process and an incident playbook. If the integration can reach customer data, it must be governed like any other privileged identity.
Technical breakdown
OAuth phishing and SaaS integration abuse
OAuth phishing works by tricking a user or admin into authorising a malicious app or granting excessive scopes to a legitimate one. In SaaS environments, the attacker often does not need the primary password for long. The token or delegated grant becomes the durable access mechanism, and that grant can outlive the session that created it. Once an integration is trusted, downstream APIs may treat its requests as legitimate unless the tenant has scope-aware monitoring and app governance in place.
Practical implication: review delegated app scopes and remove any integration that can access data beyond its stated business purpose.
Secret harvesting from connected SaaS platforms
The article describes a pattern in which attackers do not stop at SaaS data theft. They search for embedded secrets, tokens, and credentials that can be reused in other systems, including Google Workspace and cloud infrastructure. That turns a SaaS compromise into a broader identity supply-chain problem. A secret stored in an app is effectively an NHI credential, and if it is not inventoried, rotated, and bound to a narrow trust boundary, it becomes reusable attack material.
Practical implication: treat SaaS-stored secrets as NHIs and bring them into the same rotation and ownership model as other machine credentials.
Why least privilege fails in integration-heavy environments
Least privilege in SaaS often fails because integration accounts are created for convenience, then expanded over time until no one can explain why they need broad object access or cross-app visibility. The article’s example of querying dozens of Salesforce objects that were never required shows how privilege creep magnifies the blast radius of a compromise. In these environments, the control failure is not just excess access, but also the absence of a precise entitlement baseline for each integration and service account.
Practical implication: define explicit entitlement baselines for each integration account and remove any object or API access that is not essential.
Threat narrative
Attacker objective: The attacker wants durable access to customer data and reusable credentials that let them expand from one SaaS foothold into multiple applications and infrastructure environments.
- Entry occurs through OAuth phishing or compromise of a SaaS integration platform, giving the attacker a trusted path into customer environments.
- Escalation follows when the attacker harvests secrets, tokens, and credentials from the compromised SaaS context and reuses them across other applications or cloud infrastructure.
- Impact comes from bulk data exfiltration, lateral movement into connected systems, and ransom leverage built on stolen records and reusable access material.
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
Integration accounts are now high-value NHIs, not low-risk plumbing. The article shows that SaaS integrations can become the attacker’s durable access layer once OAuth grants, API keys, or service tokens are captured. That means these accounts need the same lifecycle ownership, scope review, and revocation discipline applied to any other privileged machine identity. Treating them as background configuration leaves the real trust boundary ungoverned.
Secret harvesting from SaaS is a machine-identity problem before it is a data-exfiltration problem. When attackers search one compromised application for tokens that unlock others, the underlying failure is secret sprawl without clear ownership. This is exactly the sort of hidden credential dependency that OWASP-NHI is designed to surface, and the attack path also maps cleanly to NIST SP 800-53 Rev 5 Security and Privacy Controls for access and audit governance. Practitioners should assume every SaaS app may contain a secondary identity surface.
Least privilege breaks down fastest where integration scope is undocumented. The article’s example of broad Salesforce object access shows how permissive defaults and shared profiles create an avoidable blast radius. Privilege drift in SaaS integrations: access grows quietly until no one can defend why an integration can see, query, or export that much data. Teams need explicit entitlement baselines, not inherited assumptions, if they want governance that survives real attacker pressure.
Customer-owned monitoring is now part of the control plane. The article makes clear that SaaS vendors cannot fully absorb the customer-side responsibility for app configuration, detection, and containment. That shifts accountability back to identity, cloud, and security operations teams that must watch delegated grants, impossible travel patterns, cloud-hosted attacker traffic, and unexpected token reuse. In practice, this is a NIST-CSF and CIS-CONTROLS problem, not just a SaaS admin task.
Integration-centric attacks validate the need for NHI programmes that extend beyond internal workloads. The compromise path crosses human identity, delegated access, and machine credentials in one chain, which is why NHI governance cannot stop at service accounts inside a single cloud estate. The same secret and privilege patterns now span SaaS, identity providers, and downstream infrastructure. Practitioners should align identity, application, and cloud controls around that shared attack surface.
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 1.5 out of 10 organisations are highly confident in their ability to secure NHIs, compared to nearly 1 in 4 for securing human identities.
- For deeper context on this exposure pattern, see 52 NHI Breaches Analysis for real-world compromise paths and control gaps.
What this signals
SaaS integration abuse is pushing identity teams to treat delegated app trust as a first-class control surface. The practical shift is toward continuous discovery of OAuth grants, API keys, and service accounts, plus tighter binding between entitlement review and incident response. Where teams already track machine identities, they should extend that governance to SaaS-connected credentials and monitor them with the same urgency as production workloads.
Integration trust gap: the problem is not just stolen credentials, but the absence of a reliable map of where those credentials can operate. That gap makes containment slow and allows an initial compromise to become cross-platform movement before responders can isolate the blast radius.
Teams should expect more incidents where the first compromise is not the final objective. The real test will be whether identity, cloud, and app security functions can rapidly revoke delegated access, identify reused secrets, and trace which downstream systems were touched before the attacker broadens the foothold.
For practitioners
- Inventory SaaS integration accounts and delegated grants Build a live register of every OAuth app, service account, API key, and cross-app grant in scope. Capture owner, purpose, expiry, and the exact permissions granted so you can distinguish necessary access from inherited excess.
- Reduce integration privilege to explicit business scope Remove broad object access, shared profiles, and unused API permissions from SaaS integrations. If an integration can query data it does not need for its stated function, treat that as privilege creep and remediate immediately.
- Monitor for secret reuse across SaaS and cloud Search for tokens and credentials that appear in multiple applications, logs, or automation paths. Any secret found in a SaaS platform should be rotated, bounded to a single owner, and removed from unmanaged storage locations.
- Enforce IP and session restrictions on high-risk integrations Restrict integrations to fixed IP ranges where possible and add session controls for administrative and user access that can create or approve OAuth grants. This limits the attacker’s ability to hide inside commercial cloud infrastructure.
- Tune detections for low-and-slow SaaS abuse Create detections for targeted object queries, unusual token use, and credential harvesting rather than relying only on mass export alerts. The attacker profile described in the article is interactive and selective, so noisy thresholds will miss the first meaningful signal.
Key takeaways
- SaaS integration abuse is now an identity governance problem because OAuth grants, API keys, and service accounts can become attacker pivot points across multiple platforms.
- The visibility gap is severe, with 85% of organisations lacking full visibility into third-party vendors connected via OAuth apps.
- Teams need live inventory, least-privilege scope reduction, and targeted detections for token reuse if they want to contain this attack pattern.
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 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | The article centers on missing rotation and weak control of SaaS-connected secrets. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0008 , Lateral Movement | The attack path uses harvested tokens to move across applications and infrastructure. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege entitlement management is central to limiting SaaS integration blast radius. |
| NIST SP 800-53 Rev 5 | IA-5 | Authenticator management applies directly to API keys, tokens, and delegated grants. |
| CIS Controls v8 | CIS-5 , Account Management | Account and integration inventory is essential when customer-owned SaaS controls are the weak point. |
Inventory SaaS-held secrets and enforce rotation, ownership, and revocation for every integration credential.
Key terms
- OAuth Grant: An OAuth grant is the delegated permission an application receives to act on a user's behalf without storing the user's password. In NHI governance, it should be treated as a standing identity relationship with scope, ownership, and revocation requirements, not as a one-time setup detail.
- Integration Account: An integration account is a non-human identity used by one system to authenticate to another system and move data or trigger actions. These accounts need tight scoping and visibility because they often sit between identity, payroll, and finance platforms with broad operational reach.
- Secrets Sprawl: The uncontrolled proliferation of sensitive credentials — API keys, tokens, passwords, certificates — across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
- Privilege Drift: Privilege drift is the gradual gap between the permissions an identity was meant to have and the permissions it actually retains. In AI agent environments, drift grows quickly because roles are reused, tasks change, and lifecycle reviews often lag behind deployment velocity.
What's in the full article
Bishop Fox's full article covers the operational detail this post intentionally leaves for the source:
- Step-by-step guidance for identifying risky SaaS integrations and the permissions they inherited over time
- Specific detection ideas for spotting interactive attacker activity, token reuse, and SaaS-originated cloud access
- Practical examples of IP restriction, access scoping, and monitoring controls for customer-owned SaaS configurations
- The live fireside chat format with Brian Soby and Christie Terrill for direct practitioner questions
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners build the control discipline needed for SaaS integrations, service accounts, and other machine credentials.
Published by the NHIMG editorial team on August 11, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org