Sigma rule: Whoami.EXE Execution With Output Option
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-cc099748231d, updated 2023-12-04T00:00:00.000Z.
Rule
- Title
- Whoami.EXE Execution With Output Option
- Status
- test
- Level
- medium
- Author
- Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
- Date
- 2023-02-28
- Modified
- 2023-12-04
- File
- rules/windows/process_creation/proc_creation_win_whoami_output.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the execution of "whoami.exe" with the "/FO" flag to choose CSV as output format or with redirection options to export the results to a file for later use.
Log source
- product
- windows
- category
- process_creation
Detection
selection_main_img:
- Image|endswith: '\whoami.exe'
- OriginalFileName: 'whoami.exe'
selection_main_cli:
CommandLine|contains:
- ' /FO CSV'
- ' -FO CSV'
selection_special:
CommandLine|contains: 'whoami*>'
condition: all of selection_main_* or selection_specialFalse positives (as the rule lists them)
- Unknown
Tags
- attack.discovery
- attack.t1033
- car.2016-03-001
MITRE ATT&CK ids this rule names
References
- https://brica.de/alerts/alert/public/1247926/agent-tesla-keylogger-delivered-inside-a-power-iso-daa-archive/
- https://app.any.run/tasks/7eaba74e-c1ea-400f-9c17-5e30eee89906/
- https://www.youtube.com/watch?v=DsJ9ByX84o4&t=6s
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_whoami_output.yml
Sources and licences
SigmaHQ
"Whoami.EXE Execution With Output Option" by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_whoami_output.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Whoami.EXE Execution With Output Option",
entity page, dataset version ref-cc099748231d, updated 2023-12-04T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c30fb093-1109-4dc8-88a8-b30d11c95a5d (accessed 2026-11-03).
Underlying source: SigmaHQ rule c30fb093-1109-4dc8-88a8-b30d11c95a5d, 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.