Windows Process Creation: whoami.exe Executed With /all for Full Identity Enumeration

Detects Windows executions of whoami.exe using the /all flag to enumerate full identity details.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-12-04
Updated
2026-07-30

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags execution of whoami.exe when invoked with the /all argument, which returns comprehensive local user and system identity information. Attackers commonly use this output for discovery and to tailor follow-on actions based on the compromised environment. The detection relies on Windows process creation telemetry, specifically the executable identity (path or OriginalFileName) and the command line containing the /all flag.

Related detections9 linkedT1033 — drag to rearrange
Suspicious Whoami Execution With Output Redirected to a File (via process_creation)
Possible Logged-On Session Discovery via Quser or Qwinsta (via process_creation)
Suspicious Reconnaissance Spawned by Injected SearchProtocolHost via process_creation
Linux Process Execution of esxcli Network Commands for ESXi Network Discovery
Linux Process Execution of esxcli VM Listing Commands
Linux ESXi esxcli VSAN Information Discovery via esxcli Command
Linux Process Creation: ESXi esxcli system discovery via system namespace
Linux ESXi esxcli Storage Information Discovery via esxcli storage commands
Windows whoami.exe Group Membership Reconnaissance via /groups Flag
Windows Process Creation: whoami.exe Executed With /all for Full Identity Enumeration
Pivot detection · T1033 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.