Join our Newsletter — 33% off our NHI Course
Home› Guides› If your NHI management platform is compromised: containment,…
Guide Non-Human Identity (NHI)

If your NHI management 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 14 November 2026 13 min read
On this page

An NHI management platform holds a connector into every cloud account, SaaS tenant, vault and code repository it governs, plus a complete map of your machine identities and their weaknesses, so an attacker inside it starts with both the keys and the target list. If remediation is enabled, the platform can also rotate, disable or delete credentials across the estate, which an attacker can use to cause an outage or to cover tracks. This playbook covers a compromise of the platform itself: its console and administrators, its connector identities, the findings and secret material it stores, its remediation engine and any self-hosted collectors. It sets out how the incident shows up, triage questions, containment in priority order, rotation order, when to rebuild, the evidence to keep and when notification rules apply. It is vendor-neutral and written for identity security teams and incident responders. Hardening before an incident is covered in Securing the NHI management platform itself; this page is about response.

Key takeaways

  • Treat it as a multi-environment incident from the first hour. Every system the platform connects to is in scope until its connector logs show otherwise.
  • Stop remediation before anything else. An attacker who can trigger automated rotation or disablement can take down production or destroy evidence with an approved-looking audit trail.
  • Connector credentials outrank human passwords. Resetting administrator passwords does nothing to cloud role trusts, OAuth clients and API keys the platform holds, and those keep working.
  • Findings are a list of live secrets. If the attacker read the inventory or secret scanning results, every unrotated credential the platform had flagged is now in their hands.
  • Rotate everything that was reachable, including the "unused". Rotation programmes fail on the credentials someone believed were idle, so verify each old credential fails rather than assuming it.

How the incident shows up

The first sign often appears in a connected system rather than in the platform: an unusual call from a connector identity in a cloud audit log, a secret read from a vault by a discovery role, or a provider notifying customers. Initial access tends to be a stolen administrator session or credential (MITRE ATT&CK T1078 Valid Accounts), a stolen connector or API token (T1528 Steal Application Access Token), compromise of the vendor or a managed service partner (T1199 Trusted Relationship), or an exploited self-hosted component (T1190 Exploit Public-Facing Application).

SignalWhere it appearsWhat it suggests
Connector identity calls an API outside its normal read pattern, or from an address outside the platform's documented egressCloud, SaaS and IdP audit logsConnector credential used outside the platform (T1550.001 Application Access Token)
Discovery role reads secret values from a vault, or assumes roles it never used beforeVault and cloud audit logsPlatform or its credentials used for collection (T1555 Credentials from Password Stores)
New connector added, or an existing connector's scope widenedPlatform audit log, target IAM change logsPersistence or expansion through the platform (T1098.001 Additional Cloud Credentials, T1098.003 Additional Cloud Roles)
Bulk export of inventory, findings or reports; API reads by an unfamiliar keyPlatform audit and API logsCollection of the NHI map and findings (T1213 Data from Information Repositories)
Remediation actions nobody requested: keys rotated, accounts disabled, grants revokedPlatform remediation history, target change logsDisruption or lock-out (T1531 Account Access Removal)
Findings suppressed, policies relaxed, alert routes or log forwarding changedPlatform configuration historyHiding activity (T1685 Disable or Modify Tools)
New platform administrators, SSO settings changed, local accounts enabledPlatform audit log, IdP logsPersistence in the console (T1136 Create Account)

Two live incidents show the shape of this risk. In the CircleCI Breach 2023, a stolen, MFA-backed SSO session gave an attacker access to a platform holding many customers' tokens and keys; encryption at rest did not help because keys were taken from a running process, and customers were told to treat every stored secret as accessed. In the Cloudflare Thanksgiving Breach 2023, one service token and three service accounts exposed in an earlier incident were not rotated because they were believed to be unused, and an attacker used them weeks later.

Triage questions

  • Which identity was used? A console administrator, an API key used by SOAR or ticketing, a connector identity, a self-hosted collector, or the vendor's own operations staff. Each points to a different containment path.
  • What did the connectors allow? List every connector with its target, credential type and permission. Separate read-only discovery from anything with write, rotate or delete rights.
  • Was remediation enabled, and what ran? Pull the full remediation history for the exposure window and compare it with approved requests.
  • Did the platform hold secret values? Establish whether secret scanning stored matched values or only fingerprints, whether validity checks ran, and whether vault connectors could read values.
  • What did the attacker read? Inventory, owner lists, permission graphs, findings with locations of live secrets, exports and reports.
  • Is the response visible to the attacker? The joint advisory on Scattered Spider (CISA AA23-320A) reports actors searching messaging and email for signs of the response and joining remediation calls. If the platform pushes findings into chat or ticketing, assume those channels are watched.
  • Is the vendor involved? For a SaaS platform, open the vendor's security incident route at once and agree which logs each side holds and for how long.

Containment priorities

  1. Move coordination out of band: run the response from a channel and case record not integrated with the platform. See the Out-of-Band Communications Plan Template.
  2. Freeze remediation: turn off automatic remediation and revoke the platform's remediation identities at the targets (not only in the console), so a compromised console cannot act. Accept that findings will queue.
  3. Preserve logs: export the platform's audit, API, remediation and connector logs, and pull connector activity from each target's own logs, before changing configuration. SaaS log retention can be short.
  4. Suspend console access: disable suspect administrators at the IdP, revoke their sessions, remove local accounts that bypass SSO, and revoke inbound API keys used by other tools.
  5. Cut write-capable connectors at the target: remove role trusts, disable service principals and revoke OAuth clients for any connector that can change identities, starting with cloud organisation roots, the IdP and vaults. Disabling the connector inside the platform is not enough if the credential still works.
  6. Cut read-only discovery connectors: then disable discovery connectors. They are lower impact but still expose the permission graph and logs.
  7. Isolate self-hosted collectors: stop on-premises or in-cluster scanners and collectors and snapshot them for forensics before rotation.

Credential rotation order

Rotate from the most powerful downstream credential to the least, and confirm each old credential fails. RFC 7009 requires servers to support refresh token revocation but makes cascading to access tokens from the same grant a SHOULD that applies only where access token revocation is supported, so test each target rather than assume. RFC 9700 recommends audience-restricted, least-privilege, sender-constrained tokens; apply it when you reissue.

OrderCredentialAction and check
1Remediation identities with rotate, disable or delete rightsRevoke at the target; reissue only after rebuild, with approval gates and action caps
2Connectors into the IdP, cloud organisation roots and vaultsRemove trusts and secrets; for role assumption, change the external identifier; confirm old sessions and tokens fail
3Live secrets listed in findings the attacker could readRotate at source, highest privilege first, then close the finding; track each to closure
4Remaining discovery connectors (SaaS, code, CI/CD, collaboration)Revoke app installs and tokens; reissue read-only with narrower scope
5Platform administrators and break-glass accountsReset, re-enrol phishing-resistant MFA, remove standing admin rights
6Inbound API keys from SOAR, ticketing and reporting toolsRotate, one key per integration, with expiry
7Credentials held by self-hosted collectorsRotate and re-register on rebuilt hosts

Administrators sit fifth because their sessions are already revoked in containment; the connector credentials are what keep working. Track every item in a register with owner, target, action, verification and date. See the Secrets Rotation Runbook Template, Credential Rotation at Scale and the OAuth Token Introspection and Revocation Guide.

Eradication and rebuild

  • Configuration review: compare connectors, roles, policies, suppression rules, alert routes, log forwarding, webhooks and remediation playbooks against the last known good export. Look for added connectors, widened scopes, suppressed finding classes and redirected notifications.
  • Target-side persistence: in each connected environment, hunt for what the attacker may have created using the connector: new access keys, new role trusts, new OAuth applications, added admin roles and new service accounts. This is where persistence outlives the platform clean-up.
  • Collector hosts: rebuild self-hosted collectors from known good images rather than cleaning them.
  • Vendor-side cause: where the root cause was at the vendor, get a written account of what was accessed, how it was fixed and what changed, before reconnecting.

Rebuild or clean in place

SituationChoiceWhy
Stolen admin session, no evidence of configuration change, connectors rotatedClean in placeConfiguration is trustworthy once compared with a known good export
Connectors added or widened, policies or suppressions changed, unknown remediation playbooksRebuild tenant configuration from documented baselineHidden changes are hard to rule out one by one
Self-hosted collector or on-premises component compromisedRebuild hosts, re-register collectorsHost integrity cannot be proven
Vendor platform compromise affecting many customersReconnect only after vendor confirmation, with new credentials and narrower scopeRoot cause is outside your control; reduce standing access

Smaller organisations with a handful of connectors can often rebuild the connector set in a day and should prefer rebuild. Large estates with hundreds of connectors may need a staged rebuild: IdP, cloud roots and vaults first, then by business unit.

Recovery

  1. Reconnect read-only first: restore discovery with new, least-privilege connector identities, one per environment, and confirm in each target's logs that only the new identity is calling.
  2. Re-baseline the inventory: compare the new inventory with the pre-incident export to find identities created during the incident. See NHI Inventory Reconciliation.
  3. Restore remediation last: re-enable in report-only mode, then with approval gates and caps, and only after a period with no suspicious activity.
  4. Restore integrations: reconnect SOAR, ticketing and chat with new keys.
  5. Roll back if needed: if a reconnection shows unexpected activity, disconnect that connector again; the staged order means one rollback does not undo the rest.

Detection and measurement

During and after the incident, watch for use of any revoked credential (a failed call with an old key is evidence the attacker still holds it), connector calls from outside the platform's egress, and new identities created in any connected environment. Track:

  • Time from detection to remediation freeze (target: within the first hour).
  • Percentage of in-scope connector credentials revoked and verified failing.
  • Percentage of secrets listed in exposed findings rotated at source.
  • Number of attacker-created identities found in connected environments, and time to remove each.
  • Calls made with revoked credentials after rotation (should fall to zero).

Evidence to preserve

EvidenceSourceWhy it matters
Platform audit, login and API logsPlatform console or vendorWho did what in the console, and with which key
Remediation history and approvalsPlatformSeparates attacker actions from legitimate changes
Connector activity in each targetCloud, IdP, SaaS, vault and repository audit logsShows what the attacker reached beyond the platform
Configuration exports before and afterPlatformProves what changed
Inventory and findings exportsPlatformDefines which secrets and identities were exposed
Collector host images and memorySelf-hosted componentsHost-level forensics
Vendor incident statementsVendorRoot cause and scope outside your control

Notification triggers

  • Personal data: the platform usually holds owner names and email addresses, and connectors may have reached personal data in targets. Under UK GDPR, the ICO says notifiable breaches must be reported without undue delay and within 72 hours of becoming aware, unless unlikely to result in a risk to individuals, and all breaches must be recorded (Article 33(5)). Processors must tell the controller without undue delay (Article 33(2)).
  • Customers and partners: if connectors reached systems holding customer data or customer-facing credentials, contracts may require notice; check them early.
  • Sector and listing rules: regulated sectors and listed companies may have shorter or additional deadlines; involve legal counsel on day one.

Common failure patterns

  • Disabling connectors in the console only: the credential still works at the target, so the attacker keeps using it from elsewhere.
  • Skipping "unused" credentials: the Cloudflare incident above turned on credentials believed to be idle.
  • Leaving remediation running: automated actions continue during investigation and either disrupt production or overwrite evidence.
  • Ignoring the findings: responders rotate the platform's own credentials but not the live secrets the platform had already found and listed.
  • Reconnecting with the old scopes: the rebuild restores the same broad roles that made the incident severe.
  • Running the response in an integrated chat channel: the platform's alerts flow there, and so may the attacker's visibility.

Framework mapping

Playbook phaseNIST CSF 2.0NIST SP 800-53 Rev. 5OWASP NHI Top 10 2025
Detection and triageDE.CM-03, RS.AN-03SI-4, AU-6, IR-5NHI3:2025 Vulnerable Third-Party NHI
ContainmentRS.MI-01IR-4, AC-2NHI5:2025 Overprivileged NHI
Rotation and eradicationRS.MI-02IA-5, SC-12NHI7:2025 Long-Lived Secrets, NHI2:2025 Secret Leakage
Recovery and rebuildRC.RP-01, RC.RP-03CM-8, AC-6NHI9:2025 NHI Reuse
NotificationRS.CO-02IR-6NHI3:2025 Vulnerable Third-Party NHI (where the vendor is the source)
Supplier oversightGV.SC-07SA-9NHI3:2025 Vulnerable Third-Party NHI

NIST SP 800-61 Rev. 3 (April 2025) frames incident response as part of risk management under the CSF 2.0 functions; use it to place this playbook in your wider plan. See the Incident Response Guide.

Practitioner checklist

  • Keep an out-of-band channel and contact list ready for this platform before an incident.
  • Document how to turn off automatic remediation and revoke remediation identities at each target.
  • Keep a current export of connectors with target, credential type and permission.
  • Rehearse revoking each connector at the target, not only in the console.
  • Store regular configuration exports outside the platform as a known good baseline.
  • Know whether the platform stores secret values or fingerprints, and who can read findings.
  • Agree log access and incident contacts with the vendor in the contract.
  • Rotate every reachable credential after an incident and verify the old one fails.

Standards and references

Related NHI Mgmt Group resources: NHI management platform health check · Identity Provider Tenant Compromise Playbook · Incomplete rotation breaches · Break-Glass Account Guide

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.