Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Vssdestroy

VSSDestroy/Matrix ransomware payload

MalwareVssdestroyditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

VSSDestroy/Matrix ransomware payload

Associated malware family: Vssdestroy.

Targets: Windows PE.

It defines 14 patterns (14 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-vssdestroy.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Vssdestroy : FILE
{
	meta:
		description = "VSSDestroy/Matrix ransomware payload"
		author = "ditekSHen"
		id = "734ece56-b993-5b44-ae15-f673fabfe8ad"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L717-L740"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "24bfd32580f784440252d629a7ab86b84a570ded34409940616be2a89bf73088"
		score = 75
		quality = 75
		tags = "FILE"
		snort_sid = "920008-920009"
		clamav_sig = "MALWARE.Win.Ransomware.VSSDestroy"

	strings:
		$o1 = "[SHARESSCAN]" wide
		$o2 = "[LDRIVESSCAN]" wide
		$o3 = "[LOGSAVED]" wide
		$o4 = "[LPROGRESS]" wide
		$o5 = "[FINISHSAVED]" wide
		$o6 = "[ALL_LOCAL_KID]" wide
		$o7 = "[DIRSCAN" wide
		$o8 = "[GENKEY]" wide
		$s1 = "\\cmd.exe" nocase wide
		$s2 = "/C powershell \"" nocase wide
		$s3 = "%COMPUTERNAME%" wide
		$s4 = "%USERNAME%" wide
		$s5 = "Error loading Socket interface (ws2_32.dll)!" wide
		$s6 = "Old file list dump found. Want to load it? (y/n):" fullword wide

	condition:
		( uint16( 0 ) == 0x5a4d and 4 of ( $o* ) and 3 of ( $s* ) ) or ( 5 of ( $o* ) and 4 of ( $s* ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$o1text"[SHARESSCAN]"wide
$o2text"[LDRIVESSCAN]"wide
$o3text"[LOGSAVED]"wide
$o4text"[LPROGRESS]"wide
$o5text"[FINISHSAVED]"wide
$o6text"[ALL_LOCAL_KID]"wide
$o7text"[DIRSCAN"wide
$o8text"[GENKEY]"wide
$s1text"\\cmd.exe"nocase wide
$s2text"/C powershell \""nocase wide
$s3text"%COMPUTERNAME%"wide
$s4text"%USERNAME%"wide
$s5text"Error loading Socket interface (ws2_32.dll)!"wide
$s6text"Old file list dump found. Want to load it? (y/n):"fullword wide

Condition

( uint16( 0 ) == 0x5a4d and 4 of ( $o* ) and 3 of ( $s* ) ) or ( 5 of ( $o* ) and 4 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in ( $o* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • At least 5 patterns in ( $o* ) must match.
  • At least 4 patterns in ( $s* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 734ece56-b993-5b44-ae15-f673fabfe8ad

Metadata

snort_sid920008-920009
clamav_sigMALWARE.Win.Ransomware.VSSDestroy

Tags:FILE