YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Xorist
Detects Xorist ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Xorist ransomware
Associated malware family: Xorist.
Targets: Windows PE.
It defines 8 patterns (5 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-xorist.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Xorist : FILE
{
meta:
= "Detects Xorist ransomware"
= "ditekSHen"
= "76119441-343d-51c3-90eb-9d54c80a983d"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2057-L2078"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "b34e3fa065cabcd8d26908866e53ff599631128e1da884e42a2e63d890879eaa"
= 75
= 75
= "FILE"
= "MALWARE.Win.Ransomware.Xorist"
strings:
$x1 = { 00 4d 00 41 00 47 00 45 00 0b 00 50 00 55 00
53 00 53 00 59 00 4c 00 49 00 43 00 4b 00 45
00 52 00 }
$x2 = { 30 70 33 6e 53 4f 75 72 63 33 20 58 30 72 31 35
37 2c 20 6d 6f 74 68 65 72 66 75 63 6b 65 72 21
00 70 75 73 73 79 6c 69 63 6b 65 72 00 2e 62 6d
70 00 2e 00 2e 2e 00 6f 70 65 6e 00 2e 65 78 65 }
$s1 = "\\shell\\open\\command" fullword ascii
$s2 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" fullword ascii
$s3 = "CRYPTED!" fullword ascii
$s4 = "Attention!" fullword ascii
$s5 = "Password:" fullword ascii
$s6 = { 43 6f 6d 53 70 65 63 00 2f 63 20 64 65 6c 20 22 00 22 20 3e 3e 20 4e 55 4c }
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 5 of ( $s* ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | hex | { 00 4d 00 41 00 47 00 45 00 0b 00 50 00 55 00 53 00 53 00 59 00 4c 00 49 00 43 00 4b 00 45 00 52 00 } | |
| $x2 | hex | { 30 70 33 6e 53 4f 75 72 63 33 20 58 30 72 31 35 37 2c 20 6d 6f 74 68 65 72 66 75 63 6b 65 72 21 00 70 75 73 73 79 6c 69 63 6b … | |
| $s1 | text | "\\shell\\open\\command" | fullword ascii |
| $s2 | text | "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" | fullword ascii |
| $s3 | text | "CRYPTED!" | fullword ascii |
| $s4 | text | "Attention!" | fullword ascii |
| $s5 | text | "Password:" | fullword ascii |
| $s6 | hex | { 43 6f 6d 53 70 65 63 00 2f 63 20 64 65 6c 20 22 00 22 20 3e 3e 20 4e 55 4c } |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 5 of ( $s* ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $x* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 3 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: 76119441-343d-51c3-90eb-9d54c80a983d
Metadata
| clamav_sig | MALWARE.Win.Ransomware.Xorist |
|---|
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