YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Epsilon
Detects Epsilon ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Epsilon ransomware
Associated malware family: Epsilon.
Targets: Windows PE.
It defines 10 patterns (8 text, 2 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-epsilon.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Epsilon : FILE
{
meta:
= "Detects Epsilon ransomware"
= "ditekSHen"
= "c5561a0d-85ac-5137-a97e-310aa03eb787"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4137-L4169"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "cc4481ddb6f5fd52a0bc901dde4c34ccf79024cd68605245df0dcbea22d0adee"
= 75
= 75
= "FILE"
strings:
$s1 = ".Speak \"" wide
$s2 = "chkUpdateRegistry" fullword wide
$s3 = "/C choice /C Y /N /D Y /T 1 & Del \"" fullword wide
$s4 = "CreateObject(\"sapi.spvoice\")" fullword wide
$s5 = "READ_ME.hta" wide
$s6 = "WScript.Sleep(" wide
$s7 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" fullword wide
$s8 = "<div class='bold'>Files are encrypted* but not deleted.</div>" ascii
$e1 = { 72 00 75 00 6e 00 64 00 6c 00 6c 00 2e 00 65 00
78 00 65 00 00 09 2e 00 74 00 78 00 74 00 00 09
2e 00 64 00 6f 00 63 00 00 0b 2e 00 64 00 6f 00
63 00 78 00 00 09 2e 00 78 00 6c 00 73 00 00 0d
2e 00 69 00 6e 00 64 00 65 00 78 00 00 09 2e 00
70 00 64 00 66 00 00 09 2e 00 7a 00 69 00 70 00
00 09 2e 00 72 00 61 00 72 00 00 09 2e 00 63 00
73 00 73 00 00 09 2e 00 6c 00 6e 00 6b 00 00 0b
2e 00 78 00 6c 00 73 00 78 00 00 09 2e 00 70 00
70 00 74 00 00 0b 2e 00 70 00 70 00 74 00 78 00
00 09 2e 00 6f 00 64 00 }
$e2 = { 68 00 74 00 6d 00 00 07 2e 00 6d 00 6c 00 00 07
43 00 3a 00 5c 00 00 07 44 00 3a 00 5c 00 00 07
45 00 3a 00 5c 00 00 07 46 00 3a 00 5c 00 00 07
47 00 3a 00 5c 00 00 07 5a 00 3a 00 5c 00 00 07
41 00 3a 00 5c 00 00 0f 63 00 6d 00 64 00 2e 00
65 00 78 00 65 }
condition:
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( all of ( $e* ) and 4 of ( $s* ) ) )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | ".Speak \"" | wide |
| $s2 | text | "chkUpdateRegistry" | fullword wide |
| $s3 | text | "/C choice /C Y /N /D Y /T 1 & Del \"" | fullword wide |
| $s4 | text | "CreateObject(\"sapi.spvoice\")" | fullword wide |
| $s5 | text | "READ_ME.hta" | wide |
| $s6 | text | "WScript.Sleep(" | wide |
| $s7 | text | "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" | fullword wide |
| $s8 | text | "<div class='bold'>Files are encrypted* but not deleted.</div>" | ascii |
| $e1 | hex | { 72 00 75 00 6e 00 64 00 6c 00 6c 00 2e 00 65 00 78 00 65 00 00 09 2e 00 74 00 78 00 74 00 00 09 2e 00 64 00 6f 00 63 00 00 0b … | |
| $e2 | hex | { 68 00 74 00 6d 00 00 07 2e 00 6d 00 6c 00 00 07 43 00 3a 00 5c 00 00 07 44 00 3a 00 5c 00 00 07 45 00 3a 00 5c 00 00 07 46 00 … |
Condition
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( all of ( $e* ) and 4 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $e* ) must match.
- At least 6 patterns in ( $s* ) 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: c5561a0d-85ac-5137-a97e-310aa03eb787
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