Suspicious Enumeration Commands Spawned via WMIPrvSE
This rule identifies suspicious activity where enumeration commands are spawned via the Windows Management Instrumentation Provider Service (WMIPrvSE) to gather system and network information.
Attackers may abuse the Windows Management Instrumentation (WMI) to execute commands for reconnaissance purposes. This involves spawning native Windows host and network enumeration commands via the Windows Management Instrumentation Provider Service (WMIPrvSE). The goal is to gather information about the system and network environment for situational awareness and potential lateral movement. This activity often occurs after initial access and can be a sign of malicious actors attempting to map the network and identify valuable targets. The rule detects execution of enumeration commands such as arp.exe, ipconfig.exe, and net.exe by wmiprvse.exe, excluding benign use cases to highlight potentially malicious activity.
Attack Chain
- The attacker gains initial access to a Windows system (e.g., via phishing or exploiting a vulnerability).
- The attacker leverages WMI to execute reconnaissance commands. This is achieved by invoking WMIPrvSE to run commands via
Win32_Processcreation. - WMIPrvSE spawns enumeration tools such as
ipconfig.exeto gather network configuration. net.exeis executed by WMIPrvSE to discover domain users and groups.systeminfo.exeis executed by WMIPrvSE to collect detailed system information, including OS version and installed hotfixes.tasklist.exeis executed to identify running processes on the system.- The gathered information is used to plan further actions, such as lateral movement or privilege escalation.
Impact
Successful exploitation leads to the attacker gaining detailed knowledge of the target system and network environment. This information can be used to facilitate lateral movement, identify valuable data, and ultimately compromise the organization's assets. The impact includes potential data breaches, system compromise, and disruption of services. If the attacker successfully enumerates the environment, it increases the likelihood of a successful attack campaign.
Recommendation
- Implement the provided Sigma rules to detect enumeration commands spawned via WMIPrvSE (
process_creationlogs). - Review process command line details to understand the specific enumeration command executed and its arguments, focusing on the process.command_line field.
- Monitor
process_creationevents with a parent process name ofwmiprvse.exefor known enumeration tools (e.g.,ipconfig.exe,net.exe,systeminfo.exe). - Correlate the event with other logs or alerts from the same host to identify any preceding or subsequent suspicious activities, such as lateral movement or privilege escalation attempts.
Detection coverage 2
Enumeration Command Spawned via WMIPrvSE
mediumDetects native Windows host and network enumeration commands spawned by WMIPrvSE.
Suspicious SC.exe Usage via WMIPrvSE
lowDetects specific usage patterns of sc.exe (Service Control) spawned via WMIPrvSE that are often indicative of malicious activity.
Detection queries are available on the platform. Get full rules →