Join our Newsletter — 33% off our NHI Course
Home› Guides› If your SSPM is compromised: containment, credential rotation…
Guide Incident Response & Forensics

If your SSPM is compromised: containment, credential rotation and rebuild playbook

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 11 November 2026 12 min read
On this page

When your SaaS security posture management (SSPM) platform is compromised, the attacker inherits admin-grade API access into every SaaS tenant it monitors, a map of their misconfigurations and, where remediation is enabled, the power to change their settings. An SSPM typically connects to the identity provider, collaboration suite, CRM, code platform and dozens of other SaaS applications through OAuth apps, service accounts and API tokens, many with directory-wide read scopes. The incident can start in your tenant of the platform (a stolen admin login, a leaked API key), in a browser extension or collector it deploys, or at the vendor, where one breach exposes the connector tokens of every customer. This playbook is for SaaS security, identity and incident response teams. It is vendor-neutral; the containment steps sit in each SaaS application, so confirm exact names in their documentation. Rollout and hardening are covered in the SSPM rollout playbook.

Key takeaways

  • Contain in the SaaS tenants, not the SSPM console. The platform's power is a set of OAuth grants and tokens inside each application; disabling those stops the attacker even if the console is still exposed.
  • Delegated and app-only grants need different actions. App-only connectors are stopped by disabling the app and removing its credentials; connectors that acted as an admin user also need that user's sessions and refresh tokens revoked.
  • The posture report is a target list. Weak MFA policies, public sharing and over-privileged third-party apps it lists are the attacker's next step; close the worst during the incident.
  • One vendor breach reaches many tenants. Rotate every connector the SSPM held across all applications, not only the one where misuse was seen.
  • Reconnect read only, app by app. Restore with dedicated service identities, minimum scopes and remediation off until the review is done.

What the SSPM holds

This is our view of the common connection types and what each one gives an attacker.

ConnectionWhat an attacker gainsFirst containment action
Identity provider read access (users, groups, policies, apps)The full identity map, MFA gaps and admin list (ATT&CK T1087.004 Cloud Account discovery)Disable the integration app or revoke its API token
Collaboration suite app with directory and settings scopesTenant configuration, sharing settings, sometimes file and mail metadataDisable the service principal or revoke the app's tokens
CRM, support and code platform connectorsOrg configuration, connected apps, profile and permission set dataRevoke the connected app's tokens; block the app
Admin API tokens created by a personEverything that admin can do; often far more than posture readsRevoke the token; review the creator's other tokens
Remediation or write scopesAbility to change policies, sharing and app approvals under a trusted nameRemove write scopes or the whole app first
Browser extension or endpoint collector (if deployed)Visibility of SaaS use on endpoints and a code delivery pathBlock the extension or collector through endpoint management
Ticketing, chat and SIEM outputs; platform admin and SSOWebhook secrets, a trusted alert channel, control of every connectorRotate secrets, disable admins, reset SSO trust

How the compromise shows up

SignalWhere you see itWhat it can mean
The SSPM's app or service account signs in from unexpected IP ranges or at unusual timesIdentity provider sign-in logs for service principals and API tokensConnector credentials used outside the vendor's path (ATT&CK T1550.001 Application Access Token)
Data reads that posture checks do not need: file contents, mail, CRM records, bulk exportsSaaS audit logs, API event logsCollection using posture scopes (ATT&CK T1213 Data from Information Repositories)
Write calls from a connector that should be read onlySaaS admin audit logsAbuse of remediation scopes; check for new admins, apps and policy changes
New OAuth apps, consent grants, API tokens or admin role assignmentsIdentity provider and SaaS audit logsPersistence across tenants (ATT&CK T1098.001, T1136.003)
Alerts suppressed, checks disabled or applications disconnected in the SSPMThe platform's own audit logHiding activity, in line with ATT&CK T1685 Disable or Modify Tools
Vendor notice asking customers to rotate integration credentialsVendor status page, trust centreConnector tokens exposed at the vendor

Triage: the first hour

  1. Where did it start? Your platform tenant, a deployed extension or collector, or the vendor's shared service.
  2. List every connected application with the identity used (OAuth app, service account, personal admin token), its scopes, and whether it is app-only or delegated.
  3. Find the write scopes. Remediation, auto-fix and app approval features come first.
  4. Identify personal tokens. Tokens created by a human admin inherit that admin's privileges; identity platform documentation, for example, states that an API token carries the same permissions as the user who created it.
  5. Export the posture view the attacker could see: failing checks, risky third-party apps, users without MFA.
  6. Check for ongoing use in the last hours across the identity provider and the three most sensitive applications.

Containment by priority

  1. Remove write capability in every application: revoke remediation scopes, or disable the whole connector where scopes cannot be split.
  2. Disable app-only connectors. A major cloud identity provider's compromised application playbook recommends disabling sign-in for the service principal (accountEnabled set to false) to give responders time to judge the impact of deletion or key rolling, and coordinating this with any wider eviction if admin accounts may also be compromised.
  3. Revoke issued tokens. Use each platform's admin API or console to delete all tokens a user has issued to the connector's client ID. Revoking a connected app's access means it can no longer reach your data; revoke all tokens for the app, because platform documentation notes it can appear more than once. Revoke API tokens directly in applications that use them.
  4. Revoke delegated sessions. If a connector acted as an admin user, revoke that user's sessions; in documented cases this invalidates the user's refresh tokens and browser session cookies, and revocation can take a few minutes. It does not stop app-only access, which is why step 2 comes first.
  5. Block re-consent. Block the SSPM's apps in each application's third-party app controls so tokens cannot simply be reissued.
  6. Lock the platform tenant and remove extensions or collectors through endpoint management.
  7. Fix the top findings. Close the riskiest gaps the attacker saw: admins without phishing-resistant MFA, public sharing, high-privilege third-party apps.

Rollback: record every app, scope, token and block with its prior state. Reconnection uses new identities, so rollback never means re-enabling the old ones.

Credential rotation and trust reset

CredentialActionCheck afterwards
Identity provider application secrets and certificatesIdentity provider guidance: add the new credential, then immediately remove every old password and key credential on the application and on each service principalNo unexpected credential additions in the audit log
OAuth client secrets for connected appsReissue the secret, revoke all tokens for the old clientToken use for the old client stops
Admin API tokensRevoke; replace with a dedicated service identity holding a read only admin roleNo tokens tied to personal admin accounts
Service account keys and domain-wide delegationDelete keys; remove and re-add delegation with minimum scopesOld key IDs fail
Admin accounts used to authorise connectorsReset credentials, revoke sessions, re-check MFA methodsNo sign-ins from attacker ranges
Webhooks and SIEM keysRotate on both endsOld signatures rejected

For deeper per-platform steps see the Microsoft 365 Tenant Compromise Playbook, the Google Workspace Compromise Playbook and the Salesforce Org Compromise Playbook.

Eradication and rebuild

  • New apps and grants: search every tenant for OAuth apps, consent grants, connected apps and API tokens created in the window.
  • Admin changes: new admins, role assignments, MFA method changes and conditional access or sign-on policy edits.
  • Sharing and forwarding: external sharing changes, public links, mail forwarding rules (ATT&CK T1114 Email Collection) and new domains allowed.
  • SSPM tenant: remove unknown admins, tokens, integrations, exceptions and disabled checks; compare with the last reviewed policy set.
  • Extensions and collectors: reinstall only from a verified source, or not at all until the vendor's root cause is known.

Recovery and reconnection

  1. Start with one application of lower sensitivity, using a new dedicated service identity and read only scopes.
  2. Verify behaviour for one full scan cycle: source IPs, API calls and volume should match the vendor's documentation.
  3. Add the identity provider and core suites next, then the long tail, once the pattern holds.
  4. Restrict by network where the application supports IP restrictions for the integration.
  5. Re-enable remediation last, for named actions with approval, after the post-incident review.

Where identity fits

An SSPM compromise is a non-human identity incident. Each connector is a machine identity: an OAuth client, a service principal, a service account with delegation, or an API token that should belong to a service but often belongs to a person. Three identity questions decide how bad it is.

  • Who owns each connector? Connectors without a named owner are the ones nobody rotates; use the incident to assign an owner to every one that is reconnected.
  • Is the grant app-only or delegated? App-only grants act on their own authority and keep working when users sign out; delegated grants depend on a user's refresh token and fail when that user's sessions are revoked. Record the type in the register so the next responder knows which lever to pull.
  • Is the scope proportionate? Directory-wide read scopes are normal for posture tools, but mail, file content and full CRM data scopes rarely are. Each scope removed at reconnection shrinks the next incident.

The same register supports the wider programme: see the SaaS and OAuth App Governance Guide for ongoing review of third-party grants.

Scoping questions by application type

Application typeQuestion to answerLog to check
Identity providerDid the connector read or change policies, admins or app assignments?System or directory audit log, service principal sign-ins
Mail and collaboration suiteWere mailbox, file or chat contents read, or sharing changed?Unified or admin audit logs, file access events
CRM and supportWere records queried or exported in bulk?API event logs, export history, connected app usage
Code platformWere repositories cloned or settings changed?Organisation audit log, git access events
HR and finance applicationsWere employee or payment records read?Application audit trail, report runs

Evidence to preserve and notification

  • Identity provider logs: service principal and admin sign-ins, consent and app events for the window.
  • SaaS audit logs: export from each connected application; retention differs widely by product and licence.
  • SSPM audit trail: admin, token, check and integration history.
  • Vendor communications: notices, case numbers and the vendor's scope statement.

SaaS tenants usually hold personal data, so if records were read the GDPR Article 33 rule may apply: notify the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware. See the Cyber Incident Reporting Requirements Map for other regimes, and your contract for the vendor's duties to you.

Decision guidance

SituationChooseTrade-off
Vendor breach, no misuse seen in your tenantsRotate every connector, keep monitoring on new credentialsBrief gap versus trusting the vendor's scope
Misuse seen in one applicationDisconnect all applications, investigate each, reconnect in stagesLoss of posture visibility for days; use native admin reports meanwhile
Remediation scopes were enabledTreat each tenant as compromised and run its full tenant playbookHigh effort, but write access makes anything possible
Small estate, under 20 applicationsManual revocation and review per appQuick, but needs a written list to avoid misses
Large estate, hundreds of applicationsPrioritise identity provider, mail, files, CRM and code; script token revocationLong tail may stay disconnected for weeks

Detection and measurement

  • Time to cut access: from declaration to all connectors disabled across applications.
  • Connector inventory accuracy: connected applications with documented identity, scopes and owner.
  • Personal tokens remaining: connectors still using tokens tied to human admins, target zero.
  • Write scope count: connectors with write or remediation scope.
  • Source alerting: alerts on connector sign-ins from outside the vendor's documented ranges, tested yearly.

Framework mapping

FrameworkReferenceWhere it applies
NIST CSF 2.0RS.MA-01, RS.AN-03, RS.MI-01, RS.MI-02, RC.RP-05Response with the vendor, root cause, containment, eradication, verified restore
NIST SP 800-53 Rev. 5IR-4, IR-6, AC-2, AC-6, IA-5, SA-9, AU-6Incident handling, accounts, least privilege, authenticators, external services, log review
CIS Controls v8.1Control 5, Control 6, Control 8, Control 15, Control 17Accounts, access, audit logs, service providers, incident response
ISO/IEC 27001:2022 Annex A5.19, 5.22, 5.23, 5.24 to 5.28Supplier and cloud service security, incident management and evidence
MITRE ATT&CKT1199, T1550.001, T1528, T1087.004, T1213, T1098.001, T1685Trusted relationship, token use and theft, discovery, collection, persistence, defence impairment

Common failure patterns

  • Revoking in the application where misuse was seen, and nowhere else. In the Salesloft Drift breach stolen OAuth tokens from one integration opened hundreds of customer tenants; integrations that span many applications need revocation everywhere.
  • Forgetting old or unused connectors. The Klue OAuth breach turned on a forgotten integration credential.
  • Revoking user sessions only. Session revocation does not stop app-only grants; the app itself must be disabled.
  • Personal admin tokens as connectors. They inherit the admin's full rights and vanish or break when the person leaves.
  • Restoring remediation by default. Write scopes recreate the most damaging path.

Practitioner checklist

  • Keep a connector register: application, identity, scopes, grant type, owner.
  • Remove write scopes first, then disable app-only connectors.
  • Revoke tokens per client ID in every application, not just where misuse was seen.
  • Revoke sessions for admins whose delegated grants the SSPM used.
  • Block the apps from re-consent until reconnection.
  • Hunt for new apps, grants, admins and sharing changes in each tenant.
  • Fix the top posture gaps the attacker could see.
  • Reconnect one application at a time with new read only identities.
  • Export identity provider, SaaS and platform logs before retention expires.

Standards and references

Related NHI Mgmt Group resources: SSPM integration security guide · SSPM health check · SaaS and OAuth App Governance Guide · Identity Provider Tenant Compromise 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.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 11 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

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 the PDF box to continue.