Detection rules › Sigma
Anonymous login (RottenPotatoNG)
Detects scenarios where an attacker abuse RPC, NTLM relay and others components to escalate privileges.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Privilege Escalation | T1134.001 Access Token Manipulation: Token Impersonation/Theft |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Security-Auditing | Event ID 4624 | An account was successfully logged on. |
| Security-Auditing | Event ID 4688 | A new process has been created. |
Rule body yaml
title: Anonymous login (RottenPotatoNG)
description: Detects scenarios where an attacker abuse RPC, NTLM relay and others components to escalate privileges.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0004-Privilege%20Escalation/T1134-Access%20Token%20Manipulation
- https://github.com/breenmachine/RottenPotatoNG
- https://jlajara.gitlab.io/others/2020/11/22/Potatoes_Windows_Privesc.html
- https://foxglovesecurity.com/2016/09/26/rotten-potato-privilege-escalation-from-service-accounts-to-system/
tags:
- attack.privilege_escalation
- attack.t1134.001
author: mdecrevoisier
status: experimental
logsource:
product: windows
service: security
detection:
selection_login:
EventID: 4624
TargetUserSid: S-1-5-7 # ANONYMOUS LOGON
LogonType: 3
AuthenticationPackageName: NTLM
IpAddress: '127.0.0.1'
#LmPackageName NTLM V1
selection_process:
EventID: 4688
SubjectUserSid: S-1-5-18
NewProcessName|endswith: '\cmd.exe'
condition: selection_login and selection_process
falsepositives:
- None
level: high
Stages and Predicates
Stage 0: condition
selection_login and selection_processStage 1: selection_login
selection_login:
EventID: 4624
TargetUserSid: S-1-5-7
LogonType: 3
AuthenticationPackageName: NTLM
IpAddress: '127.0.0.1'
Stage 2: selection_process
selection_process:
EventID: 4688
SubjectUserSid: S-1-5-18
NewProcessName|endswith: '\cmd.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.
| Field | Kind | Values |
|---|---|---|
AuthenticationPackageName | eq |
|
IpAddress | eq |
|
LogonType | eq |
|
NewProcessName | ends_with |
|
SubjectUserSid | eq |
|
TargetUserSid | eq |
|