A compromised security awareness platform hands an attacker a phishing system your email filters are told to trust, plus mailbox API access and a copy of your workforce directory, so the response has to stop real phishing going out under the cover of training before anything else. These platforms send simulated phishing through allowlisted domains and IP addresses, often read or remove reported messages through mailbox permissions, inject lessons straight into inboxes, receive users through SCIM or directory sync, and hold per-person click and risk data. Each of those is a credential or a trust relationship to contain. This playbook is for security operations, messaging and identity teams and awareness programme owners. It is vendor-neutral: confirm setting names in your platform's and mail system's documentation. Prevention is covered in Securing the Security Awareness and Phishing Simulation Platform Itself, which this page does not repeat.
Key takeaways
- Pull the filtering bypass first. While simulation domains and IPs remain allowlisted, anything sent through them skips your protections; suspend the bypass before investigating further.
- Treat mailbox integrations as a mail breach. An app with tenant-wide read, write or delete rights on mailboxes can collect mail, plant lures that never cross the gateway or remove evidence.
- Rotate SCIM and directory credentials and check what was pushed. A provisioning token can change target lists and user records, and directory read access gives a ready-made target list.
- Tell staff quickly and plainly. People have been taught that simulations come from this platform; they need to know to report anything from it, and that reporting will not count against them.
- Rebuild trust deliberately. Bring simulations back only after the allowlist, integrations and admin model are rebuilt and campaign approval is enforced.
What an attacker gains from the platform
| Component reached | What the attacker gains | Response lever |
|---|---|---|
| Admin or campaign author account | Build and send convincing phishing to chosen staff through allowlisted infrastructure; change landing pages to real credential capture | Revoke sessions, suspend campaigns, remove allowlist entries |
| Mailbox integration (OAuth app or service account) | Read reported mail or all mailboxes, write messages into inboxes, search and delete across mailboxes | Revoke grants and app credentials, review mailbox audit logs |
| SCIM or directory sync credential | Enumerate the workforce, add or alter users and groups in the platform's target lists | Rotate token, compare user list with the identity provider |
| Sending and landing infrastructure | Trusted sending domains and IPs, tracking links and landing pages your users have learned to see | Suspend bypass rules, verify domain ownership and DNS |
| Report button add-in backend | Visibility of what staff report, so the attacker learns which lures were spotted | Rotate backend keys, route reports to a security mailbox you control |
| LMS, HR and API integrations | Training records and HR attributes, API keys reused elsewhere | Rotate keys, check record integrity |
| Reporting and risk data | Named click histories and risk scores, useful for targeting | Assess as personal data, review exports |
How the compromise shows up
- Campaigns nobody approved: sends outside the programme calendar, to a handful of named people, to finance, executives or IT administrators, or using executive or payroll impersonation templates (T1566.002 Spearphishing Link, delivered through trusted infrastructure).
- Landing pages that collect more than a click: credential forms that pass data onwards, or links pointing to domains outside the registered simulation set (T1608.005 Link Target).
- Mailbox API activity out of pattern: the integration reading mailboxes outside the reporting mailbox, bulk reads, new messages written into inboxes without a campaign, or deletions not tied to a report (T1114.002 Remote Email Collection, T1550.001 Application Access Token).
- Changed grants and credentials: new secrets or certificates added to the platform's app registration, or new permissions consented (T1098.001 Additional Cloud Credentials).
- Directory oddities: users in target lists that do not exist in the identity provider, changed email addresses or managers, or SCIM calls from unknown sources.
- Staff reports: people report a "simulation" that asked for MFA codes, payment or software installation, or arrived through a channel the programme never uses.
- Provider notice: the vendor reports an incident affecting tenants, tokens or sending infrastructure.
Triage: the first hour
- Declare and move coordination out of band: the attacker may be able to read mail through the integration.
- Export before changing: campaign list with creators, approvers, targets and templates; admin audit log; integration and token inventory; allowlist entries in your mail system; landing page and domain list.
- Set the window: the earliest unapproved campaign, admin login from an unknown source, grant change or token use.
- Answer five questions: Did any non-simulation mail go out? Who received it and who interacted? Did the mailbox integration read, write or delete outside its normal pattern? Were directory records altered? Was risk data exported?
Each question has a different evidence source, and several of them sit outside the platform, which matters because platform logs may have been altered by an attacker with admin rights.
| Question | Primary evidence | Held by |
|---|---|---|
| What mail went out, to whom? | Mail system message trace filtered on simulation sending domains and IPs | Messaging team |
| Who clicked or submitted? | Platform campaign results, web proxy or secure web gateway logs for landing page domains | Awareness team, network security |
| Who signed in after submitting? | Identity provider sign-in logs for those users from new devices or locations | Identity team |
| What did the mailbox integration do? | Mailbox audit log and API activity for the integration identity | Messaging team |
| Who changed the platform? | Platform admin audit log, copied to the SIEM; identity provider sign-ins for admin accounts | Security operations |
| Were users or groups altered? | SCIM request log and a diff against the identity provider | Identity team |
| Was data exported? | Platform export and report download events, API key usage | Security operations |
Where the platform's own log disagrees with the mail system or identity provider, trust the system the attacker could not administer.
Containment by priority
- Suspend the filtering bypass: disable mail system rules that allowlist the platform's sending domains and IPs, and any advanced delivery or simulation exemption.
- Stop sending: pause every scheduled and running campaign and disable campaign creation for all but the incident lead.
- Revoke mailbox access: revoke the integration's consent or disable its app registration, remove its secrets and certificates, and disable any service account it uses. Revoking a grant may not end self-contained access tokens already issued, which RFC 7009 notes can remain valid until expiry, so confirm in mailbox audit logs that access stopped.
- Purge live lures: search for and remove malicious messages sent in the window, using your mail system's own tools rather than the platform's removal feature. Preserve copies first.
- Protect users who interacted: reset passwords and revoke sessions for anyone who submitted credentials or approved prompts on a suspicious landing page. See the Global Token Revocation Guide.
- Cut admin access: revoke all admin sessions, keep one break-glass account, and require phishing-resistant MFA on return.
Credentials to rotate, in order
| Order | Credential or trust | Why this order | Watch for |
|---|---|---|---|
| 1 | Mail system allowlist and delivery exemptions | Removes the trusted path for real phishing | Legitimate platform notifications may be filtered for a while |
| 2 | Mailbox integration grant, app secrets and certificates, service account | Tenant-wide mail read, write and delete | Report button and auto-removal stop working until rebuilt |
| 3 | Admin sessions, passwords, MFA enrolments, SSO configuration | Admins can recreate every other credential | MFA devices added in the window |
| 4 | SCIM bearer token or directory sync credential | Changes target lists and exposes the workforce directory | Provisioning errors until the identity provider holds the new token |
| 5 | Platform API keys and report button backend keys | Programmatic campaign control and report visibility | Scripts and SOAR playbooks that call the API |
| 6 | LMS, HR and other integration keys | Data access and record integrity | Keys reused in other systems |
SCIM (RFC 7644) allows bearer tokens over TLS and lets the service provider request TLS client authentication; where your platform supports a stronger method or a shorter-lived token, adopt it during the rebuild. See the SCIM Provisioning Guide.
Eradication and rebuild
- Integrations from scratch: create a new app registration or service account with the narrowest mailbox scope your mail system supports, ideally only the reporting mailbox, and a named owner outside the awareness team. Do not reuse the old registration.
- Directory reconciliation: compare the platform's user list with the identity provider and remove anything not sourced from it; restore manager and department attributes from the source.
- Infrastructure: confirm you still control every simulation and landing domain, check DNS records for unexpected changes, and re-create allowlist entries scoped to dedicated domains and IPs only. See the DMARC, SPF and DKIM Guide.
- Admin model: rebuild roles so that no one person can author, approve and launch a campaign (NIST SP 800-53 AC-5), and enforce approval before launch.
- Templates and landing pages: review every template and page for changed links or forms before reuse.
Recovery and return to service
- Restore the report button first, routed to a security mailbox, because reporting matters more than simulation during recovery.
- Restore directory sync, then training content delivery.
- Resume simulations only after the allowlist, integration and approval model are rebuilt, starting with a small pilot group and a pre-announced window.
- Watch mailbox audit logs for the new integration daily for 30 days (our recommendation).
Where identity fits
The platform's power comes from non-human identities: a mailbox app with tenant-wide permissions, a SCIM token, API keys and the trust your mail system gives its sending infrastructure. Each needs an owner, minimum scope and a rehearsed rotation path. Human identities matter too: staff who entered credentials on a malicious landing page need session revocation, not just a password change. See the SaaS and OAuth App Governance Guide and the SaaS integration token breach response guide.
Evidence and notification
- Evidence to preserve: campaign records with creators and approvers, copies of malicious messages with headers, landing page content, platform admin audit log, identity provider sign-in logs for admins, mailbox audit logs for the integration identity, mail system message traces, and SCIM request logs.
- Personal data: mailbox content read by the integration, exported risk scores or directory data may be a personal data breach. Under UK and EU GDPR Article 33 the controller notifies the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware, unless the breach is unlikely to result in a risk to individuals. Involve your data protection officer and HR early.
- Staff communication: send a short notice from a known internal channel telling staff to report anything from the platform's domains, that simulations are paused, and that no one is in trouble for having clicked. The NCSC advises avoiding a blame culture so people feel safe reporting even after they have clicked.
- Provider coordination: request the provider's tenant logs and confirm whether its systems or staff were involved. NIST SP 800-61 Rev. 3 places incident response within CSF 2.0 risk management, including coordination with third parties.
Decision guidance
- Disable the integration or narrow it: if mailbox access outside the reporting mailbox is seen, disable it; if only the console was touched and mailbox logs are clean, rotating credentials and narrowing scope may be enough.
- Pause simulations or continue: pause. A simulation sent during a live incident teaches staff to ignore real warnings.
- Small organisations without mailbox audit logging should assume worst case for mailbox access and notify accordingly; larger organisations can scope precisely from audit data.
Detection and measurement
- Time to suspend the filtering bypass from declaration.
- Integration scope: number of mailboxes the rebuilt integration can access (target: reporting mailbox only where supported).
- Unapproved campaigns: campaigns launched without a recorded approver (target zero).
- Directory drift: platform users with no matching identity provider record (target zero).
- Report rate during recovery: staff reports per suspicious message, which the NCSC suggests measuring alongside clicks.
Framework mapping
| Framework | Reference | How it applies |
|---|---|---|
| NIST CSF 2.0 | RS.MI-01, RS.MI-02, RS.CO-02, RS.MA-01, RC.RP-05 | Containment, eradication, notifying stakeholders, coordination with the provider, verified restoration |
| NIST SP 800-53 Rev. 5 | IR-4, IR-6, AC-5, AC-6, IA-5, IA-9, AU-9 | Incident handling and reporting, separation of duties for campaigns, least privilege for integrations, authenticator and service identity management, protected logs |
| MITRE ATT&CK | T1566.002, T1114.002, T1550.001, T1098.001, T1608.005 | Phishing through trusted infrastructure, mailbox collection, token use, added app credentials, malicious link targets |
Common failure patterns
- Containing the console but leaving the allowlist: the trusted path stays open to anyone holding the sending infrastructure.
- Rotating only what was confirmed stolen: the 2023 intrusion described in this breach analysis used service credentials left unrotated after an earlier supplier incident because they were wrongly believed unused.
- Using the platform's own removal feature to clean up: it depends on the integration you are trying to contain and may destroy evidence.
- Re-enabling the old app registration: secrets or certificates the attacker added stay valid.
- Letting a simulation domain lapse after the incident: retiring compromised domains is sensible, but a lapsed domain that remains in any allowlist gives its next registrant a trusted route into inboxes (T1583.001 Domains). Remove allowlist entries before letting domains go.
- Blaming staff who clicked: it suppresses the reports you need to scope the incident.
Practitioner checklist
- Suspend mail system allowlists and delivery exemptions for the platform.
- Pause all campaigns and restrict campaign creation to the incident lead.
- Revoke the mailbox integration and confirm in audit logs that access stopped.
- Find, preserve and purge malicious messages using the mail system's tools.
- Reset and revoke sessions for staff who submitted credentials.
- Rotate admin credentials, SCIM token, API keys and integration keys in order.
- Reconcile platform users with the identity provider and verify domain ownership.
- Rebuild with separation of duties and approval before any simulation resumes.
- Assess personal data notification with your data protection officer.
Standards and references
- NIST: SP 800-61 Rev. 3 Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- NIST: SP 800-53 Rev. 5
- NCSC: Phishing attacks: defending your organisation
- IETF: RFC 7644 System for Cross-domain Identity Management: Protocol
- IETF: RFC 7009 OAuth 2.0 Token Revocation
- IETF: RFC 9700 Best Current Practice for OAuth 2.0 Security
- MITRE ATT&CK: Remote Email Collection
- MITRE ATT&CK: Application Access Token
Related NHI Mgmt Group resources: Securing the Security Awareness and Phishing Simulation Platform Itself, Phishing Simulation Programme Guide, Email Security Gateway Compromise Playbook, Consent Phishing and Illicit OAuth Grants Guide.