How a relying party should respond to a compromised federated IdP
If a federated identity provider (IdP) is compromised, an attacker may issue forged login assertions that let them reach multiple relying parties (RPs) as legitimate users. A valid signature alone is no reason to keep accepting sign-ins as usual: the attacker may control the IdP or its signing key. An RP should assess the risk independently, pause federation when warranted, and restrict existing sessions, refresh tokens, and sensitive permissions while trusted parties verify the scope, keys, and affected accounts.
How a relying party should respond to a compromised federated IdP
If a federated identity provider (IdP) is compromised, an attacker may issue forged login assertions that let them reach multiple relying parties (RPs) as legitimate users. A valid signature alone is no reason to keep accepting sign-ins as usual: the attacker may control the IdP or its signing key. An RP should assess the risk independently, pause federation when warranted, and restrict existing sessions, refresh tokens, and sensitive permissions while trusted parties verify the scope, keys, and affected accounts.
Why signature validation is not enough
In normal federation, the RP validates an IdP assertion and creates an RP session. If an attacker controls the IdP or its signing key, a forged assertion can still have a cryptographically valid signature. NIST SP 800-63C-4 identifies a compromised IdP as a threat that can affect multiple trusting RPs, and calls for independent RP monitoring and threat assessment.
Incident response sequence
**Confirm scope through a trusted channel.** Contact the IdP operator or federation authority using a separately established security channel. Confirm relevant times, tenants, accounts, endpoints, exposed authenticators and signing keys, planned key rotation, and affected tokens or sessions. Do not rely only on signals from the potentially compromised IdP to prove the compromise.
**Contain new sign-ins.** Temporarily suspend federation from the affected issuer, or require independent authentication and restrict sensitive functions where policy allows. If affected accounts can be identified, contain those accounts; assess the impact of a broader shutdown through the established incident approval process.
**Revoke existing access at the RP.** IdP and RP sessions are separate, so IdP logout does not automatically end an RP session. Terminate affected RP sessions and revoke refresh tokens and long-lived credentials through supported mechanisms. Offline-validated access tokens or assertions may remain usable: RFC 7009 requires refresh-token revocation support but only recommends access-token revocation support. Combine controls supported by the token type, such as expiry, deny lists, introspection, or rejecting a compromised key.
**Restore key trust carefully and investigate.** Verify replacement keys and issuer status through a known contact, agreed out-of-band procedure, or trusted federation authority; do not restore trust through automatic metadata refresh alone. Correlate issuer, subject, authentication time and level, assertion and session IDs, permission changes, and sensitive API calls. Share only the minimum incident data with other RPs, under the trust agreement and privacy controls.
**Resume in stages and review.** After the IdP compromise is contained, keys are revoked and safely replaced, and affected accounts are reauthenticated or their authenticators re-enrolled, resume lower-risk groups first. Keep stronger controls on administration, payments, and personal-data exports until additional RP-side checks are complete. Review delays and records for sign-in suspension, session revocation, key updates, and account recovery, then improve contacts, agreements, token lifetimes, caches, notifications, and exercises.
Controls to prepare in advance
Document issuer identifiers, assertion audiences, allowed account scope, authentication levels, key-update procedures, emergency contacts, and privacy terms for sharing affected-account signals.
Monitor independently for simultaneous abnormal sign-ins or privilege changes across RPs that trust the same IdP.
Know how to revoke RP sessions and refresh tokens, how resource servers reject access tokens, and how token caches and expiry affect the exposure window.
Separate routine key rollover from emergency compromise response; identify an independent way to verify replacement-key provenance.
Decide which high-risk RP actions require an RP-controlled authenticator or separate approval, and protect and test emergency access accounts.
NIST SP 800-63C-4 describes FAL3 as a stronger protection against a compromised IdP: the RP checks a subscriber-held authenticator in addition to the assertion. FAL3 is not an automatic minimum for every service. Choose additional RP authentication according to risk and applicable standards or agreements.
For example, if an employee SSO signing key may have leaked, an RP could pause new sign-ins from that issuer, restrict administrator and payment privileges, verify replacement-key provenance and affected accounts through a separate security contact, and terminate RP web sessions and refresh tokens. A self-contained JWT access token may remain valid until expiry, so check whether resource servers consult a deny list or introspection endpoint. This is a general illustration, not a report of a handled incident.
References
[NIST SP 800-63C-4: Federation and Assertions](https://pages.nist.gov/800-63-4/sp800-63c.html) — IdP/RP responsibilities, compromised-IdP threats, independent RP monitoring, and FAL3.
[RFC 7009: OAuth 2.0 Token Revocation](https://www.rfc-editor.org/rfc/rfc7009.html) — token-revocation endpoint and limits on immediate access-token invalidation.