Detection rules › Sigma

Suspicious Service Installation

Status
test
Severity
high
Log source
product windows, service system
Author
pH-T (Nextron Systems), Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious service installation commands

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Suspicious Service Installation
id: 1d61f71d-59d2-479e-9562-4ff5f4ead16b
related:
    - id: ca83e9f3-657a-45d0-88d6-c1ac280caf53
      type: obsolete
    - id: 26481afe-db26-4228-b264-25a29fe6efc7
      type: similar
status: test
description: Detects suspicious service installation commands
references:
    - Internal Research
author: pH-T (Nextron Systems), Florian Roth (Nextron Systems)
date: 2022-03-18
modified: 2023-12-04
tags:
    - attack.persistence
    - attack.privilege-escalation
    - car.2013-09-005
    - attack.t1543.003
logsource:
    product: windows
    service: system
detection:
    selection:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
        ImagePath|contains:
            - ' -nop '
            - ' -sta '
            - ' -w hidden '
            - ':\Temp\'
            - '.downloadfile(' # PowerShell download command
            - '.downloadstring(' # PowerShell download command
            - '\ADMIN$\'
            - '\Perflogs\'
            - '&&'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Provider_Name: 'Service Control Manager'
    EventID: 7045
    ImagePath|contains:
        - ' -nop '
        - ' -sta '
        - ' -w hidden '
        - ':\Temp\'
        - '.downloadfile('
        - '.downloadstring('
        - '\ADMIN$\'
        - '\Perflogs\'
        - '&&'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ImagePathmatch
  • -nop
  • -sta
  • -w hidden
  • && corpus 4 (sigma 4)
  • .downloadfile(
  • .downloadstring(
  • :\Temp\
  • \ADMIN$\
  • \Perflogs\
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)