Join our Newsletter — 33% off our NHI Course
Home› Guides› Security Awareness Platform Compromise Playbook: Mailbox Tokens, SCIM…
Guide Security Policies & Awareness

Security Awareness Platform Compromise Playbook: Mailbox Tokens, SCIM Keys and Rebuild

PDF for newsletter subscribers · free to read online

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

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 reachedWhat the attacker gainsResponse lever
Admin or campaign author accountBuild and send convincing phishing to chosen staff through allowlisted infrastructure; change landing pages to real credential captureRevoke 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 mailboxesRevoke grants and app credentials, review mailbox audit logs
SCIM or directory sync credentialEnumerate the workforce, add or alter users and groups in the platform's target listsRotate token, compare user list with the identity provider
Sending and landing infrastructureTrusted sending domains and IPs, tracking links and landing pages your users have learned to seeSuspend bypass rules, verify domain ownership and DNS
Report button add-in backendVisibility of what staff report, so the attacker learns which lures were spottedRotate backend keys, route reports to a security mailbox you control
LMS, HR and API integrationsTraining records and HR attributes, API keys reused elsewhereRotate keys, check record integrity
Reporting and risk dataNamed click histories and risk scores, useful for targetingAssess 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

  1. Declare and move coordination out of band: the attacker may be able to read mail through the integration.
  2. 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.
  3. Set the window: the earliest unapproved campaign, admin login from an unknown source, grant change or token use.
  4. 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.

QuestionPrimary evidenceHeld by
What mail went out, to whom?Mail system message trace filtered on simulation sending domains and IPsMessaging team
Who clicked or submitted?Platform campaign results, web proxy or secure web gateway logs for landing page domainsAwareness team, network security
Who signed in after submitting?Identity provider sign-in logs for those users from new devices or locationsIdentity team
What did the mailbox integration do?Mailbox audit log and API activity for the integration identityMessaging team
Who changed the platform?Platform admin audit log, copied to the SIEM; identity provider sign-ins for admin accountsSecurity operations
Were users or groups altered?SCIM request log and a diff against the identity providerIdentity team
Was data exported?Platform export and report download events, API key usageSecurity 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

  1. Suspend the filtering bypass: disable mail system rules that allowlist the platform's sending domains and IPs, and any advanced delivery or simulation exemption.
  2. Stop sending: pause every scheduled and running campaign and disable campaign creation for all but the incident lead.
  3. 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.
  4. 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.
  5. 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.
  6. Cut admin access: revoke all admin sessions, keep one break-glass account, and require phishing-resistant MFA on return.

Credentials to rotate, in order

OrderCredential or trustWhy this orderWatch for
1Mail system allowlist and delivery exemptionsRemoves the trusted path for real phishingLegitimate platform notifications may be filtered for a while
2Mailbox integration grant, app secrets and certificates, service accountTenant-wide mail read, write and deleteReport button and auto-removal stop working until rebuilt
3Admin sessions, passwords, MFA enrolments, SSO configurationAdmins can recreate every other credentialMFA devices added in the window
4SCIM bearer token or directory sync credentialChanges target lists and exposes the workforce directoryProvisioning errors until the identity provider holds the new token
5Platform API keys and report button backend keysProgrammatic campaign control and report visibilityScripts and SOAR playbooks that call the API
6LMS, HR and other integration keysData access and record integrityKeys 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

  1. Restore the report button first, routed to a security mailbox, because reporting matters more than simulation during recovery.
  2. Restore directory sync, then training content delivery.
  3. Resume simulations only after the allowlist, integration and approval model are rebuilt, starting with a small pilot group and a pre-announced window.
  4. 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

FrameworkReferenceHow it applies
NIST CSF 2.0RS.MI-01, RS.MI-02, RS.CO-02, RS.MA-01, RC.RP-05Containment, eradication, notifying stakeholders, coordination with the provider, verified restoration
NIST SP 800-53 Rev. 5IR-4, IR-6, AC-5, AC-6, IA-5, IA-9, AU-9Incident handling and reporting, separation of duties for campaigns, least privilege for integrations, authenticator and service identity management, protected logs
MITRE ATT&CKT1566.002, T1114.002, T1550.001, T1098.001, T1608.005Phishing 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

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.

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.