Detection rules › Sigma

Powershell Detect Virtualization Environment

Severity
medium
Author
frack113, Duc.Le-GTSC
Source
upstream

Adversaries may employ various system checks to detect and avoid virtualization and analysis environments. This may include changing behaviors based on the results of checks for the presence of artifacts indicative of a virtual machine environment (VME) or sandbox

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1497.001 Virtualization/Sandbox Evasion: System Checks
DiscoveryT1497.001 Virtualization/Sandbox Evasion: System Checks

Event coverage

ProviderEvent IDTitle
PowerShell4104Creating Scriptblock text (MessageNumber of MessageTotal).

Stages and Predicates

Stage 1: all of selection_action

or:
ScriptBlockText|contains: Get-WmiObject
ScriptBlockText|contains: gwmi

Stage 2: all of selection_module

or:
ScriptBlockText|contains: MSAcpi_ThermalZoneTemperature
ScriptBlockText|contains: Win32_ComputerSystem

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ScriptBlockTextmatch
  • Get-WmiObject corpus 2 (sigma 2)
  • MSAcpi_ThermalZoneTemperature
  • Win32_ComputerSystem
  • gwmi corpus 2 (sigma 2)

Neighbors

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.