Detection rules › Sigma

SCM Database Privileged Operation

Status
test
Severity
medium
Log source
product windows, service security
Author
Roberto Rodriguez @Cyb3rWard0g, Tim Shelton
Source
github.com/SigmaHQ/sigma

Detects non-system users performing privileged operation os the SCM database

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationT1548 Abuse Elevation Control Mechanism

Event coverage

Rule body yaml

title: SCM Database Privileged Operation
id: dae8171c-5ec6-4396-b210-8466585b53e9
status: test
description: Detects non-system users performing privileged operation os the SCM database
references:
    - https://threathunterplaybook.com/hunts/windows/190826-RemoteSCMHandle/notebook.html
author: Roberto Rodriguez @Cyb3rWard0g, Tim Shelton
date: 2019-08-15
modified: 2022-09-18
tags:
    - attack.privilege-escalation
    - attack.t1548
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4674
        ObjectType: 'SC_MANAGER OBJECT'
        ObjectName: 'servicesactive'
        PrivilegeList: 'SeTakeOwnershipPrivilege'
    filter:
        SubjectLogonId: '0x3e4'
        ProcessName|endswith: ':\Windows\System32\services.exe'
    condition: selection and not filter
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    EventID: 4674
    ObjectType: 'SC_MANAGER OBJECT'
    ObjectName: 'servicesactive'
    PrivilegeList: 'SeTakeOwnershipPrivilege'

Stage 2: not filter

filter:
    SubjectLogonId: '0x3e4'
    ProcessName|endswith: ':\Windows\System32\services.exe'

Exclusions

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

FieldKindExcluded values
ProcessNameends_with:\Windows\System32\services.exe
SubjectLogonIdeq0x3e4

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
ObjectNameeq
  • servicesactive
ObjectTypeeq
  • SC_MANAGER OBJECT corpus 2 (sigma 2)
PrivilegeListeq
  • SeTakeOwnershipPrivilege