YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Maze
Detects Maze ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Maze ransomware
Associated malware family: Maze.
Targets: Windows PE.
It defines 10 patterns (9 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-maze.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Maze : FILE
{
meta:
= "Detects Maze ransomware"
= "ditekSHen"
= "f5d1d3e2-1ffe-5ec6-b1ee-bded81867fb8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9116-L9145"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d3ce3b43c65dfd9f59ba3c6b64e8d7687db175673cc62068caa1e1da023390c0"
= 75
= 75
= "FILE"
strings:
$x1 = "Uc32nbspacec97c98c99c100c101c102c103c104c105c106c107c108c109c110c" ascii
$s1 = "\"%s\" shadowcopy delete" wide
$s2 = "[%windir%\\system32\\wbem\\wmic" wide
$s3 = "process call create \"cmd /c start %s\"" wide
$s4 = "DECRYPT-FILES.html" fullword wide
$s5 = "Dear %s, your files" wide
$s6 = "%s! Alert! %s! Alert!" wide
$s7 = "%BASE64_PLACEHOLDER%" fullword ascii
$s8 = "-orDGorX0or" fullword ascii
$s9 = { 47 45 54 20 2f 25 73 20 48 54 54 50 2f 31 2e 31
0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 25 73
0d 0a 48 6f 73 74 3a 20 25 73 0d 0a 43 6f 6e 6e
65 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69
76 65 0d 0a 0d 0a 00 50 4f 53 54 20 2f 25 73 20
48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41
67 65 6e 74 3a 20 25 73 0d 0a 48 6f 73 74 3a 20
25 73 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65
3a 20 25 73 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65
6e 67 74 68 3a 20 25 64 0d 0a 43 6f 6e 6e 65 63
74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69 76 65
0d 0a 0d 0a 00 0d 0a 0d 0a 00 43 6f 6e 74 65 6e
74 2d 4c 65 6e 67 74 68 3a 20 00 }
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) ) or 6 of ( $s* ) )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "Uc32nbspacec97c98c99c100c101c102c103c104c105c106c107c108c109c110c" | ascii |
| $s1 | text | "\"%s\" shadowcopy delete" | wide |
| $s2 | text | "[%windir%\\system32\\wbem\\wmic" | wide |
| $s3 | text | "process call create \"cmd /c start %s\"" | wide |
| $s4 | text | "DECRYPT-FILES.html" | fullword wide |
| $s5 | text | "Dear %s, your files" | wide |
| $s6 | text | "%s! Alert! %s! Alert!" | wide |
| $s7 | text | "%BASE64_PLACEHOLDER%" | fullword ascii |
| $s8 | text | "-orDGorX0or" | fullword ascii |
| $s9 | hex | { 47 45 54 20 2f 25 73 20 48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 25 73 0d 0a 48 6f 73 74 3a 20 25 73 0d … |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) ) or 6 of ( $s* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $x* ) must match.
- At least 3 patterns in ( $s* ) must match.
- At least 6 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: f5d1d3e2-1ffe-5ec6-b1ee-bded81867fb8
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekShen· 2021-01-21
- MalwareSignature Base (Florian Roth / Nextron)· @VK_Intel· 2020-04-18
- 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