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

Telemetry coverage

Rule body

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

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
ImagePathmatch:\Program Files\Common Files\Zoom\Support\CptService.exeexcludes:ImagePath field:"ImagePath" value:":\Program Files\Common Files\Zoom\Support\CptService.exe"
ServiceNameeqZoom Sharing Serviceexcludes:ServiceName field:"ServiceName" value:"Zoom Sharing Service"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
ImagePathmatch
  • \AppData\
  • \\\\127.0.0.1
  • \\\\localhost
field:"ImagePath" kind:match
Provider_Nameeq
  • Service Control Manager corpus 50 (sigma 50)
field:"Provider_Name" kind:eq value:"Service Control Manager"