EXPLORE
← Back to Explore
sigmamediumHunting

Service Started/Stopped Via Wmic.EXE

Detects usage of wmic to start or stop a service

MITRE ATT&CK

execution

Detection Query

selection_img:
  - OriginalFileName: wmic.exe
  - Image|endswith: \WMIC.exe
selection_cli:
  CommandLine|contains|all:
    - " service "
    - " call "
  CommandLine|contains:
    - stopservice
    - startservice
condition: all of selection_*

Author

Nasreddine Bencherchali (Nextron Systems)

Created

2022-06-20

Data Sources

windowsProcess Creation Events

Platforms

windows

Tags

attack.executionattack.t1047
Raw Content
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