Detection rules › Sigma

Suspicious SPN enumeration previous to Kerberoasting attack (native commands)

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

Detects scenarios where an attacker attempts to retrieve SPN using commandline and native tools.

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Suspicious SPN enumeration previous to Kerberoasting attack (native commands)
description: Detects scenarios where an attacker attempts to retrieve SPN using commandline and native tools.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0007-Discovery/T1087-Account%20discovery
- https://github.com/nidem/kerberoast
- https://github.com/cyberark/RiskySPN
- https://pentestlab.blog/2018/06/04/spn-discovery/
- https://adsecurity.org/?p=3458
- https://www.security.com/threat-intelligence/us-china-espionage
tags:
- attack.account_discovery
- attack.t1087.002 # Account Discovery: Domain Account
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection: # full command : 'setspn -T my_domain -Q */*'
  selection:
    NewProcessName|endswith: \setspn.exe
    CommandLine|contains: # Perform query on the specified domain
      - '/Q'
      - '-Q'
  condition: selection
falsepositives:
- Administrators
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith: \setspn.exe
  CommandLine|contains:
    - '/Q'
    - '-Q'

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
CommandLinematch
  • -Q corpus 9 (sigma 6, kusto 2, splunk 1)
  • /Q corpus 8 (sigma 7, splunk 1)
NewProcessNameends_with
  • \setspn.exe corpus 3 (sigma 3)