Detection rules › Sigma

File Download Via Windows Defender MpCmpRun.EXE

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Matthew Matchen
Source
github.com/SigmaHQ/sigma

Detects the use of Windows Defender MpCmdRun.EXE to download files

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: File Download Via Windows Defender MpCmpRun.EXE
id: 46123129-1024-423e-9fae-43af4a0fa9a5
status: test
description: Detects the use of Windows Defender MpCmdRun.EXE to download files
references:
    - https://web.archive.org/web/20200903194959/https://twitter.com/djmtshepana/status/1301608169496612866
    - https://lolbas-project.github.io/lolbas/Binaries/MpCmdRun/
author: Matthew Matchen
date: 2020-09-04
modified: 2023-11-09
tags:
    - attack.stealth
    - attack.t1218
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - OriginalFileName: 'MpCmdRun.exe'
        - Image|endswith: '\MpCmdRun.exe'
        - CommandLine|contains: 'MpCmdRun.exe'
        - Description: 'Microsoft Malware Protection Command Line Utility'
    selection_cli:
        CommandLine|contains|all:
            - 'DownloadFile'
            - 'url'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - OriginalFileName: 'MpCmdRun.exe'
    - Image|endswith: '\MpCmdRun.exe'
    - CommandLine|contains: 'MpCmdRun.exe'
    - Description: 'Microsoft Malware Protection Command Line Utility'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains|all:
        - 'DownloadFile'
        - 'url'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • DownloadFile corpus 5 (sigma 4, chronicle 1)
  • MpCmdRun.exe corpus 2 (sigma 1, chronicle 1)
  • url corpus 2 (sigma 1, chronicle 1)
Descriptioneq
  • Microsoft Malware Protection Command Line Utility
Imageends_with
  • \MpCmdRun.exe corpus 4 (sigma 4)
OriginalFileNameeq
  • MpCmdRun.exe corpus 4 (sigma 2, elastic 1, splunk 1)