Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Decryptmyfiles

Detects DecryptMyFiles ransomware

MalwareDecryptmyfilesditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Detects DecryptMyFiles ransomware

Associated malware family: Decryptmyfiles.

Targets: Windows PE.

It defines 9 patterns (9 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-decryptmyfiles.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Decryptmyfiles : FILE
{
	meta:
		description = "Detects DecryptMyFiles ransomware"
		author = "ditekSHen"
		id = "dab518f2-3fac-5492-88fb-35cd0000ec47"
		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#L5948-L5964"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5b7f74569700e2ad3f31388571dad5ffda45f5ab3dd36806f7514aff0367d5ba"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "FILES ENCRYPTED" wide
		$s2 = "pexplorer.exe" fullword wide
		$s3 = "uniquesession" fullword ascii
		$s4 = ".[decryptmyfiles.top]." fullword ascii
		$s5 = "decrypt 1 file" ascii
		$s6 = "(databases,backups, large excel" ascii
		$c1 = "api/connect.php" ascii
		$c2 = "decryptmyfiles.top" ascii
		$c3 = "/contact/" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or all of ( $c* ) or ( 2 of ( $c* ) and 2 of ( $s* ) ) )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"FILES ENCRYPTED"wide
$s2text"pexplorer.exe"fullword wide
$s3text"uniquesession"fullword ascii
$s4text".[decryptmyfiles.top]."fullword ascii
$s5text"decrypt 1 file"ascii
$s6text"(databases,backups, large excel"ascii
$c1text"api/connect.php"ascii
$c2text"decryptmyfiles.top"ascii
$c3text"/contact/"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or all of ( $c* ) or ( 2 of ( $c* ) and 2 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $c* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 2 patterns in ( $c* ) must match.
  • At least 2 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: dab518f2-3fac-5492-88fb-35cd0000ec47

Tags:FILE