Forfiles.exe

Selects and executes a command on a file or set of files. This command is useful for batch processing.

ADS

Use forfiles to start a new process from a binary hidden in an alternate data stream

forfiles /p c:\windows\system32 /m notepad.exe /c "{PATH_ABSOLUTE}:evil.exe"

Executes the evil.exe Alternate Data Stream (AD) since there is a match for notepad.exe in the c:\windows\system32 folder. — MITRE: T1564.004 — Privileges: User

Execute

Use forfiles to start a new process to evade defensive counter measures

forfiles /p c:\windows\system32 /m notepad.exe /c "{CMD}"

Executes specified command since there is a match for notepad.exe in the c:\windows\System32 folder. — MITRE: T1202 — Privileges: User