Detection rules › Sigma

Potential Baby Shark Malware Activity

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

Detects activity that could be related to Baby Shark malware

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Potential Baby Shark Malware Activity
id: 2b30fa36-3a18-402f-a22d-bf4ce2189f35
status: test
description: Detects activity that could be related to Baby Shark malware
references:
    - https://unit42.paloaltonetworks.com/new-babyshark-malware-targets-u-s-national-security-think-tanks/
author: Florian Roth (Nextron Systems)
date: 2019-02-24
modified: 2023-03-08
tags:
    - attack.execution
    - attack.discovery
    - attack.stealth
    - attack.t1012
    - attack.t1059.003
    - attack.t1059.001
    - attack.t1218.005
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - CommandLine|contains|all:
              - 'powershell.exe mshta.exe http'
              - '.hta'
        - CommandLine|contains:
              - 'reg query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default"'
              - 'cmd.exe /c taskkill /im cmd.exe'
              - "(New-Object System.Net.WebClient).UploadFile('http"
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    - CommandLine|contains|all:
          - 'powershell.exe mshta.exe http'
          - '.hta'
    - CommandLine|contains:
          - 'reg query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default"'
          - 'cmd.exe /c taskkill /im cmd.exe'
          - "(New-Object System.Net.WebClient).UploadFile('http"

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
  • (New-Object System.Net.WebClient).UploadFile('http
  • .hta corpus 6 (sigma 6)
  • cmd.exe /c taskkill /im cmd.exe
  • powershell.exe mshta.exe http
  • reg query "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default"