Detection rules › Sigma
Potential SPN Enumeration Via Setspn.EXE
Detects service principal name (SPN) enumeration used for Kerberoasting
Known false positives
- Administration activity
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Credential Access |
Telemetry coverage
| Provider | Record / event type |
|---|---|
| Sysmon | Event ID 1: Process creation |
Rule body
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
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
CommandLine | match |
| field:"CommandLine" kind:match |
Description | match |
| field:"Description" kind:match |
Image | ends_with |
| field:"Image" kind:ends_with value:"\setspn.exe" |
OriginalFileName | eq |
| field:"OriginalFileName" kind:eq value:"setspn.exe" |