YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Thanos
Detects Thanos / Prometheus / Spook ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects Thanos / Prometheus / Spook ransomware
Associated malware family: Thanos.
Targets: Windows PE.
It defines 25 patterns (25 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-thanos.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Thanos : FILE
{
meta:
= "Detects Thanos / Prometheus / Spook ransomware"
= "ditekSHen"
= "f523906e-ef5e-57be-82ed-06e75c393f42"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4357-L4389"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "8ce7cdfe4bca31e21d6fa31a75c46737a41fae3b5b0fda818e3a4709ceaf9bf5"
= 75
= 73
= "FILE"
strings:
$f1 = "<WorkerCrypter2>b__" ascii
$f2 = "<Encrypt2>b__" ascii
$f3 = "<Killproc>b__" ascii
$f4 = "<GetIPInfo>b__" ascii
$f5 = "<MacAddress>k__" ascii
$f6 = "<IPAddress>k__" ascii
$f7 = "<Crypt>b__" ascii
$s1 = "Aditional KeyId:" wide
$s2 = "process call create cmd.exe /c \\\\" wide
$s3 = "/c rd /s /q %SYSTEMDRIVE%\\$Recycle.bin" wide
$s4 = "\\HOW_TO_DECYPHER_FILES." wide
$s5 = "Client Unique Identifier Key:" wide
$s6 = "/s /f /q c:\\*.VHD c:\\*.bac c:\\*.bak c:\\*.wbcat c:\\*.bkf c:\\Backup*.* c:\\backup*.* c:\\*.set c:\\*.win c:\\*.dsk" fullword wide
$s7 = "NtOpenProcess" fullword wide
$s8 = "Builder_Log" fullword wide
$s9 = "> Nul & fsutil file setZeroData offset=0 length=" wide
$s10 = "3747bdbf-0ef0-42d8-9234-70d68801f407" wide
$s11 = "4b195894-0f06-4fdd-afb4-b17fb9246a59" wide
$s12 = "cec564ff-2433-4771-b918-15f58ef6e26c" wide
$s13 = "56258a19-7489-468b-86ee-e7899203d67c" wide
$s14 = "WalkDirectoryTree" fullword ascii
$s15 = "hashtableLock" fullword ascii
$s16 = "get_ParentFrn" fullword ascii
$m1 = "SW5mb3JtYXRpb24uLi" wide
$m2 = "QWxsIHlvdXIgZmlsZXMgd2VyZSBlbmNyeXB0" wide
condition:
uint16( 0 ) == 0x5a4d and ( 5 of ( $f* ) or 5 of ( $s* ) or ( 4 of ( $f* ) and 2 of ( $s* ) or ( all of ( $m* ) and 3 of them ) ) or 8 of them )
}
Strings (25 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $f1 | text | "<WorkerCrypter2>b__" | ascii |
| $f2 | text | "<Encrypt2>b__" | ascii |
| $f3 | text | "<Killproc>b__" | ascii |
| $f4 | text | "<GetIPInfo>b__" | ascii |
| $f5 | text | "<MacAddress>k__" | ascii |
| $f6 | text | "<IPAddress>k__" | ascii |
| $f7 | text | "<Crypt>b__" | ascii |
| $s1 | text | "Aditional KeyId:" | wide |
| $s2 | text | "process call create cmd.exe /c \\\\" | wide |
| $s3 | text | "/c rd /s /q %SYSTEMDRIVE%\\$Recycle.bin" | wide |
| $s4 | text | "\\HOW_TO_DECYPHER_FILES." | wide |
| $s5 | text | "Client Unique Identifier Key:" | wide |
| $s6 | text | "/s /f /q c:\\*.VHD c:\\*.bac c:\\*.bak c:\\*.wbcat c:\\*.bkf c:\\Backup*.* c:\\backup*.* c:\\*.set c:\\*.win c:\\*.dsk" | fullword wide |
| $s7 | text | "NtOpenProcess" | fullword wide |
| $s8 | text | "Builder_Log" | fullword wide |
| $s9 | text | "> Nul & fsutil file setZeroData offset=0 length=" | wide |
| $s10 | text | "3747bdbf-0ef0-42d8-9234-70d68801f407" | wide |
| $s11 | text | "4b195894-0f06-4fdd-afb4-b17fb9246a59" | wide |
| $s12 | text | "cec564ff-2433-4771-b918-15f58ef6e26c" | wide |
| $s13 | text | "56258a19-7489-468b-86ee-e7899203d67c" | wide |
| $s14 | text | "WalkDirectoryTree" | fullword ascii |
| $s15 | text | "hashtableLock" | fullword ascii |
| $s16 | text | "get_ParentFrn" | fullword ascii |
| $m1 | text | "SW5mb3JtYXRpb24uLi" | wide |
| $m2 | text | "QWxsIHlvdXIgZmlsZXMgd2VyZSBlbmNyeXB0" | wide |
Condition
uint16( 0 ) == 0x5a4d and ( 5 of ( $f* ) or 5 of ( $s* ) or ( 4 of ( $f* ) and 2 of ( $s* ) or ( all of ( $m* ) and 3 of them ) ) or 8 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $m* ) must match.
- At least 5 patterns in ( $f* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 4 patterns in ( $f* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 3 patterns in the rule must match.
- At least 8 patterns in the rule 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: f523906e-ef5e-57be-82ed-06e75c393f42
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekShen· 2021-01-21
- 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