Join our Newsletter — 33% off our NHI Course
Home› Guides› If your customer identity (CIAM) platform is compromised:…
Guide Customer Identity

If your customer identity (CIAM) platform is compromised: containment, credential rotation and rebuild playbook

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 13 November 2026 14 min read
On this page

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.

ComponentWhat an attacker gainsFirst containment action
Tenant administrator accountsChange any setting, create admins, disable MFA, export users, read logsDisable suspect admins, revoke their sessions, restrict console access to named responders
Management API clients and secretsScripted user export, profile changes, password resets and configuration changes at scaleRevoke and reissue client secrets; remove unused clients
Token signing keysForge 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 dataPersonal data for every customer, offline password cracking (T1110.002 Password Cracking), MFA bypass where seeds are storedPreserve evidence of what was read; plan forced resets and MFA re-enrolment
Login flows, hooks, actions and extension scriptsCapture 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 federationAdd an attacker-controlled social or enterprise IdP and sign in as anyone linked to itReview and remove unexpected connections
Application clients and redirect URIsRedirect authorisation codes and tokens to attacker hostsReview redirect URIs, allowed origins and grant types
Email, SMS and template settingsSend convincing password reset and verification messages, or redirect themLock templates and sender settings; verify links point to your domains
Log streams and webhooksSuppress alerts, or receive copies of sensitive eventsConfirm destinations; rotate webhook secrets

How the compromise shows up

SignalWhere you see itWhat it can mean
New tenant admins, role changes, MFA removed from an adminPlatform admin audit logPersistence (T1098 Account Manipulation)
Bulk user export, large paged reads through the management APIManagement API logs, egress volumeTheft of the customer base
New or changed signing keys, unexpected entries in the published JWKSPlatform key management events, JWKS monitoringPreparation for token forgery
Tokens with valid signatures but no matching login eventApplication logs compared with platform authentication logsForged tokens from a stolen key
Login flow, hook or script changed outside a releaseConfiguration audit log, deployment pipelineCredential capture or MFA bypass (T1556)
Spike in password resets, MFA resets or email changesAuthentication logs, support ticketsMass account takeover, or an attacker using admin tools
Customers locked out at scaleSupport volume, failed loginsAccount 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

  1. Which identities made changes? List admin accounts, management API clients and service identities active in the suspect window, and what each changed.
  2. 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?
  3. 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.
  4. Is the attacker still active? Live admin sessions, valid API tokens, scheduled jobs, active extension code.
  5. 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

RoleOwnsKey decision
Incident leadTimeline, scope, coordinationWhen to rotate signing keys, accepting that every customer is logged out
Identity engineeringPlatform configuration, keys, clients, flowsWhich configuration baseline is trusted
Application ownersRelying applications and their sessionsHow and when each application drops sessions and refetches keys
Forensics leadLog export, earliest attacker activityThe clean cut-off time for configuration and tokens
Data protection officer and legalBreach assessment, regulators, customer noticesWhether exposure of the user store is notifiable and to whom
Customer support and communicationsScripts, help pages, outbound messagesThe channel customers will trust for reset instructions

Containment by priority

  1. 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.
  2. 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.
  3. 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.
  4. Remove rogue connections: delete unexpected identity provider connections, application clients and redirect URIs, and restore approved webhook and log stream destinations.
  5. 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.
  6. 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

OrderCredentialHowWatch out for
1Tenant admin passwords, MFA enrolments and sessionsReset, re-enrol with phishing-resistant MFA, end sessionsKeep one tested break-glass account
2Management API client secrets and keysReissue; prefer private key JWT or certificate authentication where offeredAutomation that breaks silently
3Token signing keysGenerate a new key, publish it, switch signing, remove the old key from the JWKSRemoving the old key immediately invalidates every session at once; that is the point if it was stolen
4Application client secrets and SAML certificatesReissue per application, coordinated with each ownerApplications that cache keys or pin certificates
5Refresh tokens and sessionsRevoke grants; use OpenID Connect Back-Channel Logout or each application's session store to end sessionsRFC 7009 says revoking a refresh token SHOULD invalidate access tokens from the same grant, only where the server supports access token revocation
6Customer passwords, MFA secrets and recovery codesForced reset at next login, MFA re-enrolment where seeds were storedReset messages become a phishing lure
7Webhook, email, SMS and log stream secretsReissue at each providerMissing 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

  1. 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.
  2. Reconnect applications in priority order with new client secrets, checking redirect URIs and grant types for each.
  3. Roll out forced resets and MFA re-enrolment in waves to keep support queues manageable, announcing them first through a channel customers already trust.
  4. Restore normal risk thresholds gradually and keep enhanced monitoring of admin actions, exports and key changes for at least 30 days.
  5. 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

ActivityNIST CSF 2.0NIST SP 800-53 Rev. 5ATT&CK
Admin and API client controlPR.AA-05AC-2 Account Management, AC-6 Least PrivilegeT1078 Valid Accounts, T1098
Signing keys and tokensPR.DS-01SC-12 Cryptographic Key Establishment and Management, SC-23 Session AuthenticityT1606, T1606.002, T1552.004 Private Keys
Customer credentialsPR.AA-05IA-5 Authenticator ManagementT1110.002, T1110.004 Credential Stuffing
Monitoring and logsDE.CM-09AU-2 Event Logging, AU-9 Protection of Audit InformationT1556
Response and notificationRS.MA-01, RS.CO-02IR-4 Incident HandlingT1531
RecoveryRC.RP-01CP-10 System Recovery and Reconstitution, AC-12 Session TerminationT1531 (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

Related NHI Mgmt Group resources: Customer IAM (CIAM) Guide · Customer identity (CIAM) platform health check · Identity Incident Response Playbook · OAuth Token Theft Incident Playbook

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

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.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.