Join our Newsletter — 33% off our NHI Course

What breaks when SSO tokens are not properly signed or encrypted?

If SSO tokens are not signed and protected, the relying application cannot trust that the identity assertion came from the real provider or that it stayed unchanged. That creates room for token forgery, tampering, replay, and unauthorized access. In practice, token integrity is what turns federation into trustworthy authentication rather than simple data passing.

Why This Matters for Security Teams

When SSO tokens are unsigned or only weakly protected, federation stops being a trust boundary and becomes a trust assumption. The relying app can no longer verify provenance, detect tampering, or distinguish a genuine assertion from a forged one. That creates immediate exposure to replay, impersonation, privilege escalation, and cross-application compromise, especially when tokens are reused across SaaS and internal integrations.

This is not an abstract failure mode. The same token exposure patterns that drive incidents like the Salesloft OAuth token breach and the Guide to the Secret Sprawl Challenge show how quickly identity material is copied, forwarded, and reused once it leaves controlled channels. NIST SP 800-53 Rev. 5 treats cryptographic protection and integrity as core security expectations, not optional hardening: NIST SP 800-53 Rev 5 Security and Privacy Controls.

In practice, many security teams discover token trust failures only after an attacker has already replayed a valid-looking assertion into a downstream app.

How It Works in Practice

Signed tokens prove integrity and origin. Encrypted tokens protect confidentiality so the assertion cannot be read or altered in transit or at rest by parties that should not see it. In common SSO flows, the identity provider signs the token, and the application verifies the signature against trusted keys or certificates before honoring the login. If encryption is used, the token payload is also kept unreadable to intermediaries, logs, browsers, or support tooling that might otherwise expose claims.

The practical control set is broader than a single checkbox. Teams should validate the signature algorithm, verify issuer and audience claims, enforce expiry, and reject tokens that fail clock-skew or key-rotation checks. They should also limit token lifetime, avoid token reuse across unrelated systems, and ensure keys are managed with rotation and revocation discipline. The Dropbox Sign breach and the JetBrains GitHub plugin token exposure are reminders that identity material often fails through operational leakage, not just cryptographic weakness.

  • Signature verification prevents forged assertions from being accepted as authentic.
  • Encryption limits exposure in logs, support systems, browsers, and interception points.
  • Short token TTLs reduce the value of replay if a token is stolen.
  • Key rotation and revocation reduce exposure when signing material is compromised.

Best practice is to validate every token at the relying party, because a trusted provider does not guarantee a trusted delivery path. These controls tend to break down in legacy SSO integrations that skip audience validation, cache bearer tokens too broadly, or terminate authentication through intermediaries that cannot preserve cryptographic guarantees.

Common Variations and Edge Cases

Tighter token protection often increases implementation and operational overhead, requiring organisations to balance interoperability against stronger assurance. Some older applications can verify signatures but cannot handle encrypted assertions, while others accept encryption but still log claims in ways that defeat confidentiality. Current guidance suggests treating these limitations as migration risks, not permanent exceptions.

There is no universal standard for every federation stack, but the same principle holds: the relying service must be able to prove the token is authentic, intended for it, and still valid. That is especially important in high-risk workflows such as admin SSO, API-to-API access, and mixed SaaS plus internal estates where one compromised token can open multiple systems. The Internet Archive breach illustrates how identity and access failures often cascade once an attacker obtains a reusable credential artifact.

Where organisations have service meshes, reverse proxies, or token translation layers, they must confirm that each hop preserves integrity rather than reissuing weaker assertions. Environments with long-lived sessions, shared kiosks, or heavily automated workflows are particularly sensitive because stolen tokens remain usable long after the original login event.

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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 Token integrity and authenticity are core NHI trust requirements.
OWASP Agentic AI Top 10 A-03 Signed assertions are essential where agents or automations consume federated identity.
CSA MAESTRO IAM-2 MAESTRO emphasizes trustworthy identity assertions for autonomous and federated access.
NIST AI RMF AI systems depend on trustworthy authentication and access provenance.
NIST CSF 2.0 PR.AA-03 Authentication assurance depends on protected, verifiable identity tokens.

Bind each automated login to cryptographically verified identity and short-lived session scope.