Detection rules › Sigma

Potential SPN Enumeration Via Setspn.EXE

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Markus Neis, keepwatch
Source
github.com/SigmaHQ/sigma

Detects service principal name (SPN) enumeration used for Kerberoasting

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential SPN Enumeration Via Setspn.EXE
id: 1eeed653-dbc8-4187-ad0c-eeebb20e6599
status: test
description: Detects service principal name (SPN) enumeration used for Kerberoasting
references:
    - https://web.archive.org/web/20200329173843/https://p16.praetorian.com/blog/how-to-use-kerberoasting-t1208-for-privilege-escalation
    - https://www.praetorian.com/blog/how-to-use-kerberoasting-t1208-for-privilege-escalation/?edition=2019
author: Markus Neis, keepwatch
date: 2018-11-14
modified: 2023-10-23
tags:
    - attack.credential-access
    - attack.t1558.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_pe:
        - Image|endswith: '\setspn.exe'
        - OriginalFileName: 'setspn.exe'
        - Description|contains|all:
              - 'Query or reset the computer'
              - 'SPN attribute'
    selection_cli:
        CommandLine|contains:
            - ' -q '
            - ' /q '
    condition: all of selection_*
falsepositives:
    - Administration activity
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_pe

selection_pe:
    - Image|endswith: '\setspn.exe'
    - OriginalFileName: 'setspn.exe'
    - Description|contains|all:
          - 'Query or reset the computer'
          - 'SPN attribute'

Stage 2: selection_cli

selection_cli:
    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 2 (sigma 2)
  • /q corpus 2 (sigma 1, splunk 1)
Descriptionmatch
  • Query or reset the computer
  • SPN attribute
Imageends_with
  • \setspn.exe corpus 3 (sigma 3)
OriginalFileNameeq
  • setspn.exe corpus 2 (sigma 1, splunk 1)