Lesson 70 — From Detection to Recovery — Run the Incident
The alert arrived at 08:14.
By 08:20, it was no longer just an alert.
By 08:35, the investigation had crossed identity and endpoint telemetry.
By 09:10, the attacker was still active.
By 09:30, multiple teams were involved.
By 10:15, the scope had expanded again.
This time there was no single query that solved the case.
There was only the incident — and the decisions the SOC made next.
Agent Foskett looked at the timeline.
“Follow the evidence. Control the risk. Keep the incident moving.”

Detection is where response begins.
Build the timeline, preserve evidence, contain active risk, coordinate teams, verify outcomes and move safely into recovery.
Capstone briefing
Investigation objective
Apply the complete Module 7 response model to a realistic incident and make defensible decisions about escalation, evidence preservation, containment, coordination, scope, recovery and handover.
Investigator's rule
The incident moves whether the SOC is ready or not. Your process must move with the evidence.
Phase 1 — detection becomes an incident
Do not wait for the whole story
The SOC needs enough evidence to justify coordinated response, not a completed forensic report. Once malicious activity and material risk are established, the response model changes.
Record the transition
Capture when the investigation became an incident, what evidence supported that decision and who assumed incident ownership under the organisation's process.
Phase 2 — build the first timeline
DeviceProcessEvents
| where Timestamp > ago(4h)
| where DeviceName =~ "FIN-WS-044"
| project Timestamp, DeviceName, AccountName,
FileName, ProcessCommandLine,
InitiatingProcessFileName
| order by Timestamp ascTimeline before theory
Start with what happened, when it happened and which entities were involved. The timeline gives later containment and scoping decisions a factual foundation.
Mark confidence
Separate confirmed malicious events from suspicious observations and unresolved hypotheses. The incident record should become more precise as evidence improves.
Phase 3 — preserve what remediation could destroy
Preservation and containment compete for time
The response team must balance evidence requirements against immediate risk. Follow organisational and legal requirements, but do not protect the attacker in the name of collecting a prettier timeline.
Record defender actions too
Isolation, session revocation, permission changes and remediation alter the environment. Add them to the timeline so later analysts can distinguish attacker activity from response activity.
Phase 4 — prove whether the attack is still active
DeviceNetworkEvents
| where Timestamp > ago(1h)
| where DeviceName =~ "FIN-WS-044"
| project Timestamp, DeviceName,
InitiatingProcessFileName,
RemoteIP, RemotePort, RemoteUrl
| order by Timestamp asc09:10 — the incident is moving
Fresh suspicious activity means the SOC is no longer reconstructing only historical events. Immediate risk now drives prioritisation.
Contain known capability
Use approved response actions to reduce the attacker's ability to continue: endpoint, identity, messaging, cloud, application or network controls as the evidence requires.
Phase 5 — containment becomes coordinated
| Workstream | Immediate objective |
|---|---|
| Endpoint | Control affected devices and verify malicious execution stops. |
| Identity | Address known compromised access paths and sessions. |
| Messaging | Preserve and remove malicious mailbox persistence where confirmed. |
| Cloud / SaaS | Address malicious access, permissions or data actions. |
| Network | Apply relevant approved controls and review related activity. |
| Business | Manage operational impact and critical-process continuity. |
| Incident lead | Maintain priorities, timeline, decisions, dependencies and status. |
One incident, many action owners
The SOC does not need to perform every technical action. It does need to know what changed, when it changed, who authorised it and whether it achieved the intended result.
Coordinate state-changing actions
One team may need evidence that another team's remediation could alter. Sequence actions where possible, while allowing urgent containment to proceed under approved authority.
Phase 6 — scope expands
Do not confuse a pivot with a verdict
New entities expand the investigation. They enter confirmed scope only when the evidence supports that classification.
Update containment when scope changes
If another device or access path is confirmed, revisit the containment plan immediately. A response designed for yesterday's scope may not contain today's incident.
Phase 7 — maintain the operational picture
Separate facts, decisions and unknowns
A clean operational picture prevents assumptions from becoming facts and keeps technical teams and business stakeholders aligned.
Communicate for the audience
Technical responders need exact entities, timestamps and evidence. Business stakeholders need current impact, risk, decisions, dependencies and what happens next.
Phase 8 — verify containment
CloudAppEvents
| where Timestamp > ago(2h)
| where AccountId =~ "mia@contoso.com"
| project Timestamp, AccountId, Application,
ActionType, IPAddress, UserAgent
| order by Timestamp ascActions are not outcomes
Confirm that isolation, identity controls, persistence removal and cloud remediation actually changed attacker capability as expected.
11:05 — containment criteria are met
Known malicious access paths are addressed, relevant response actions are verified, scope has stabilised sufficiently and no renewed known malicious activity is observed during the defined review period.
Phase 9 — move from containment toward recovery
Recovery needs security criteria
Restoring a system because the business needs it is not enough. Define what must be true before affected assets or identities return to normal operation.
Recovery can reveal missed scope
If suspicious activity reappears, a persistence mechanism survives or another entity becomes affected, move back into active investigation and containment as required.
Phase 10 — hand over what remains
The incident survives the shift change
The next analyst receives the current state, evidence, decisions, risk and next actions — not a vague instruction to “keep an eye on it.”
Response is continuous decision-making
Detection, investigation, containment and recovery are not isolated boxes. Evidence can move the team backwards or forwards through the response lifecycle.
The complete Module 7 response loop
There is no magic query
KQL, Defender XDR and other security tools help expose evidence. The analyst still has to decide what that evidence means, what risk exists and what action is justified.
The timeline remains the backbone
Throughout the incident, keep attacker events, defender actions, decisions and changes in scope anchored to time. When the story becomes complicated, the timeline keeps it defensible.
Final decision exercise
The answer is C
Incident status is a conclusion based on the evidence available at that time. New evidence can invalidate it. Validate the event, update the timeline, reassess scope and return to containment if required.
That is what running the incident means
You are not following a checklist blindly. You are using a repeatable response model while allowing evidence, risk, authority and business impact to determine the next decision.
Lesson 70 key takeaways
- Know when an alert investigation has become a coordinated security incident.
- Build the timeline early and keep it current.
- Preserve evidence that remediation may change or destroy.
- When malicious activity is active, containment urgency increases.
- Coordinate endpoint, identity, messaging, cloud, network and business workstreams.
- Incident scope is dynamic and must be reassessed as evidence expands.
- Containment actions must be verified, not merely recorded as completed.
- Containment is a milestone; recovery, impact assessment and monitoring can continue.
- Recovery must not silently reintroduce the original risk.
- A strong handover preserves status, scope, evidence, decisions, unknowns and next actions.
- New evidence can move the incident back into active investigation and containment.
- The status never overrules the evidence.
Module 7 complete — Incident Response: Containment, Evidence & Escalation
You have now worked from the moment an investigation becomes an incident through containment decisions, evidence preservation, active attack response, cross-team coordination, expanding scope, containment verification and operational handover.
Continue your SOC Analyst training
🔎 SOC Analyst Academy — Module 7: Incident Response: Containment, Evidence & Escalation
How do SOC analysts run a cyber security incident from detection to recovery?
Lesson 70 of the Agent Foskett SOC Analyst Academy is the Module 7 capstone, bringing together incident declaration, timeline building, evidence preservation, active attack containment, cross-team coordination, scoping, containment verification, recovery and handover.
Complete SOC incident response lifecycle
Learn how evidence drives response decisions throughout a security incident and how analysts use Microsoft Defender XDR telemetry, coordinated containment and repeatable incident-management practices to move safely from detection toward recovery.
