Detection rules › Sigma

Service Installation with Suspicious Folder Pattern

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

Detects service installation with suspicious folder patterns

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Service Installation with Suspicious Folder Pattern
id: 1b2ae822-6fe1-43ba-aa7c-d1a3b3d1d5f2
status: test
description: Detects service installation with suspicious folder patterns
references:
    - Internal Research
author: pH-T (Nextron Systems)
date: 2022-03-18
modified: 2022-03-24
tags:
    - attack.persistence
    - attack.privilege-escalation
    - car.2013-09-005
    - attack.t1543.003
logsource:
    product: windows
    service: system
detection:
    selection_eid:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
    selection_img_paths:
        - ImagePath|re: '^[Cc]:\\[Pp]rogram[Dd]ata\\.{1,9}\.exe'
        - ImagePath|re: '^[Cc]:\\.{1,9}\.exe'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_eid

selection_eid:
    Provider_Name: 'Service Control Manager'
    EventID: 7045

Stage 2: selection_img_paths

selection_img_paths:
    - ImagePath|re: '^[Cc]:\\[Pp]rogram[Dd]ata\\.{1,9}\.exe'
    - ImagePath|re: '^[Cc]:\\.{1,9}\.exe'

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
ImagePathregex_match
  • ^[Cc]:\.{1,9}.exe
  • ^[Cc]:\[Pp]rogram[Dd]ata\.{1,9}.exe
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)