Sigma rule: Powershell Detect Virtualization Environment

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-141d9f745055, updated 2022-03-03T00:00:00.000Z.

Rule

Title
Powershell Detect Virtualization Environment
Status
test
Level
medium
Author
frack113, Duc.Le-GTSC
Date
2021-08-03
Modified
2022-03-03
File
rules/windows/powershell/powershell_script/posh_ps_detect_vm_env.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection_action:
    ScriptBlockText|contains:
        - Get-WmiObject
        - gwmi
selection_module:
    ScriptBlockText|contains:
        - MSAcpi_ThermalZoneTemperature
        - Win32_ComputerSystem
condition: all of selection*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.discovery
  • attack.stealth
  • attack.t1497.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_detect_vm_env.yml

Sources and licences

  • SigmaHQ

    "Powershell Detect Virtualization Environment" by frack113, Duc.Le-GTSC (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_detect_vm_env.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Powershell Detect Virtualization Environment",
entity page, dataset version ref-141d9f745055, updated 2022-03-03T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d93129cd-1ee0-479f-bc03-ca6f129882e3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule d93129cd-1ee0-479f-bc03-ca6f129882e3, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.