YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Vssdestroy
VSSDestroy/Matrix ransomware payload
- 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:
= "VSSDestroy/Matrix ransomware payload"
= "ditekSHen"
= "734ece56-b993-5b44-ae15-f673fabfe8ad"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L717-L740"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "24bfd32580f784440252d629a7ab86b84a570ded34409940616be2a89bf73088"
= 75
= 75
= "FILE"
= "920008-920009"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $o1 | text | "[SHARESSCAN]" | wide |
| $o2 | text | "[LDRIVESSCAN]" | wide |
| $o3 | text | "[LOGSAVED]" | wide |
| $o4 | text | "[LPROGRESS]" | wide |
| $o5 | text | "[FINISHSAVED]" | wide |
| $o6 | text | "[ALL_LOCAL_KID]" | wide |
| $o7 | text | "[DIRSCAN" | wide |
| $o8 | text | "[GENKEY]" | wide |
| $s1 | text | "\\cmd.exe" | nocase wide |
| $s2 | text | "/C powershell \"" | nocase wide |
| $s3 | text | "%COMPUTERNAME%" | wide |
| $s4 | text | "%USERNAME%" | wide |
| $s5 | text | "Error loading Socket interface (ws2_32.dll)!" | wide |
| $s6 | text | "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.
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).
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_sid | 920008-920009 |
|---|---|
| clamav_sig | MALWARE.Win.Ransomware.VSSDestroy |
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06