Sigma Rule Library

Service Started/Stopped Via Wmic.EXE

Detects usage of wmic to start or stop a service

View on GitHubOpen raw file

Detection logic

selection_img

- OriginalFileName: wmic.exe
- Image|endswith: \WMIC.exe

selection_cli

CommandLine|contains|all:
  - " service "
  - " call "
CommandLine|contains:
  - stopservice
  - startservice

Condition

all of selection_*

Raw YAML

title: Service Started/Stopped Via Wmic.EXE
id: 0b7163dc-7eee-4960-af17-c0cd517f92da
status: test
description: Detects usage of wmic to start or stop a service
references:
    - https://sushant747.gitbooks.io/total-oscp-guide/content/privilege_escalation_windows.html
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-06-20
modified: 2023-02-14
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 '
            - ' call '
        CommandLine|contains:
            - 'stopservice'
            - 'startservice'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_wmic_service_manipulation/info.yml

False positives

  • Unknown

References

Similar rules