Detection rules › Sigma

Suspicious Service Binary Directory

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects a service binary running in a suspicious directory

MITRE ATT&CK coverage

TacticTechniques
StealthT1202 Indirect Command Execution

Event coverage

Rule body yaml

title: Suspicious Service Binary Directory
id: 883faa95-175a-4e22-8181-e5761aeb373c
status: test
description: Detects a service binary running in a suspicious directory
references:
    - https://blog.truesec.com/2021/03/07/exchange-zero-day-proxylogon-and-hafnium/
author: Florian Roth (Nextron Systems)
date: 2021-03-09
modified: 2022-10-09
tags:
    - attack.stealth
    - attack.t1202
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|contains:
            - '\Users\Public\'
            - '\$Recycle.bin'
            - '\Users\All Users\'
            - '\Users\Default\'
            - '\Users\Contacts\'
            - '\Users\Searches\'
            - 'C:\Perflogs\'
            - '\config\systemprofile\'
            - '\Windows\Fonts\'
            - '\Windows\IME\'
            - '\Windows\addins\'
        ParentImage|endswith:
            - '\services.exe'
            - '\svchost.exe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|contains:
        - '\Users\Public\'
        - '\$Recycle.bin'
        - '\Users\All Users\'
        - '\Users\Default\'
        - '\Users\Contacts\'
        - '\Users\Searches\'
        - 'C:\Perflogs\'
        - '\config\systemprofile\'
        - '\Windows\Fonts\'
        - '\Windows\IME\'
        - '\Windows\addins\'
    ParentImage|endswith:
        - '\services.exe'
        - '\svchost.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
Imagematch
  • C:\Perflogs\
  • \$Recycle.bin corpus 2 (sigma 2)
  • \Users\All Users\
  • \Users\Contacts\ corpus 2 (sigma 2)
  • \Users\Default\ corpus 4 (sigma 4)
  • \Users\Public\ corpus 10 (sigma 10)
  • \Users\Searches\ corpus 2 (sigma 2)
  • \Windows\Fonts\ corpus 2 (sigma 2)
  • \Windows\IME\ corpus 2 (sigma 2)
  • \Windows\addins\ corpus 4 (sigma 4)
  • \config\systemprofile\ corpus 4 (sigma 4)
ParentImageends_with
  • \services.exe corpus 8 (sigma 8)
  • \svchost.exe corpus 14 (sigma 14)