Detection rules › Sigma

Suspicious modification of a computer account SPN

Status
experimental
Severity
high
Log source
product windows, service security
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker update the Service Principal Name (SPN) of a computer account in order to perform "Kerberos redirection" and escalate privileges.

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1098 Account Manipulation

Event coverage

Rule body yaml

title: Suspicious modification of a computer account SPN
description: Detects scenarios where an attacker update the Service Principal Name (SPN) of a computer account in order to perform "Kerberos redirection" and escalate privileges.
references:
- https://dirkjanm.io/krbrelayx-unconstrained-delegation-abuse-toolkit/
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1098.xxx-Account%20manipulation
tags:
- attack.persistence
- attack.t1098
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4742
  filter:
    SubjectUserName|endswith: '$'
    ServicePrincipalNames: '-'
    ServicePrincipalNames|contains: 'GC/' # covered by dedicated DCshadow rule
  condition: selection and not filter
falsepositives:
- Rare administrator modifications on computer objects
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 4742

Stage 2: not filter

filter:
  SubjectUserName|endswith: '$'
  ServicePrincipalNames: '-'
  ServicePrincipalNames|contains: 'GC/'

Exclusions

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

FieldKindExcluded values
ServicePrincipalNameseq-
ServicePrincipalNamesmatchGC/
SubjectUserNameends_with$