Detection rules › Sigma

Suspicious SPN enumeration previous to Kerberoasting attack (native commands)

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

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

Known false positives

  • Administrators

MITRE ATT&CK coverage

Telemetry coverage

Rule body

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

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -Q corpus 9 (sigma 6, kusto 2, splunk 1)
  • /Q corpus 8 (sigma 7, splunk 1)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \setspn.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\setspn.exe"