Agent Foskett Academy • SOC Analyst Academy • Module 7 • Lesson 63 • Incident Response: Containment, Evidence & Escalation

Lesson 63 — Do We Disable the Account?

The endpoint had been isolated.

But the user's cloud activity continued.

A suspicious session was still active.
SharePoint activity had appeared.
The account had access to finance systems.

Someone said:

“Disable the account. Problem solved.”

Agent Foskett looked at the timeline.

“Maybe. But first tell me what disabling it actually contains.”

Identity containment is not one action. Choose the control that addresses the access path you are trying to stop.
Agent Foskett deciding whether to disable a compromised user account
What exactly are you trying to stop?

Assess active sessions, privilege, cloud access, persistence and business impact before choosing identity containment.

✓ Confirm active identity risk
✓ Choose containment controls
✓ Consider business impact
✓ Verify the result

Case briefing

ACCOUNT: mia@contoso.com 10:04 — Suspicious sign-in context 10:11 — Endpoint compromise confirmed 10:18 — Device isolated 10:24 — Cloud activity continues 10:29 — Sensitive SharePoint access 10:34 — New mailbox activity 10:39 — Existing cloud session still relevant ACCOUNT ROLE: Finance user Access to sensitive business data Several cloud applications QUESTION: DO WE DISABLE THE ACCOUNT NOW? OR DO WE USE A DIFFERENT IDENTITY CONTAINMENT ACTION?

Investigation objective

Assess whether disabling a user account is the appropriate identity containment action by examining active access, sessions, privilege, persistence, business impact and the specific behaviour the response must stop.

Investigator's rule

Do not choose the containment action first. Define the access you need to stop first.

Stage 1 — identify the containment objective

WHAT ARE WE TRYING TO STOP? New interactive sign-ins? Existing sessions? Stolen credentials? Application access? Privileged access? Mailbox activity? Cloud data access? Persistence through MFA / OAuth? Activity from another device? "DISABLE THE ACCOUNT" MAY BE PART OF THE ANSWER. IT IS NOT THE INVESTIGATION.

Identity containment has layers

An identity can have credentials, active sessions, authentication methods, privileges, delegated permissions and application relationships. Effective containment considers which of those paths the attacker may be using.

Account disablement is powerful

Blocking an account can interrupt legitimate and malicious use, but the SOC still needs to understand related sessions, persistence and application access rather than assuming one control has erased the incident.

Stage 2 — establish the identity timeline

01-identity-cloud-timeline.kql
1234567891011
CloudAppEvents
| where Timestamp > ago(1d)
| where AccountId =~ "mia@contoso.com"
| project Timestamp,
          AccountId,
          Application,
          ActionType,
          IPAddress,
          UserAgent,
          RawEventData
| order by Timestamp asc

Look beyond the original sign-in

The identity timeline should show what happened after authentication: application activity, mailbox interaction, file access, sharing and other cloud actions.

Endpoint isolation does not contain cloud identity

If cloud activity continues after the endpoint is isolated, the attacker may have another session, another device, application access or some other identity path that requires separate containment.

Stage 3 — ask whether the account is still being used

ACTIVE IDENTITY QUESTIONS Are new sign-ins appearing? Are existing sessions producing activity? Are cloud applications still being accessed? Is mailbox activity continuing? Are SharePoint / OneDrive actions continuing? Is the identity appearing on other devices? Are privileged operations occurring? Are new authentication methods appearing? Are application permissions changing? IF ACTIVITY CONTINUES: THE IDENTITY CONTAINMENT DECISION IS TIME-SENSITIVE.

Separate new authentication from session use

Distinguish a fresh sign-in from activity produced through an already established session or application context. That distinction can affect which containment actions are necessary.

No new sign-in does not mean safe

Cloud activity can continue without a new interactive authentication event. Follow the activity itself rather than waiting for another sign-in alert.

Stage 4 — assess privilege and blast radius

Account contextWhy it matters
Standard userRisk may centre on the user's data, applications and delegated access.
Finance / sensitive-data userBusiness and confidentiality impact may be significant.
Privileged administratorAttacker capability and potential tenant impact increase sharply.
Service-linked identityContainment may interrupt automated processes or integrations.
Executive accountHigh-value data and impersonation risk may be present.
Shared or operational identityDisabling may affect multiple users or business processes.

Privilege increases urgency

If the identity can change security controls, manage users, access broad data or grant permissions, the cost of leaving attacker access available can rise dramatically.

Privilege also changes recovery

A privileged compromise may require broader review of changes made while access was available, not simply credential reset and re-enable.

Stage 5 — consider the containment options

Response optionPurpose to consider
Block / disable accountPrevent normal account use while investigation and recovery continue.
Revoke sessionsInterrupt existing authenticated session access according to platform behaviour.
Reset credentialsReplace credentials believed to be exposed.
Review authentication methodsIdentify unauthorised or attacker-controlled methods.
Review privileged accessRemove or control unnecessary elevated capability according to procedure.
Review OAuth / app relationshipsIdentify persistence or access that may not depend on normal user sign-in.
Contain related devicesAddress endpoints that may still provide attacker access.

One action may not be enough

Identity containment often uses several coordinated controls. The exact response depends on the evidence, platform behaviour and organisational playbook.

Containment and recovery are different

Stopping current access is containment. Restoring the identity safely — including credentials, methods, permissions and trusted devices — belongs to the recovery process.

Stage 6 — investigate persistence before declaring success

CHECK FOR: Unexpected MFA methods Unexpected passkeys / authentication methods OAuth consent / grants Suspicious applications Mailbox rules / forwarding Delegated mailbox access Privileged role changes New credentials or secrets Additional compromised devices Other active sessions WHY? AN ATTACKER MAY HAVE CREATED A SECOND WAY BACK IN.

Password reset is not a universal reset button

If the attacker established another authentication method, application permission or persistence mechanism, changing the password alone may not address every access path.

Look for what changed after compromise

Authentication methods, application grants, mailbox configuration and privilege changes made after the suspected access time deserve particular attention.

Stage 7 — assess business impact

BEFORE DISABLING, ASK: Who uses this account? What business process depends on it? Is it tied to automated workflows? Is the user currently performing critical work? Can the user operate through an alternative account? Will disabling interrupt finance / production / customer services? Who needs to approve disruption? THEN ASK THE OTHER SIDE: WHAT HAPPENS IF ATTACKER ACCESS CONTINUES?

Business impact is part of the decision

Identity containment can interrupt work immediately. That consequence should be understood and coordinated — but it should not become a reason to leave credible attacker access active indefinitely.

High-value accounts may justify faster action

The potential impact of attacker access can outweigh the inconvenience of temporary account disruption, particularly when sensitive data or privileged capability is involved.

Stage 8 — preserve identity evidence

WHEN TIME AND PROCEDURE ALLOW, RECORD: Relevant alert / incident IDs Account identifiers Sign-in context Session evidence IP addresses Devices User agents Authentication methods Privilege state OAuth / application relationships Mailbox changes Cloud activity Timeline timestamps Containment decision and approver CONTAINMENT CHANGES STATE. PRESERVE WHAT YOU NEED TO EXPLAIN THE INCIDENT LATER.

Record before and after

Capture enough evidence to show the identity's relevant state before containment and the actions taken during response. This helps later investigators reconstruct what changed.

Do not delay urgent containment for perfect documentation

If active access presents unacceptable risk, follow emergency response procedures. Record what could not be preserved and why.

Stage 9 — make the decision

CURRENT EVIDENCE: ✓ Endpoint compromise confirmed ✓ Device already isolated ✓ Cloud activity continued afterwards ✓ Sensitive SharePoint access ✓ Mailbox activity ✓ Existing session concern ✓ Finance data exposure possible BUSINESS CONTEXT: mia@contoso.com is a human finance account. No critical automated service dependency identified. RISK OF CONTAINMENT: Temporary loss of user access Finance workflow interruption RISK OF DELAY: Continued cloud access Data exposure Mailbox abuse Additional persistence Further compromise DECISION: INITIATE IDENTITY CONTAINMENT ACCORDING TO APPROVED PROCEDURE. THE RESPONSE SHOULD ADDRESS THE ACCOUNT, ACTIVE SESSIONS AND OTHER IDENTIFIED ACCESS PATHS.

Explain the decision

The incident record should state why identity containment was necessary, what evidence supported it, which controls were selected and what operational impact was expected.

Use the least ambiguous language

Rather than writing “user disabled because hacked,” document the actual evidence and response: “Identity containment initiated after suspicious cloud activity continued following endpoint isolation.”

Stage 10 — verify containment

IDENTITY CONTAINMENT INITIATED ↓ VERIFY ACCOUNT STATE ↓ VERIFY SESSION RESPONSE ↓ WATCH CLOUD ACTIVITY ↓ CHECK OTHER DEVICES ↓ CHECK APPLICATION ACCESS ↓ CHECK AUTHENTICATION METHODS ↓ REASSESS IF SUSPICIOUS ACTIVITY CONTINUES: THE ACCOUNT DISABLEMENT DID NOT ADDRESS THE WHOLE ACCESS PATH.

Containment must be observed

After response actions, monitor the relevant telemetry for continued activity. A containment request is not the same thing as evidence that attacker access has ended.

Continued activity is a clue

If activity persists, investigate whether another identity, session, application, device or permission relationship is still providing access.

Example identity containment note

ACCOUNT: mia@contoso.com DECISION: Identity containment initiated according to approved incident-response procedure. RATIONALE: Cloud activity continued after the associated endpoint was isolated. Sensitive SharePoint access and mailbox activity were observed during the incident window. CURRENT RISK: Existing session or another access path may still permit cloud activity. BUSINESS IMPACT: Temporary interruption to the user's finance access. No critical automated dependency identified. RESPONSE FOCUS: Contain account access. Address relevant active sessions. Review authentication methods. Review OAuth / application relationships. Scope other devices and identities. NEXT: Verify containment through telemetry and continue investigating any activity that remains.

Lesson 63 key takeaways

  • Define the access you need to stop before choosing the containment action.
  • Identity containment can involve accounts, credentials, sessions, authentication methods, privilege and application access.
  • Endpoint isolation does not automatically contain cloud identity activity.
  • No new interactive sign-in does not mean cloud access has stopped.
  • Privilege and access to sensitive data increase potential blast radius.
  • Account disablement may need to be combined with other approved containment controls.
  • Password reset alone may not address sessions, OAuth access or newly established authentication methods.
  • Investigate persistence mechanisms created after suspected compromise.
  • Consider business impact, but also state the risk of leaving attacker access available.
  • Preserve identity evidence before state-changing actions when circumstances allow.
  • Document why containment was chosen and what controls were applied.
  • Verify the result through telemetry rather than assuming the incident is contained.

Module 7 — Incident Response: Containment, Evidence & Escalation

Lesson 63 contained the identity. Lesson 64 focuses on a question that must often be answered before remediation changes the environment: which evidence must be preserved?

Next: Lesson 64 — What Evidence Must We Preserve?

Continue your SOC Analyst training

Module 3 focuses on identity incidents, authentication, MFA, privilege, sessions and application access.

When should a SOC disable a compromised user account?

Lesson 63 of the Agent Foskett SOC Analyst Academy teaches analysts how to assess identity containment options and consequences when a compromised account remains active across Microsoft cloud services.

Identity containment, sessions, MFA and cloud persistence

Learn how to evaluate active sessions, authentication methods, privilege, OAuth application access, business impact and cloud activity before choosing and verifying identity containment actions.