Detection rules › Sigma
Potential SPN Enumeration Via Setspn.EXE
Detects service principal name (SPN) enumeration used for Kerberoasting
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Credential Access | T1558.003 Steal or Forge Kerberos Tickets: Kerberoasting |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process 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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Description | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|