Detection rules › Sigma

NotPetya Ransomware Activity

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

Detects NotPetya ransomware activity in which the extracted passwords are passed back to the main module via named pipe, the file system journal of drive C is deleted and Windows eventlogs are cleared using wevtutil

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: NotPetya Ransomware Activity
id: 79aeeb41-8156-4fac-a0cd-076495ab82a1
status: test
description: Detects NotPetya ransomware activity in which the extracted passwords are passed back to the main module via named pipe, the file system journal of drive C is deleted and Windows eventlogs are cleared using wevtutil
references:
    - https://securelist.com/schroedingers-petya/78870/
    - https://www.hybrid-analysis.com/sample/64b0b58a2c030c77fdb2b537b2fcc4af432bc55ffb36599a31d418c7c69e94b1?environmentId=100
author: Florian Roth (Nextron Systems), Tom Ueltschi
date: 2019-01-16
modified: 2022-12-15
tags:
    - attack.stealth
    - attack.defense-impairment
    - attack.t1218.011
    - attack.t1685.005
    - attack.credential-access
    - attack.t1003.001
    - car.2016-04-002
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_specific_pattern:
        CommandLine|contains:
            - 'wevtutil cl Application & fsutil usn deletejournal /D C:'
            - 'dllhost.dat %WINDIR%\ransoms'
    selection_rundll32:
        Image|endswith: '\rundll32.exe'
        CommandLine|endswith:
            - '.dat,#1'
            - '.dat #1' # Sysmon removes comma
            - '.zip.dll",#1'
    selection_perfc_keyword:
        - '\perfc.dat'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_specific_pattern

selection_specific_pattern:
    CommandLine|contains:
        - 'wevtutil cl Application & fsutil usn deletejournal /D C:'
        - 'dllhost.dat %WINDIR%\ransoms'

Stage 2: selection_rundll32

selection_rundll32:
    Image|endswith: '\rundll32.exe'
    CommandLine|endswith:
        - '.dat,#1'
        - '.dat #1'
        - '.zip.dll",#1'

Stage 3: selection_perfc_keyword

selection_perfc_keyword:
    - '\perfc.dat'

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
CommandLineends_with
  • .dat #1
  • .dat,#1
  • .zip.dll",#1
CommandLinematch
  • dllhost.dat %WINDIR%\ransoms
  • wevtutil cl Application & fsutil usn deletejournal /D C:
Imageends_with
  • \rundll32.exe corpus 95 (sigma 95)