Sigma rule: Potential SPN Enumeration Via Setspn.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-75b51785ee8e, updated 2023-10-23T00:00:00.000Z.

Rule

Title
Potential SPN Enumeration Via Setspn.EXE
Status
test
Level
medium
Author
Markus Neis, keepwatch
Date
2018-11-14
Modified
2023-10-23
File
rules/windows/process_creation/proc_creation_win_setspn_spn_enumeration.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects service principal name (SPN) enumeration used for Kerberoasting

Log source

product
windows
category
process_creation

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_*

False positives (as the rule lists them)

  • Administration activity

Tags

  • attack.credential-access
  • attack.t1558.003

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_setspn_spn_enumeration.yml

Sources and licences

  • SigmaHQ

    "Potential SPN Enumeration Via Setspn.EXE" by Markus Neis, keepwatch (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_setspn_spn_enumeration.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Potential SPN Enumeration Via Setspn.EXE",
entity page, dataset version ref-75b51785ee8e, updated 2023-10-23T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1eeed653-dbc8-4187-ad0c-eeebb20e6599 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1eeed653-dbc8-4187-ad0c-eeebb20e6599, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.