Windows Management Instrumentation (WMI) is a Windows administration feature that provides a uniform environment for local and remote access to Windows system components. It relies on the WMI service for local and remote access and the server message block (SMB) (Citation: Wikipedia SMB) and Remote Procedure Call Service (RPCS) (Citation: TechNet RPC) for remote access. RPCS operates over port 135. (Citation: MSDN WMI)An adversary can use WMI to interact with local and remote systems and use it as a means to perform many tactic functions, such as gathering information for Discovery and remote Execution of files as part of Lateral Movement. (Citation: FireEye WMI 2015)
WMI List User Accounts
Supported Platforms: Windows
wmic useraccount get /ALL
WMI List Processes
Supported Platforms: Windows
wmic process get caption,executablepath,commandline
WMI List Software
Supported Platforms: Windows
wmic qfe get description,installedOn /format:csv
WMI List Remote Services
Supported Platforms: Windows
Name | Description | Type | Default Value |
---|---|---|---|
node | Ip Address | String | 192.168.0.1 |
service_search_string | Name Of Service | String | sql server |
wmic /node:"#{node}" service where (caption like "%#{service_search_string} (%")