When your customer identity (CIAM) platform is compromised, the attacker can sign in as any customer, mint tokens your applications trust, read the profile and credential store for your entire customer base, and lock real people out of their accounts. The compromise may start with a phished tenant administrator, a leaked management API client secret, a stolen token signing key, a malicious change to a login flow or extension script, or a breach at the hosting provider. This playbook is vendor-neutral and covers hosted CIAM services and self-managed identity servers that hold consumer or business-customer accounts. It is for incident responders, identity engineers and the product, legal and support teams who will deal with customers during the incident. Customer account takeover without a platform compromise is covered in the Account Takeover Response Playbook; this page covers the platform itself. For prevention, see Securing the customer identity (CIAM) platform itself.
Key takeaways
- Decide early whether trust in issued tokens is lost. If a signing key, admin account or login flow was touched, every token issued since then may be forged or tampered with; rotating keys and ending sessions is the step that removes the attacker from every application at once.
- Rotation order is set by blast radius. Admin access first, then management API clients, then signing keys, then application client secrets, then customer credentials, so you do not rotate into an environment the attacker still controls.
- Customer password resets follow evidence, not panic. NIST SP 800-63B requires a forced change when there is evidence of compromise; if the credential store was read, that evidence exists for everyone in it.
- Configuration is code the attacker can change. Login flows, hooks, extension scripts, redirect URIs, connected identity providers and email templates must be compared against a known-good baseline before you trust the platform again.
- Customer communication is part of containment. Mass resets, forced logouts and MFA re-enrolment generate support load and phishing opportunities; plan the messages and channels before you pull the switch.
What the platform holds and what an attacker gains
Scope the incident by what the platform can issue and change, not only by what records were read.
| Component | What an attacker gains | First containment action |
|---|---|---|
| Tenant administrator accounts | Change any setting, create admins, disable MFA, export users, read logs | Disable suspect admins, revoke their sessions, restrict console access to named responders |
| Management API clients and secrets | Scripted user export, profile changes, password resets and configuration changes at scale | Revoke and reissue client secrets; remove unused clients |
| Token signing keys | Forge ID tokens, access tokens and SAML assertions every connected application accepts (ATT&CK T1606 Forge Web Credentials, T1606.002 SAML Tokens) | Plan an emergency key rotation and JWKS update |
| User store: profiles, password hashes, MFA secrets, recovery data | Personal data for every customer, offline password cracking (T1110.002 Password Cracking), MFA bypass where seeds are stored | Preserve evidence of what was read; plan forced resets and MFA re-enrolment |
| Login flows, hooks, actions and extension scripts | Capture passwords in transit, add hidden claims, skip MFA for chosen users (T1556 Modify Authentication Process) | Freeze changes; diff against the last known-good export |
| Connected identity providers and federation | Add an attacker-controlled social or enterprise IdP and sign in as anyone linked to it | Review and remove unexpected connections |
| Application clients and redirect URIs | Redirect authorisation codes and tokens to attacker hosts | Review redirect URIs, allowed origins and grant types |
| Email, SMS and template settings | Send convincing password reset and verification messages, or redirect them | Lock templates and sender settings; verify links point to your domains |
| Log streams and webhooks | Suppress alerts, or receive copies of sensitive events | Confirm destinations; rotate webhook secrets |
How the compromise shows up
| Signal | Where you see it | What it can mean |
|---|---|---|
| New tenant admins, role changes, MFA removed from an admin | Platform admin audit log | Persistence (T1098 Account Manipulation) |
| Bulk user export, large paged reads through the management API | Management API logs, egress volume | Theft of the customer base |
| New or changed signing keys, unexpected entries in the published JWKS | Platform key management events, JWKS monitoring | Preparation for token forgery |
| Tokens with valid signatures but no matching login event | Application logs compared with platform authentication logs | Forged tokens from a stolen key |
| Login flow, hook or script changed outside a release | Configuration audit log, deployment pipeline | Credential capture or MFA bypass (T1556) |
| Spike in password resets, MFA resets or email changes | Authentication logs, support tickets | Mass account takeover, or an attacker using admin tools |
| Customers locked out at scale | Support volume, failed logins | Account Access Removal (T1531) |
The same signals with no platform change point instead to credential stuffing against customer accounts; use the Credential Stuffing Attack Response Playbook for that case.
Triage: the first hour
- Which identities made changes? List admin accounts, management API clients and service identities active in the suspect window, and what each changed.
- Are signing keys exposed? Could the attacker read private keys (self-managed servers, exportable keys, key material in a pipeline), or only use the platform to sign?
- Was the user store read? Exports, bulk API reads, database access or backup access. Note which fields: password hashes, MFA secrets, recovery codes, phone numbers.
- Is the attacker still active? Live admin sessions, valid API tokens, scheduled jobs, active extension code.
- Is the hosting provider the source? For a hosted service, check the provider's status and security notices, open a security case and ask for its logs; your contract decides what it must share.
NIST SP 800-61 Rev. 3 frames incident response as part of CSF 2.0 risk management; record each triage answer with a timestamp, because notification decisions rely on when you became aware.
Roles and decision points
| Role | Owns | Key decision |
|---|---|---|
| Incident lead | Timeline, scope, coordination | When to rotate signing keys, accepting that every customer is logged out |
| Identity engineering | Platform configuration, keys, clients, flows | Which configuration baseline is trusted |
| Application owners | Relying applications and their sessions | How and when each application drops sessions and refetches keys |
| Forensics lead | Log export, earliest attacker activity | The clean cut-off time for configuration and tokens |
| Data protection officer and legal | Breach assessment, regulators, customer notices | Whether exposure of the user store is notifiable and to whom |
| Customer support and communications | Scripts, help pages, outbound messages | The channel customers will trust for reset instructions |
Containment by priority
- Take back the admin plane: disable suspect admin accounts, revoke their sessions and tokens, and restrict tenant administration to a small set of named responders using phishing-resistant MFA from clean devices.
- Revoke management API access: rotate every management API client secret, remove unused clients, and narrow scopes so no client can export users until the incident is closed.
- Freeze configuration: stop deployments to login flows, hooks, scripts and templates; export the current configuration as evidence; then roll back to the last reviewed version.
- Remove rogue connections: delete unexpected identity provider connections, application clients and redirect URIs, and restore approved webhook and log stream destinations.
- Protect customers in the meantime: raise risk-based authentication sensitivity, require step-up for profile, email and MFA changes, and slow or pause self-service email changes while the scope is unclear.
- Hold the keys decision: if signing keys may be exposed, move straight to emergency key rotation; if not, rotate on the planned schedule after containment.
Credential rotation
| Order | Credential | How | Watch out for |
|---|---|---|---|
| 1 | Tenant admin passwords, MFA enrolments and sessions | Reset, re-enrol with phishing-resistant MFA, end sessions | Keep one tested break-glass account |
| 2 | Management API client secrets and keys | Reissue; prefer private key JWT or certificate authentication where offered | Automation that breaks silently |
| 3 | Token signing keys | Generate a new key, publish it, switch signing, remove the old key from the JWKS | Removing the old key immediately invalidates every session at once; that is the point if it was stolen |
| 4 | Application client secrets and SAML certificates | Reissue per application, coordinated with each owner | Applications that cache keys or pin certificates |
| 5 | Refresh tokens and sessions | Revoke grants; use OpenID Connect Back-Channel Logout or each application's session store to end sessions | RFC 7009 says revoking a refresh token SHOULD invalidate access tokens from the same grant, only where the server supports access token revocation |
| 6 | Customer passwords, MFA secrets and recovery codes | Forced reset at next login, MFA re-enrolment where seeds were stored | Reset messages become a phishing lure |
| 7 | Webhook, email, SMS and log stream secrets | Reissue at each provider | Missing an outbound integration |
On signing keys, the Coupang breach shows the cost of skipping this step: a former engineer kept a token signing key that was never rotated after he left and used it to forge access tokens, exposing about 33.7 million accounts. See the JSON Web Key Sets (JWKS) and Signing Key Rotation Guide and the OpenID Connect Logout and Session Management Guide.
Customer passwords
- When to force resets: NIST SP 800-63B (Rev. 4) says verifiers shall force a change if there is evidence that the authenticator has been compromised, and prohibits periodic forced changes. If password hashes left the platform, force resets for everyone in the affected set; if they did not, target only accounts with evidence of misuse.
- How strong were the hashes? SP 800-63B requires passwords to be salted and hashed with a suitable password hashing scheme and a cost factor as high as practical. The OWASP Password Storage Cheat Sheet recommends Argon2id (minimum 19 MiB memory, 2 iterations, parallelism 1), scrypt, bcrypt for legacy systems, or PBKDF2-HMAC-SHA-256 with 600,000 iterations where FIPS-140 compliance is needed. Weak or unsalted legacy hashes raise the urgency.
- Peppers: if a pepper was stored with the hashes or was otherwise exposed, OWASP notes it must be changed, and because the old pepper cannot be applied without the plaintext, affected users must reset their passwords.
- Move towards passkeys: offering passkeys during the reset flow reduces the number of customers who depend on a password next time. See the Hashing Guide.
Eradication and rebuild
- Rebuild configuration from source: restore tenant configuration from version-controlled exports reviewed line by line, rather than trusting the live tenant. See the identity provider configuration backup and restore guide for the backup patterns that make this possible.
- Review every custom code path: hooks, actions, rules and extension scripts are where credential capture hides. Remove anything that cannot be traced to an approved change.
- Self-managed servers: rebuild hosts from trusted images, move signing keys to a hardware security module or cloud key service with non-exportable keys, and rotate database and secrets store credentials.
- Separate admin identity: tenant administrators should sign in through your workforce identity provider with phishing-resistant MFA, never as customer-type accounts in the same tenant.
- Re-scope machine access: one management API client per automation, least scope, short-lived credentials, and a named owner. See the OAuth Token Introspection and Revocation Guide.
Recovery and reconnection
- Publish the new signing keys and confirm every relying application fetches them; test login, refresh and logout per application in a staging tenant first where you have one.
- Reconnect applications in priority order with new client secrets, checking redirect URIs and grant types for each.
- Roll out forced resets and MFA re-enrolment in waves to keep support queues manageable, announcing them first through a channel customers already trust.
- Restore normal risk thresholds gradually and keep enhanced monitoring of admin actions, exports and key changes for at least 30 days.
- Rollback plan: keep the previous application configuration ready, but never reintroduce a key or secret that was in scope of the compromise.
Evidence to preserve and notification
- Preserve: admin audit logs, management API logs, authentication logs, configuration exports before and after rollback, key management events, the published JWKS history and application logs showing token use. Hosted platforms keep logs for a limited period, so export them on day one.
- Personal data: the ICO says a notifiable breach must be reported not later than 72 hours after becoming aware of it, and where the breach poses a high risk to people you must inform those concerned directly and without undue delay. Keep a record of every breach whether or not it is notified.
- Other triggers: sector regulators, payment schemes, US state laws and contracts with business customers often set their own deadlines. See the Data Breach Notification Checklist and the Customer Breach Notification Letter Template.
Decision guidance
- Emergency key rotation or planned rotation: rotate immediately, accepting a global logout, when private keys may have been read or the attacker had admin rights over keys. Use a planned overlap rotation when only signing through the platform was possible and that access is already removed.
- Everyone resets or targeted resets: everyone in scope when hashes, peppers or recovery data left the platform; targeted when evidence shows misuse of specific accounts only.
- Hosted or self-managed: on a hosted service the provider controls the infrastructure and much of the evidence; invoke contract clauses early. On self-managed servers you own host forensics and rebuild.
- Small vs large estates: a single application can accept a global logout easily; dozens of relying applications need a per-application cutover plan rehearsed before an incident.
Detection and measurement
- Alert on new admins, admin MFA changes, management API client creation, user exports, signing key changes, flow and script deployments, and new identity provider connections, sent to a SIEM the CIAM admins cannot change.
- Time from signing key rotation decision to all relying applications accepting only the new key.
- Percentage of tenant administrators using phishing-resistant MFA (target 100 percent).
- Number of management API clients with user export or broad write scopes (target: named and justified only).
- Percentage of tenant configuration held in version control and compared daily with the live tenant.
- Days since the last rehearsal of emergency key rotation.
Framework mapping
| Activity | NIST CSF 2.0 | NIST SP 800-53 Rev. 5 | ATT&CK |
|---|---|---|---|
| Admin and API client control | PR.AA-05 | AC-2 Account Management, AC-6 Least Privilege | T1078 Valid Accounts, T1098 |
| Signing keys and tokens | PR.DS-01 | SC-12 Cryptographic Key Establishment and Management, SC-23 Session Authenticity | T1606, T1606.002, T1552.004 Private Keys |
| Customer credentials | PR.AA-05 | IA-5 Authenticator Management | T1110.002, T1110.004 Credential Stuffing |
| Monitoring and logs | DE.CM-09 | AU-2 Event Logging, AU-9 Protection of Audit Information | T1556 |
| Response and notification | RS.MA-01, RS.CO-02 | IR-4 Incident Handling | T1531 |
| Recovery | RC.RP-01 | CP-10 System Recovery and Reconstitution, AC-12 Session Termination | T1531 (restoring locked-out accounts) |
Common failure patterns
- Rotating everything except the signing key: admin passwords change, but tokens forged with the old key are still accepted for hours or days.
- Applications that never refetch keys: relying services that cache or hard-code the public key keep trusting the old one, or fail when it disappears.
- Trusting the live configuration: a modified hook keeps capturing passwords because nobody compared the tenant against a known-good export.
- Reset emails that look like phishing: unexpected mass messages with links teach customers to click; attackers send look-alikes within hours.
- Logs expiring before the investigation: hosted log retention runs out because exports started late.
- Admins as customer accounts: tenant administrators who sign in with the same credentials and policies as customers, so customer-side attacks reach the admin plane.
Practitioner checklist
- Disable suspect admins, end their sessions and restrict tenant administration to named responders with phishing-resistant MFA.
- Rotate every management API client secret and remove export scopes until the incident closes.
- Export configuration and logs on day one, then freeze and roll back flows, hooks, scripts and templates.
- Remove unexpected identity provider connections, clients, redirect URIs and webhook destinations.
- Decide on emergency signing key rotation, confirm every relying application refetches keys, and end sessions with back-channel logout or application session stores.
- Force customer password resets and MFA re-enrolment where evidence of credential exposure exists, in announced waves.
- Assess the user store exposure against the 72-hour reporting rule and contractual deadlines.
- Rebuild configuration from version control and keep enhanced monitoring for 30 days.
Standards and references
- NIST: SP 800-61 Rev. 3 Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- NIST: SP 800-63B Authentication and Authenticator Management
- IETF: RFC 7009 OAuth 2.0 Token Revocation
- OpenID Foundation: OpenID Connect Back-Channel Logout 1.0
- OWASP: Password Storage Cheat Sheet
- ICO: Personal data breaches, a guide
- NIST: SP 800-53 Rev. 5
Related NHI Mgmt Group resources: Customer IAM (CIAM) Guide · Customer identity (CIAM) platform health check · Identity Incident Response Playbook · OAuth Token Theft Incident Playbook