Incident Response Case Study
This lab simulates a ransomware attack response scenario, including endpoint isolation, forensic analysis, and PowerShell automation for SOC workflows.
Objectives
- Detect ransomware indicators
- Isolate compromised endpoints
- Perform incident investigation
- Automate response actions
- Document findings
Prerequisites
- Microsoft Sentinel and Defender setup
- PowerShell knowledge
- Incident response procedures
Incident Scenario
A ransomware attack compromises a critical server. The lab demonstrates:
- Detection: Identifying suspicious file encryption activity
- Isolation: Blocking network access from the compromised system
- Analysis: Reviewing logs and identifying attack vector
- Response: Automating remediation through PowerShell
- Recovery: Restoring from backups
Key Automation Scripts
Isolate VM on Detection
1
2
3
4
5
6
7
8
9
$ResourceGroup = "RG-Critical"
$VMName = "CompromisedVM"
$NSGName = "NSG-Isolation"
# Create deny-all rule
New-AzNetworkSecurityRuleConfig -Name "DenyAll" `
-Protocol "*" -SourcePortRange "*" -DestinationPortRange "*" `
-SourceAddressPrefix "*" -DestinationAddressPrefix "*" `
-Access "Deny" -Priority 100 -Direction "Inbound"