Service Reconnaissance Via Wmic.EXE

 Original Source: [Sigma source]
Title: Service Reconnaissance Via Wmic.EXE
Status: test
Description: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
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1047/T1047.md
  -https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/wmic
  -https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-service
Author: frack113, Nasreddine Bencherchali (Nextron Systems)
Date: 2023-02-14
modified:2026-01-07
Tags:
  • -'attack.execution'
  • -'attack.t1047'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_img:
Image|endswith:'\WMIC.exe' OriginalFileName:'wmic.exe'   selection_cli:
    CommandLine|contains: 'service'
  filter_main_manipulation:
    CommandLine|contains:
      -'stopservice'
      -'startservice'

  filter_main_win32_methods:
    CommandLine|contains:
      -'Change'
      -'Create'
      -'Delete'
      -'PauseService'
      -'ResumeService'
      -'SetSecurityDescriptor'
      -'StartService'
      -'StopService'
      -'UserControlService'

  condition:all of selection_* and not 1 of filter_main_*
Falsepositives:
  -Unknown
Level: medium