Detection rules › Sigma

Service Installation in Suspicious Folder

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

Detects service installation in suspicious folder appdata

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Service Installation in Suspicious Folder
id: 5e993621-67d4-488a-b9ae-b420d08b96cb
status: test
description: Detects service installation in suspicious folder appdata
author: pH-T (Nextron Systems)
references:
    - Internal Research
date: 2022-03-18
modified: 2024-01-18
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:
            - '\AppData\'
            - '\\\\127.0.0.1'
            - '\\\\localhost'
    filter_optional_zoom:
        ServiceName: 'Zoom Sharing Service'
        ImagePath|contains: ':\Program Files\Common Files\Zoom\Support\CptService.exe'
    condition: selection and not 1 of filter_optional_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_optional_*

Stage 1: selection

selection:
    Provider_Name: 'Service Control Manager'
    EventID: 7045
    ImagePath|contains:
        - '\AppData\'
        - '\\\\127.0.0.1'
        - '\\\\localhost'

Stage 2: not filter_optional_zoom

filter_optional_zoom:
    ServiceName: 'Zoom Sharing Service'
    ImagePath|contains: ':\Program Files\Common Files\Zoom\Support\CptService.exe'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
ImagePathmatch:\Program Files\Common Files\Zoom\Support\CptService.exe
ServiceNameeqZoom Sharing Service

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
  • \AppData\
  • \\\\127.0.0.1
  • \\\\localhost
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)