Detection rules › Sigma

Anonymous login (RottenPotatoNG)

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

Detects scenarios where an attacker abuse RPC, NTLM relay and others components to escalate privileges.

MITRE ATT&CK coverage

Event coverage

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_process

Stage 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.

FieldKindValues
AuthenticationPackageNameeq
  • NTLM corpus 9 (sigma 5, elastic 2, splunk 1, kusto 1)
IpAddresseq
  • 127.0.0.1 corpus 5 (sigma 4, kusto 1)
LogonTypeeq
  • 3 corpus 40 (splunk 13, sigma 12, elastic 9, kusto 6)
NewProcessNameends_with
  • \cmd.exe corpus 130 (sigma 130)
SubjectUserSideq
  • S-1-5-18 corpus 4 (sigma 2, elastic 1, splunk 1)
TargetUserSideq
  • S-1-5-7 corpus 3 (sigma 3)