Detection rules › Sigma

Potential Baby Shark Malware Activity

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

Detects activity that could be related to Baby Shark malware

MITRE ATT&CK coverage

Telemetry coverage

Rule body

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

These rows show field, operator, and value matches.

FieldKindValuesSearch
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"
field:"CommandLine" kind:match