Skip to content
LessIT

Defender for Endpoint

Investigate a Simulated Ransomware Attack

Respond to a simulated ransomware incident in Microsoft Defender for Endpoint. Analyze the device timeline, trace the process tree, use Live Response for remote forensics, isolate the compromised device, hunt for lateral movement, remediate the threat, and document findings for an incident report.

Intermediate 120 min 15 steps

Where it fits: lab 1 of 3

Respond to endpoint threats and coexist with other antivirus. Investigate a ransomware attack, isolate devices without breaking management tools, and run Defender next to a third-party antivirus.

  1. Investigate a Simulated Ransomware Attack 120 min
  2. Configure Isolation Exclusions in Defender for Endpoint 45 min
  3. Defender AV Modes, MDA Integration & Third-Party AV Coexistence 3 h

What this lab covers

Ransomware remains one of the most destructive cyber threats facing organizations, encrypting critical data and demanding payment for recovery. Microsoft Defender for Endpoint provides deep visibility into the entire attack chain: from initial access through execution, persistence, lateral movement, and impact. This lab walks you through a complete ransomware investigation workflow using MDE's incident queue, device timeline, process tree, Live Response, and advanced hunting. You will practice the end-to-end response lifecycle: detect, investigate, contain, remediate, and document.

The enterprise scenario

Scenario: Fabrikam Manufacturing operates 200 Windows workstations across two production facilities and a corporate office.

A SOC analyst receives a high-severity alert indicating ransomware behavior detected on a workstation in the engineering department. The SOC team must trace the full attack chain: how the attacker gained initial access, what processes executed, whether lateral movement occurred, and how many devices are affected. Production systems are at risk; rapid containment is critical to prevent encryption from spreading to file servers and SCADA workstations.

What you will learn

  • How the ransomware attack lifecycle maps to MITRE ATT&CK tactics
  • How to trigger and investigate a safe ransomware simulation in MDE
  • How to use the device timeline and process tree to reconstruct an attack chain
  • How to collect investigation packages and use Live Response for remote forensics
  • How to isolate a compromised device and hunt for lateral movement with KQL
  • How to remediate threats by quarantining files, stopping processes, and removing persistence
  • How to document findings and produce an incident report

Before you start

  • Licensing: Microsoft Defender for Endpoint Plan 2 (or Microsoft 365 E5 / E5 Security)
  • Devices: At least one Windows 10/11 or Windows Server 2019/2022/2025 device onboarded to MDE with healthy sensor status
  • Portal Access: Security Administrator or Security Operator role in security.microsoft.com
  • Live Response: Live Response must be enabled under Settings > Endpoints > Advanced features
  • Network Isolation: Device isolation capability requires MDE Plan 2 and onboarded devices
  • Advanced Hunting: Familiarity with basic KQL syntax for threat hunting queries
  • Test Device: A dedicated test VM (non-production) for running safe simulations ยท never use production devices
  • Network: Outbound HTTPS (443) connectivity to MDE cloud service URLs

The 15 steps

  1. Understand the Ransomware Attack Lifecycle
  2. Review MDE Ransomware Detection Capabilities
  3. Trigger a Safe Ransomware Simulation
  4. Investigate the Alert in the Incidents Queue
  5. Analyze the Device Timeline for the Attack Chain
  6. Examine the Process Tree to Trace Execution Flow
  7. Collect an Investigation Package from the Affected Device
  8. Use Live Response to Connect to the Device Remotely
  9. Run Forensic Commands via Live Response
  10. Isolate the Affected Device from the Network
  11. Hunt for Lateral Movement Indicators Using KQL
  12. Check for Persistence Mechanisms
  13. Remediate: Quarantine Files, Stop Processes, Remove Persistence
  14. Release Device from Isolation After Remediation
  15. Document Findings and Create an Incident Report

Related labs