01
detectionlint / library / sigma

Suspicious Usage of For Loop with Recursive Directory Search in CMD

sigmaDRL-1.1from SigmaHQ/sigma

Detects suspicious usage of the cmd.exe 'for /f' loop combined with the 'tokens=' parameter and a recursive directory listing. This pattern may indicate an attempt to discover and execute system binaries dynamically, for example powershell, a technique sometimes used by attackers to evade detection. This behavior has been observed in various malicious lnk files.

02
quality84
fp risk—
forks0
views0

ATT&CK techniques

rule sourcelocked

Sign in to view the rule source

Free accounts can view the source for the top-ranked rules. Create one in seconds — no credit card required.

Sign in