The platform stops being a neutral integration layer and becomes a delegated access repository with live production reach into customer systems. Without inventory, ownership, and revocation controls, the platform can expose many customer environments from a single compromise, and security teams lose the ability to contain access by customer, tool, or credential type.
How unmanaged OAuth tokens and API keys change the security model
When a platform stores customer OAuth tokens and API keys without governance, the security model shifts from delegated integration to stored delegated power. Those secrets are not just data at rest, they are active access paths. That means the platform can act on behalf of customers, often across production systems, and the blast radius depends on who owns the credential, what it can reach, and whether it can be revoked quickly.
Two properties matter most: reach and recoverability. Reach determines which systems, tenants, and actions a token or key can touch; recoverability determines how quickly the platform can prove what it holds, revoke it, and replace it without breaking service. When neither is governed, the platform may still function, but it does so by accumulating opaque access that is hard to audit and harder to contain.
For OAuth specifically, the issue is delegated authorization, not just authentication. A stored token can represent consent, scope, audience, and downstream action rights. The more the platform reuses those tokens across workflows, the more it needs clear ownership and expiry discipline. The same is true for API keys, which are usually bearer credentials, so possession alone is enough to gain access unless tighter controls are added.
Why inventory, ownership, and revocation are the real control boundaries
Inventory tells you what access exists, ownership tells you who is responsible for it, and revocation tells you how to stop it. Without all three, security teams cannot answer basic containment questions such as which customer is affected, which integration created the secret, or whether the credential still needs to exist. The absence of one control tends to expose the weakness of the others.
A useful way to think about this is that the platform becomes a delegated access repository rather than a neutral tool. That repository needs the same discipline you would expect for privileged access: scope, lifecycle, and traceability. If a token is still valid after a customer disconnects the integration, or if no one can confidently say who owns a key, the platform has already lost control of its access inventory.
That is why good governance also includes secret classification. Customer-owned tokens, platform-issued tokens, internal API keys, and environment credentials should not all be treated as the same thing. If they are mixed together, teams usually overestimate how safely they can rotate or delete them, and they underestimate how many downstream systems depend on them.
What breaks first when the governance layer is missing
The first break is usually containment. One compromised platform account, admin session, or backend integration can expose many customer systems at once because the stored credentials inherit the platform’s network reach and administrative convenience. The second break is visibility, because teams can no longer tell whether an access failure is a genuine outage, a revoked credential, or an unmanaged duplicate.
The third break is operational trust. Customers expect a platform to broker access under explicit limits, not to accumulate live credentials indefinitely. Once access is ungoverned, the platform may still deliver functionality, but every incident response becomes slower: responders need to discover where the secret lives, what it can do, and whether it has been copied elsewhere.
In practice, this is where many integration platforms drift into being high-value credential stores. That is a materially different risk profile from ordinary application data storage because the failure mode is not simple disclosure, it is active misuse of production authority across tenants and tools.
Risk and Threat Considerations
Ungoverned customer tokens and API keys create a concentrated compromise path. An attacker does not need to defeat each customer separately if a single platform repository holds many live credentials with broad scope and weak revocation discipline. The result is a high-blast-radius target that combines access persistence, lateral reach, and delayed detection.
Failure mechanism: stolen, copied, or overly persistent secrets remain valid long enough for an attacker or insider to reuse them against customer systems, while the platform lacks the inventory needed to revoke or bound the exposure quickly.
Impact: customer-to-platform trust collapses, compromise can spread across multiple tenants or workflows, and incident response becomes a secret-discovery exercise instead of a clean containment exercise.
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 OWASP API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Stored customer tokens and API keys create secret leakage risk. |
| NHI-01 — Improper Offboarding | Revocation and customer disconnect handling are central to removing stale access. | |
| NHI-05 — Overprivileged NHI | Ungoverned tokens and keys often retain excessive production reach. | |
| Recommendation — Inventory and rotate exposed customer secrets, then revoke any credential that cannot be bounded. Revoke customer-held access immediately on disconnect and verify every dependent system loses use. Reduce scopes to the minimum action set and remove broad reusable access paths. | ||
| NIST SP 800-53 Rev 5 | AC-2 — Account Management | Ownership and lifecycle control for stored credentials depend on account and access management. |
| IA-5 — Authenticator Management | API keys and tokens are authenticators whose issuance, storage, and revocation must be governed. | |
| AC-6 — Least Privilege | Customer tokens should not retain broad production reach beyond their needed function. | |
| Recommendation — Assign an owner for every credential and remove unused access promptly. Manage credential issuance, storage, rotation, and revocation as a controlled lifecycle. Constrain each credential to the minimum permissions and resources required. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Mismanaged OAuth tokens and API keys undermine reliable API authentication. |
| API5 — Broken Function Level Authorization | A stored credential that reaches too far can invoke functions the customer did not intend. | |
| Recommendation — Protect token handling so authentication state cannot be reused or bypassed. Enforce function-level authorization checks on every privileged operation. | ||
Practitioner Guidance
What to prioritise: establish a live inventory of every stored customer token and key, including owner, tenant, scope, expiry, and revocation path. If any credential cannot be tied to a customer, system, or business purpose, treat it as an exception to be removed or quarantined.
What to verify: confirm that revocation actually works end to end, not just in the user interface. A control only matters if you can revoke the credential, confirm the downstream effect, and prove the platform no longer depends on it for core operations.
Common mistake: treating all stored secrets as equivalent because they all “enable integrations.” In reality, the governance model should vary by customer ownership, production reach, and whether the secret can be exchanged for broader delegated access.
Practitioner takeaway: if a platform can hold customer credentials, it must also be able to explain, limit, and withdraw every one of them; otherwise the platform becomes an access concentration point, not an integration layer.
Related resources from NHI Mgmt Group
- What breaks when infrastructure still relies on long lived passwords, API keys, and OAuth tokens?
- What is the difference between role-based access and API key governance for NHI security?
- How should security teams govern API keys used for generative AI access?
- What problem does ownership attribution solve for service accounts and API keys?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 6, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org