Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Epsilon

Detects Epsilon ransomware

MalwareEpsilonditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects Epsilon ransomware"
		author = "ditekSHen"
		id = "c5561a0d-85ac-5137-a97e-310aa03eb787"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4137-L4169"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "cc4481ddb6f5fd52a0bc901dde4c34ccf79024cd68605245df0dcbea22d0adee"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text".Speak \""wide
$s2text"chkUpdateRegistry"fullword wide
$s3text"/C choice /C Y /N /D Y /T 1 & Del \""fullword wide
$s4text"CreateObject(\"sapi.spvoice\")"fullword wide
$s5text"READ_ME.hta"wide
$s6text"WScript.Sleep("wide
$s7text"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"fullword wide
$s8text"<div class='bold'>Files are encrypted* but not deleted.</div>"ascii
$e1hex{ 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 …
$e2hex{ 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.

Open in editor

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).

Original rule

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