Lesson 68 — When Do We Call It Contained?
Both compromised devices were isolated.
The affected account had been contained.
Sessions had been revoked.
The malicious mailbox rule was gone.
The suspicious OAuth access had been addressed.
The incident channel became noticeably quieter.
Someone typed:
“Great. Incident contained.”
Agent Foskett looked at the timeline.
“What evidence proves that?”

Actions are not proof.
Verify the result of containment across every relevant access path before changing the incident status.
Case briefing
Investigation objective
Define measurable containment criteria, verify the effect of response actions and make a defensible incident-level containment decision.
Investigator's rule
Containment is a verified state, not a completed task list.
Stage 1 — define containment before declaring it
Containment is incident-specific
The criteria for a compromised workstation differ from those for an identity takeover, malicious OAuth consent or cloud data incident. Define what must be true for this incident, not what was true in the last one.
Known capability is the focus
The SOC rarely proves that an attacker has absolutely no possible path anywhere. The practical question is whether known and reasonably suspected paths have been addressed sufficiently under the organisation's incident procedures.
Stage 2 — distinguish action from outcome
| Action recorded | Outcome that needs verification |
|---|---|
| Device isolation requested | The device is actually isolated and no longer providing the relevant network access. |
| Sessions revoked | Known malicious session activity no longer continues. |
| Password reset | The identity's known compromised authentication path has been addressed. |
| Mailbox rule removed | The malicious rule is gone and equivalent persistence has not been identified. |
| OAuth access revoked | The application no longer retains the relevant malicious access. |
| Indicator blocked | Relevant malicious communication has stopped or is being prevented as expected. |
“Requested” is not “completed”
A ticket, command or portal action shows intent. Verify the resulting state. Failed, delayed or partially applied controls can leave the attacker active.
“Completed” is not always “effective”
An action can succeed technically and still fail to contain the incident if another access path remains. That is why containment must be evaluated across the whole incident.
Stage 3 — verify endpoint activity after containment
DeviceProcessEvents
| where Timestamp > ago(2h)
| where DeviceName in~ ("FIN-WS-044", "FIN-WS-061")
| project Timestamp, DeviceName, AccountName,
FileName, ProcessCommandLine,
InitiatingProcessFileName
| order by Timestamp ascUse the containment timestamp
Compare activity before and after the recorded response action. The question is not merely whether suspicious events exist, but whether relevant malicious activity continued after containment should have taken effect.
Remember defender actions affect telemetry
Isolation and remediation change what you can observe. Record those changes so an absence of events is interpreted in the context of the response action.
Stage 4 — verify relevant network activity
DeviceNetworkEvents
| where Timestamp > ago(2h)
| where DeviceName in~ ("FIN-WS-044", "FIN-WS-061")
| project Timestamp, DeviceName,
InitiatingProcessFileName,
RemoteIP, RemotePort, RemoteUrl
| order by Timestamp ascLook for activity after the control point
If a known malicious connection continues after the expected containment time, the response state needs investigation. Confirm timestamps and control behaviour before assuming the action failed.
Silence is supporting evidence, not absolute proof
No new suspicious network events can support containment when combined with successful controls and stable scope. By itself, silence cannot prove the attacker has no remaining capability.
Stage 5 — verify cloud activity
CloudAppEvents
| where Timestamp > ago(2h)
| where AccountId =~ "mia@contoso.com"
| project Timestamp, AccountId, Application,
ActionType, IPAddress, UserAgent
| order by Timestamp ascEndpoint containment does not contain cloud access
An isolated workstation does not automatically invalidate an existing cloud session or application permission. Verify each relevant control plane separately.
Watch for renewed activity
Activity reappearing after containment may indicate another session, credential, application grant, device, persistence mechanism or access path that was not included in the original plan.
Stage 6 — use a containment matrix
| Control plane | Containment criterion | Status |
|---|---|---|
| Endpoint | Known affected devices isolated; no continuing known malicious execution observed. | Verified |
| Identity | Known compromised identity access paths addressed; malicious activity stopped. | Verified |
| Messaging | Known malicious mailbox persistence removed and related scope reviewed. | Verified |
| Cloud / SaaS | Known malicious access or permission path addressed; suspicious activity stopped. | Verification in progress |
| Scope | Material pivots no longer identifying new affected entities. | Stabilising |
A single “open” can matter
If one unresolved control plane still provides a credible attacker path, the incident may not yet meet its containment criteria even though most actions are complete.
Make criteria observable
“Identity contained” is too vague. “Known malicious sessions revoked and no renewed suspicious activity observed during the defined verification period” is a more useful operational statement.
Stage 7 — separate containment from eradication and recovery
Do not close the incident at containment
Containment is a major response milestone, not necessarily the end of the incident. Evidence review, eradication, recovery, monitoring, impact assessment and lessons learned may remain.
Use your organisation's response model
Incident-response phases and status names vary. Follow the approved playbook, authority model and terminology used by your organisation.
Stage 8 — record residual risk and unknowns
Unknowns should influence confidence
Record what remains uncertain and whether it materially affects the containment decision. Some unknowns block containment; others can be investigated safely during later response phases.
Residual risk needs an owner
If risk remains after the containment milestone, record who owns it, what monitoring or follow-up is required and what condition would trigger renewed response.
Stage 9 — require a containment statement
The statement should explain why
A status label without evidence is weak. A containment statement records scope, verified controls, observation, open issues and the rationale for moving to the next response state.
Record who made the decision
For significant incidents, capture the authorised decision-maker or incident lead according to organisational procedure, along with the decision time.
Stage 10 — know what would reopen containment
Monitoring continues
Recovery should include appropriate monitoring for recurrence or evidence that the containment conclusion was incomplete. Define the monitoring expectations in the incident plan.
Be willing to change the status
If new evidence invalidates the containment assumptions, update the incident. A defensible SOC changes its conclusion when the evidence changes.
Lesson 68 key takeaways
- Containment is a verified incident state, not a list of completed actions.
- Define incident-specific containment criteria.
- Verify the outcome of actions rather than assuming requests succeeded.
- Evaluate endpoint, identity, messaging, cloud and other relevant control planes separately.
- An isolated endpoint does not automatically contain cloud access.
- Absence of new malicious activity supports containment but does not prove universal safety.
- Use observable containment criteria and record their status.
- Containment, eradication and recovery are related but different response concepts.
- Record residual risk, unknowns and owners.
- A containment statement should document scope, verified actions, observations and rationale.
- Continue appropriate monitoring after containment.
- If new evidence appears, reassess the containment conclusion.
Module 7 — Incident Response: Containment, Evidence & Escalation
Lesson 68 established an evidence-based containment decision. Lesson 69 turns to the next operational challenge: handing the incident to another analyst or team without losing the timeline, decisions, risks and unanswered questions.
Continue your SOC Analyst training
🔎 SOC Analyst Academy — Module 7: Incident Response: Containment, Evidence & Escalation
When should a SOC declare a security incident contained?
Lesson 68 of the Agent Foskett SOC Analyst Academy teaches analysts how to define evidence-based containment criteria and verify that response actions have actually reduced the attacker's known ability to continue causing harm.
Verifying cyber security incident containment
Learn how to distinguish containment actions from outcomes, verify endpoint and cloud activity, record residual risk, document a containment statement and recognise when new evidence requires containment to be reassessed.
