Detection rules › Sigma

Potential MuddyWater APT Activity

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects potential Muddywater APT activity

MITRE ATT&CK coverage

TacticTechniques
ExecutionNo specific technique
StealthNo specific technique

Event coverage

Rule body yaml

title: Potential MuddyWater APT Activity
id: 36222790-0d43-4fe8-86e4-674b27809543
status: test
description: Detects potential Muddywater APT activity
references:
    - https://www.mandiant.com/resources/blog/iranian-threat-group-updates-ttps-in-spear-phishing-campaign
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-03-10
tags:
    - attack.execution
    - attack.stealth
    - attack.g0069
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_mshta:
        CommandLine|contains|all:
            - 'vbscript:Close(Execute("CreateObject('
            - 'powershell'
            - '-w 1 -exec Bypass'
            - '\ProgramData\'
    selection_survey:
        CommandLine|contains|all:
            - 'Win32_OperatingSystem'
            - 'Win32_NetworkAdapterConfiguration'
            - 'root\SecurityCenter2'
            - '[System.Net.DNS]'
    selection_pwsh_backdoor:
        CommandLine|contains|all:
            - '[Convert]::ToBase64String'
            - '[System.Text.Encoding]::UTF8.GetString]'
            - 'GetResponse().GetResponseStream()'
            - '[System.Net.HttpWebRequest]::Create('
            - '-bxor '
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_mshta

selection_mshta:
    CommandLine|contains|all:
        - 'vbscript:Close(Execute("CreateObject('
        - 'powershell'
        - '-w 1 -exec Bypass'
        - '\ProgramData\'

Stage 2: selection_survey

selection_survey:
    CommandLine|contains|all:
        - 'Win32_OperatingSystem'
        - 'Win32_NetworkAdapterConfiguration'
        - 'root\SecurityCenter2'
        - '[System.Net.DNS]'

Stage 3: selection_pwsh_backdoor

selection_pwsh_backdoor:
    CommandLine|contains|all:
        - '[Convert]::ToBase64String'
        - '[System.Text.Encoding]::UTF8.GetString]'
        - 'GetResponse().GetResponseStream()'
        - '[System.Net.HttpWebRequest]::Create('
        - '-bxor '

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
  • -bxor
  • -w 1 -exec Bypass
  • GetResponse().GetResponseStream()
  • Win32_NetworkAdapterConfiguration
  • Win32_OperatingSystem
  • [Convert]::ToBase64String corpus 2 (sigma 1, elastic 1)
  • [System.Net.DNS]
  • [System.Net.HttpWebRequest]::Create(
  • [System.Text.Encoding]::UTF8.GetString]
  • \ProgramData\ corpus 3 (sigma 3)
  • powershell corpus 25 (sigma 24, chronicle 1)
  • root\SecurityCenter2
  • vbscript:Close(Execute("CreateObject(