YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blackmatter
Detects BlackMatter ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects BlackMatter ransomware
Associated malware family: Blackmatter.
Targets: Windows PE.
It defines 9 patterns (3 text, 6 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-blackmatter.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Blackmatter : FILE
{
meta:
= "Detects BlackMatter ransomware"
= "ditekSHen"
= "8883e652-edab-5cbf-a4fa-963b437447d9"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7748-L7767"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "4558002b424f7102f67fc44dfc37ac20f6013e25ae827c6aee0fc37231e2fa72"
= 75
= 75
= "FILE"
strings:
$s1 = "C:\\Windows\\System32\\*.drv" fullword wide
$s2 = "NYbr-Vk@" fullword ascii
$s3 = ":7:=:H:Q:W:\\:b:&;O;^;v;" fullword ascii
$o1 = { b0 34 aa fe c0 e2 fb b9 03 }
$o2 = { fe 00 ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 }
$o3 = { 6a 00 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe ff }
$o4 = { ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe }
$o5 = { 53 56 57 8d 85 70 ff ff ff 83 c0 0f 83 e0 f0 89 }
$o6 = { c7 85 68 ff ff ff 00 04 00 00 8b 85 6c ff ff ff }
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and all of ( $o* ) )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "C:\\Windows\\System32\\*.drv" | fullword wide |
| $s2 | text | "NYbr-Vk@" | fullword ascii |
| $s3 | text | ":7:=:H:Q:W:\\:b:&;O;^;v;" | fullword ascii |
| $o1 | hex | { b0 34 aa fe c0 e2 fb b9 03 } | |
| $o2 | hex | { fe 00 ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 } | |
| $o3 | hex | { 6a 00 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe ff } | |
| $o4 | hex | { ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe } | |
| $o5 | hex | { 53 56 57 8d 85 70 ff ff ff 83 c0 0f 83 e0 f0 89 } | |
| $o6 | hex | { c7 85 68 ff ff ff 00 04 00 00 8b 85 6c ff ff ff } |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and all of ( $o* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- All patterns in ( $o* ) 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: 8883e652-edab-5cbf-a4fa-963b437447d9
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2021-08-03
- 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