Windows PowerView SPN Discovery
The following analytic detects the execution of the `Get-DomainUser` or `Get-NetUser` PowerShell cmdlets with the `-SPN` parameter, indicating the use of PowerView for SPN discovery. It leverages PowerShell Script…
Description
The following analytic detects the execution of the `Get-DomainUser` or `Get-NetUser` PowerShell cmdlets with the `-SPN` parameter, indicating the use of PowerView for SPN discovery. It leverages PowerShell Script Block Logging (EventCode=4104) to identify these specific commands. This activity is significant as it suggests an attempt to enumerate domain accounts associated with Service Principal Names (SPNs), a common precursor to Kerberoasting attacks. If confirmed malicious, this could allow an attacker to identify and target accounts for credential theft, potentially leading to unauthorized access and privilege escalation within the network.
Detection logic
Detection requirements
- Platform
- Windows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- powershell_script_block_logging_4104
Known benign triggers
- False positive may include Administrators using PowerView for troubleshooting and management.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| attack.mitre.org/techniques/T1558/003 | 2 |
| book.hacktricks.xyz/windows-hardening/active-directory-methodology/kerberoast | 2 |
| github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1 | 2 |
| www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/t1208-kerberoasting | 7 |
From the source
- At source
- Open at source
- Upstream identifier
- a7093c28-796c-4ebb-9997-e2c18b870837
- Tagged by the source as
- Active Directory Kerberos AttacksCISA AA23-347AInterlock RansomwareRhysida RansomwareEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1