Detection rules › Sigma
Suspicious modification of a computer account SPN
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
| Tactic | Techniques |
|---|---|
| Persistence | T1098 Account Manipulation |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 4742 | A computer account was changed. |
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 filterStage 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.
| Field | Kind | Excluded values |
|---|---|---|
ServicePrincipalNames | eq | - |
ServicePrincipalNames | match | GC/ |
SubjectUserName | ends_with | $ |