Sigma rule: CMD Shell Output Redirect
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-f21b4c4bc071, updated 2024-03-19T00:00:00.000Z.
Rule
- Title
- CMD Shell Output Redirect
- Status
- test
- Level
- low
- Author
- frack113
- Date
- 2022-01-22
- Modified
- 2024-03-19
- File
- rules-threat-hunting/windows/process_creation/proc_creation_win_cmd_redirect.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the use of the redirection character ">" to redirect information on the command line.
This technique is sometimes used by malicious actors in order to redirect the output of reconnaissance commands such as "hostname" and "dir" to files for future exfiltration.
Log source
- product
- windows
- category
- process_creation
Detection
selection_cmd:
- OriginalFileName: 'Cmd.Exe'
- Image|endswith: '\cmd.exe'
selection_cli:
CommandLine|contains: '>'
filter_optional_idm_extension:
CommandLine|contains:
- 'C:\Program Files (x86)\Internet Download Manager\IDMMsgHost.exe'
- 'chrome-extension://'
- '\\.\pipe\chrome.nativeMessaging'
condition: all of selection_* and not 1 of filter_optional_*False positives (as the rule lists them)
- Internet Download Manager extensions use named pipes and redirection via CLI. Filter it out if you use it in your environment
Tags
- attack.discovery
- attack.t1082
- detection.threat-hunting
MITRE ATT&CK ids this rule names
Related rules
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-threat-hunting/windows/process_creation/proc_creation_win_cmd_redirect.yml
Sources and licences
SigmaHQ
"CMD Shell Output Redirect" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_cmd_redirect.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: CMD Shell Output Redirect",
entity page, dataset version ref-f21b4c4bc071, updated 2024-03-19T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/4f4eaa9f-5ad4-410c-a4be-bc6132b0175a (accessed 2026-11-03).
Underlying source: SigmaHQ rule 4f4eaa9f-5ad4-410c-a4be-bc6132b0175a, 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.