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.
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.
- Investigate a Simulated Ransomware Attack 120 min
- Configure Isolation Exclusions in Defender for Endpoint 45 min
- 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
- Understand the Ransomware Attack Lifecycle
- Review MDE Ransomware Detection Capabilities
- Trigger a Safe Ransomware Simulation
- Investigate the Alert in the Incidents Queue
- Analyze the Device Timeline for the Attack Chain
- Examine the Process Tree to Trace Execution Flow
- Collect an Investigation Package from the Affected Device
- Use Live Response to Connect to the Device Remotely
- Run Forensic Commands via Live Response
- Isolate the Affected Device from the Network
- Hunt for Lateral Movement Indicators Using KQL
- Check for Persistence Mechanisms
- Remediate: Quarantine Files, Stop Processes, Remove Persistence
- Release Device from Isolation After Remediation
- Document Findings and Create an Incident Report
Related labs
Onboard a Windows Server Fleet to MDE
Plan deployment rings, create onboarding packages via Group Policy and Intune, deploy to Windows Server 2019/2022/2025, verify sensor health, and troubleshoot onboarding failures across your enterprise fleet.
Configure Attack Surface Reduction Rules
Deploy ASR rules in audit mode via Intune, analyze impact reports, identify false positives, transition to block mode, configure per-rule exclusions, and monitor effectiveness with advanced hunting queries.
Network Protection & Custom Indicators for IP/URL/Domain
Deploy network protection and custom IP, URL and domain indicators, handle SmartScreen dependencies and QUIC, configure warn and block modes, resolve policy conflicts and hunt network protection events with KQL.
Device Control: USB and Removable Storage Management
Deploy deny-all, allow-authorized and read-only device control policies, target devices by instance path or VID and PID, scope policies to users, and monitor USB activity in advanced hunting.