Service Reconnaissance Via Wmic.EXE
An adversary might use WMI to check if a certain remote service is running on a remote device. When the test completes, a service information will be displayed on the screen if it exists. A common feedback message is that "No instance(s) Available" if the service queried is not running. A common error message is "Node - (provided IP or default) ERROR Description =The RPC server is unavailable" if the provided remote host is unreachable
Sigma rule (View on GitHub)
1title: Service Reconnaissance Via Wmic.EXE
2id: 76f55eaa-d27f-4213-9d45-7b0e4b60bbae
3related:
4 - id: 68bcd73b-37ef-49cb-95fc-edc809730be6
5 type: similar
6status: test
7description: |
8 An adversary might use WMI to check if a certain remote service is running on a remote device.
9 When the test completes, a service information will be displayed on the screen if it exists.
10 A common feedback message is that "No instance(s) Available" if the service queried is not running.
11 A common error message is "Node - (provided IP or default) ERROR Description =The RPC server is unavailable" if the provided remote host is unreachable
12references:
13 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1047/T1047.md
14 - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/wmic
15author: frack113, Nasreddine Bencherchali (Nextron Systems)
16date: 2023-02-14
17tags:
18 - attack.execution
19 - attack.t1047
20logsource:
21 category: process_creation
22 product: windows
23detection:
24 selection_img:
25 - Image|endswith: '\WMIC.exe'
26 - OriginalFileName: 'wmic.exe'
27 selection_cli:
28 CommandLine|contains: 'service'
29 condition: all of selection_*
30falsepositives:
31 - Unknown
32level: medium
References
Related rules
- Application Removed Via Wmic.EXE
- Application Terminated Via Wmic.EXE
- Blue Mockingbird
- Blue Mockingbird - Registry
- Computer System Reconnaissance Via Wmic.EXE