Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Unlockyourfiles

Detects UnlockYourFiles ransomware

MalwareUnlockyourfilesditekSHen 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 UnlockYourFiles ransomware

Associated malware family: Unlockyourfiles.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-unlockyourfiles.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Unlockyourfiles : FILE
{
	meta:
		description = "Detects UnlockYourFiles ransomware"
		author = "ditekSHen"
		id = "265f2a48-143a-56c9-9cd4-b5137799a9e8"
		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#L5927-L5946"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "05f549467fac03d4aa2248a9c6c87e4c4273ed6ad727ebb77a4dd115032e454b"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "filesx0" wide
		$s2 = "_auto_file" wide
		$s3 = "<EncyptedKey>" fullword wide
		$s4 = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\" wide
		$s5 = "DecryptAllFile" fullword ascii
		$s6 = "AES_Only_Decrypt_File" fullword ascii
		$m1 = "Free files decrypted" wide
		$m2 = "Restore my files" wide
		$m3 = "Type tour password..." wide
		$m4 = "files encrypted by strong password" ascii
		$m5 = "buy bitcoin" ascii
		$m6 = "Unlock File" fullword wide

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

Strings (12 patterns)

IdentifierTypeValueModifiers
$s1text"filesx0"wide
$s2text"_auto_file"wide
$s3text"<EncyptedKey>"fullword wide
$s4text"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\"wide
$s5text"DecryptAllFile"fullword ascii
$s6text"AES_Only_Decrypt_File"fullword ascii
$m1text"Free files decrypted"wide
$m2text"Restore my files"wide
$m3text"Type tour password..."wide
$m4text"files encrypted by strong password"ascii
$m5text"buy bitcoin"ascii
$m6text"Unlock File"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or 5 of ( $m* ) or ( 2 of ( $s* ) and 2 of ( $m* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in ( $s* ) must match.
  • At least 5 patterns in ( $m* ) must match.
  • At least 2 patterns in ( $s* ) must match.
  • At least 2 patterns in ( $m* ) 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: 265f2a48-143a-56c9-9cd4-b5137799a9e8

Tags:FILE