Possible Unquoted Service Path Recon Through Wmic.EXE (via process_creation)

This rule detects known WMI recon method to look for unquoted service paths using wmic. Frequently used by pentester and adversary enumeration scripts

SigmamediumWindowsv1
sigma
title: Possible Unquoted Service Path Recon Through Wmic.EXE (via process_creation)
id: f5574c32-1839-50a6-bf97-804aa91b48f6
status: stable
description: This rule detects known WMI recon method to look for unquoted service paths using wmic. Frequently used by pentester and adversary enumeration scripts
references:
    - https://attack.mitre.org/techniques/T1047/
    - https://github.com/nccgroup/redsnarf/blob/35949b30106ae543dc6f2bc3f1be10c6d9a8d40e/redsnarf.py
    - https://github.com/S3cur3Th1sSh1t/Creds/blob/eac23d67f7f90c7fc8e3130587d86158c22aa398/PowershellScripts/jaws-enum.ps1
    - https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/
author: Huntrule Team
date: 2026-06-07
tags:
    - attack.execution
    - attack.t1047
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - OriginalFileName: 'wmic.exe'
        - Image|endswith: '\WMIC.exe'
    selection_cli:
        CommandLine|contains|all:
            - ' service get '
            - 'name,displayname,pathname,startmode'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_wmic_recon_unquoted_service_search/info.yml

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.