Goal. By the end you can handle four kinds of incident that break the usual assumptions: phishing and adversary-in-the-middle attacks, insider threats, cloud and container incidents, and supply-chain and third-party OAuth incidents.
Why it matters#
The standard flow assumes a technical problem on systems you control. These cases do not fit: the attacker may pass MFA, the suspect may be a protected colleague, evidence may vanish with a container, and the compromised thing may be a vendor's token or a package.
What you will learn#
Phishing and adversary-in-the-middle attacks#
Check in this order, and move on to response as soon as the answer is clear:
- Sender authentication. SPF checks that the sending server is allowed for the envelope domain. DKIM checks a cryptographic signature. DMARC requires one of them to match the address the reader sees, and publishes how mail servers should treat messages that fail. A message can pass SPF for the attacker's own domain and still be a spoof, so that match is what counts.
- Headers. The Received chain, Return-Path and Reply-To. A Reply-To that differs from the From is a classic business email compromise tell.
- Payload. Open links and attachments only in a sandbox, never a live browser.
- Reach. Find every recipient, then which of them followed the link or typed a password.
- Response.
The kinds need different responses:
- Credential phishing: change the password and end open sessions.
- Adversary-in-the-middle (AiTM): see below.
- Malware delivery: endpoint-led (Stage 4).
- Business email compromise: persuasion alone, with nothing to detonate (Stage 4).
- Consent phishing: the user grants a malicious app access, with no password involved. Revoke the app.
- Callback phishing: a phone number instead of a link, often ending in remote-access software.
- QR-code phishing: the link is an image, so link scanners miss it.
- Voice phishing of the help desk: CISA's Scattered Spider advisory describes actors who pose as IT staff to obtain one-time codes. Verify callers out of band before resetting MFA.
AiTM. The attacker's server stands between the user and the real sign-in page, passing each request through. The user really does sign in, MFA included, and the cookie that proves it ends up with the attacker (ATT&CK: Steal Web Session Cookie, T1539). Three consequences:
- Codes and push approvals do not stop it. Phishing-resistant MFA does, because the credential is tied to the real site. CISA's guidance names FIDO and WebAuthn security keys.
- Changing the password does not cancel a cookie already issued, so end sessions and tokens too.
- In the logs, look for a successful sign-in soon after a click, from a new address or hosting provider, without an MFA prompt the user remembers. The same session identifier appearing from two addresses is another tell.
Then purge the message from every mailbox, block the sender and link, remove MFA methods the attacker added, and check mailbox rules, forwarding and app consents (the Stage 2 worked example).
Insider threat#
Three kinds of insider need three kinds of handling:
- Someone acting deliberately (taking data, damaging systems or committing fraud). HR and Legal run the case, and the SOC supplies the facts.
- Someone careless (a storage bucket left public, mail sent to the wrong address). Fix the process and coach the person.
- An account that has been taken over. This is ordinary incident response and says nothing about the employee's conduct.
Establish who was at the keyboard before anything else. Compare device, location and session with the person's usual pattern before anyone talks about motive. Confusing a hijacked account with misconduct, in either direction, does harm that is hard to undo.
These habits keep a case fair and usable. This is not legal advice, and the law varies by country.
- Bring in HR and Legal before looking into a named person. They decide how far you may go. Monitoring law differs between countries, and some require staff representatives to be consulted.
- Stay proportionate. Gather only what the agreed question needs.
- Keep the person unaware until the evidence is safe: no questions and no changes they would notice.
- Limit who knows. Use a restricted channel, never the general SOC chat.
- Record handling from day one, because a tribunal or court may examine the evidence.
- Report actions, not motives. Write "this account sent 4 GB to a personal storage service on 3 March", never "they stole it".
- Leave the timing of access removal to HR and Legal, who usually tie it to the conversation with the person.
Log warning signs include data volumes unusual for the role, files gathered and zipped, copies to personal storage or USB, and cloned repositories. A resignation or grievance means little on its own, though an agreed list of leavers helps you read the behaviour. Tight permissions and access reviews reduce the risk most.
Cloud and container incidents#
Four differences:
- Records replace disks. Often there is nothing physical to copy, so the provider's audit records tell the story.
- Resources are ephemeral. A container may be gone in minutes, so plan collection beforehand.
- Identity is the perimeter. Attackers often arrive with a stolen key, token or role.
- Responsibility is shared. The provider secures the platform. You secure your configuration, identities and data, and your contract should say who does what.
In the cloud: scope the identity's activity in the audit log across every region and subscription. Snapshot disks. Isolate with network rules instead of terminating. Copy logs to a separate protected store. Hunt for persistence: new users, keys, roles, policies, functions, OAuth apps and federation changes.
With containers, freeze rather than destroy where you can (docker container pause) and list changed files with docker diff. Before removing a Kubernetes pod, keep its logs, kubectl describe output, image digest and node name. Block its traffic with a network policy and cordon the node. The audit log shows who created it or ran commands in it. Check for privileged pods, host mounts, service account tokens and the node's cloud role. A runtime sensor such as Falco records what ran.
Supply-chain and third-party OAuth incidents#
Three shapes:
- A vendor you use is breached. Your data or credentials sit with them, and you hear by notice, perhaps days late.
- A dependency or build tool you install is malicious or compromised: a package, a plugin, a pipeline action. It runs on developers' machines and in pipelines, next to their secrets.
- A third-party app with OAuth access to your SaaS or cloud tenant is abused. Because its tokens are genuine, nobody is asked for a password or MFA, and no malicious file appears.
Response:
- Inventory fast. Which integrations, vendors or packages are affected, what could they reach and who approved them? You need this list before an incident.
- Cut access. Revoke the tokens or disable the app, and rotate what the vendor or build environment could see. Also rotate secrets sitting in data the app could read, such as passwords pasted into support tickets.
- Read the app's audit trail. Look for bulk reads and exports, new addresses and unusual user agents.
- For packages, find where affected versions were installed (lockfiles, software bills of materials, build logs). Assume secrets in any environment that ran them are exposed, rebuild with versions you have checked and locked, and see whether anything you publish was changed.
- Talk to the vendor. Ask for indicators, a timeline and the affected data. Where the vendor processes personal data for you, the GDPR obliges it to notify you without undue delay, and your contract may demand it sooner (Stage 9).
For prevention, review OAuth apps, grant least-privilege scopes, reassess them periodically, pin dependencies and run builds with minimal secrets. ATT&CK names these techniques Trusted Relationship (T1199), Supply Chain Compromise (T1195) and Steal Application Access Token (T1528).
Do this#
- Analyse three suspicious emails (1–2 hours). Use your own spam folder. Read the headers, record the SPF, DKIM and DMARC results, and decide the type. Do not click anything.
- Draw an AiTM timeline (1 hour). Click, sign-in without a prompt, mailbox rule: mark where each response step belongs.
- Role-play an insider case (1–2 hours). Friends play SOC, HR and Legal: a departing salesperson uploads 5 GB to personal storage. Write the first-day plan, including what you deliberately will not do.
- Run a cloud lab (1–2 hours). In a free account, enable audit logging, create a test user and key, make a few calls and trace them by key ID. Practise isolating without terminating.
- Run a container lab (1–2 hours). Save a test pod's logs, description and image digest before deleting it, then try
docker diffon a local container. - Drill the OAuth case (1 hour). In a test tenant, list the consented apps and scopes, then write a one-page procedure to revoke an app and rotate what it could see.
Resources#
Free first
- Microsoft's phishing, password spray and app consent playbooks - step-by-step investigations. They are Microsoft-specific, but the questions transfer.
- From cookie theft to BEC - Microsoft's account of how AiTM phishing works and what it led to.
- Implementing Phishing-Resistant MFA - CISA on which MFA methods resist phishing and push bombing.
- Scattered Spider advisory - a real case of help-desk social engineering and MFA bypass.
- Insider Threat Mitigation Guide and Common Sense Guide to Mitigating Insider Threats - programme and process advice.
- ATT&CK for containers, Kubernetes auditing and Falco - technique names, audit logs and runtime detection.
- Defending Against Software Supply Chain Attacks and SLSA - CISA's guidance and a framework of build-integrity levels.
Paid or needs an account
- None needed for this stage.
Checkpoint#
You are ready to move on when you can:
Go deeper (optional)#
- Read the ATT&CK pages for T1539, T1528 and T1199 and note the detections each suggests.
- Model these cases before they happen with Threat Modelling stage 6.