PowerShell Virtualization Environment Discovery via WMI in ScriptBlockLogging (Windows)

Identifies PowerShell WMI queries for Win32 computer system and ACPI thermal data used to check virtualization environments.

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
frack113, Duc.Le-GTSC (SigmaHQ), DRL 1.1
Published
2021-08-03
Updated
2026-07-31

ATT&CK techniques

Defense Evasion → Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell script blocks that contain WMI calls (Get-WmiObject/gwmi) together with queries for virtualization- and system-environment related WMI classes. Adversaries use these checks to identify virtual machine or sandbox contexts and alter behavior to evade analysis. The detection relies on Windows PowerShell Script Block Logging telemetry capturing the invoked WMI cmdlets and referenced WMI class names.

Related detections9 linkedT1497.001 — drag to rearrange
Suspicious HeartCrypt Sandbox Detection DLL Load
Possible DarkCloud Geo-IP Lookup to showip.net
Suspicious Anti-VM WMI Thermal Zone Temperature Query via Command Line
Suspicious VirtualBox Registry Artifact Anti-VM Check via Command Line
Suspicious PowerShell WMI Video Controller Sandbox Evasion Check via OXLoader
Suspicious System Profiler Hardware Enumeration (via process_creation)
Suspicious Virtual Machine Detection via Get-MpComputerStatus and Win32_VideoController (via ps_script)
MacOS Sysctl Usage for System Discovery (hw., kern., machdep.)
macOS Process Execution of system_profiler for System Discovery via Specific Data Types
PowerShell Virtualization Environment Discovery via WMI in ScriptBlockLogging (Windows)
Pivot detection · T1497.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.