CMD Shell Output Redirect
Description
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.
Query · sigma
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_*
Known false positives
- Internet Download Manager extensions use named pipes and redirection via CLI. Filter it out if you use it in your environment