Detectionmediumtest

Suspicious Hyper-V Cmdlets

Adversaries may carry out malicious operations using a virtual instance to avoid detection

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-04-0942d36aa1-3240-4db0-8257-e0118dcdd9cdwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains:
            - New-VM
            - Set-VMFirmware
            - Start-VM
    condition: selection
False Positives

Legitimate PowerShell scripts

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

Rule Metadata
Rule ID
42d36aa1-3240-4db0-8257-e0118dcdd9cd
Status
test
Level
medium
Type
Detection
Created
2022-04-09
Path
rules/windows/powershell/powershell_script/posh_ps_susp_hyper_v_condlet.yml
Raw Tags
attack.stealthattack.t1564.006
View on GitHub