WMI Execution with Command Line Redirection¶
Identifies command execution via WMI with redirected output. WMI provides a method to execute a process on a local or remote host, but does not expose a way to read any console output. To get around this restriction, some administrators or attackers will execute
cmd.exe with output redirection to a file. Then the file can be retrieved to read program output.
MITRE ATT&CK™ Mapping¶
|techniques:||T1074 Data Staged|
sequence by unique_pid with maxspan=5s [process where subtype.create and process_name == "cmd.exe" and command_line == "*>*" and descendant of [process where process_name == "wmiprvse.exe"]] [file where subtype.create and wildcard(file_name, "*.txt", "*.log")]