T1059.003 · Windows Command Shell
Windows For Loop Usage Within Cmd.exe To Execute Commands
About this detection
The following analytic identifies the use of a for /f loop with the delims= option within cmd.exe, a technique commonly used to parse and extract data from the output of other commands. Adversaries and malicious scripts leverage this pattern to programmatically process command output for discovery, data extraction, or execution purposes while evading simpler detection logic.
Sysmon event coverage
Sysmon XML
Loading configuration…