Skip to content
Threat Feed
medium advisory

Detection of Local Group Discovery via WMIC

Adversaries use wmic.exe to enumerate local groups on Windows endpoints to identify targets for privilege escalation and lateral movement.

This brief details a reconnaissance technique where adversaries utilize the Windows Management Instrumentation Command-line (WMIC) tool to perform local group discovery. By executing specific queries via wmic.exe, threat actors can map out existing user groups on a compromised system. This activity is a common precursor to more advanced operations, such as identifying accounts with excessive privileges for lateral movement or targeting specific users for credential theft and privilege escalation. Defenders should focus on command-line telemetry to distinguish this reconnaissance behavior from legitimate administrative troubleshooting.

Impact

Successful execution of this discovery technique provides attackers with critical visibility into the host environment's security structure. By identifying privileged groups, attackers can refine their path toward persistence and further unauthorized access, effectively lowering the barrier for subsequent privilege escalation or lateral movement across the network.

Recommendation

Detection engineering teams should focus on identifying suspicious command-line patterns related to group enumeration.

  • Deploy the provided Sigma rule to detect wmic.exe usage aimed at group enumeration.
  • Baseline administrative usage of WMIC within the environment to reduce false positives from system administrators or automated management scripts.
  • Ensure that EDR or Sysmon telemetry is configured to capture full command-line arguments to facilitate this detection.

Immediate actions

Deploy Sigma detection rule for wmic group discovery

Detection Engineering 48h

Threat Hunt

Search for historical execution of 'wmic group get name' across the fleet

T1069.001 medium high confidence convert to detection

Data: Process creation logs

Detection coverage 1

Detect WMIC Local Group Discovery

medium

Detects the use of wmic.exe to enumerate local groups by monitoring for the 'group get name' command line pattern

sigma tactics: discovery techniques: T1069.001 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →