YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Unlockyourfiles
Detects UnlockYourFiles ransomware
- 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:
= "Detects UnlockYourFiles ransomware"
= "ditekSHen"
= "265f2a48-143a-56c9-9cd4-b5137799a9e8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5927-L5946"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "05f549467fac03d4aa2248a9c6c87e4c4273ed6ad727ebb77a4dd115032e454b"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "filesx0" | wide |
| $s2 | text | "_auto_file" | wide |
| $s3 | text | "<EncyptedKey>" | fullword wide |
| $s4 | text | "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\" | wide |
| $s5 | text | "DecryptAllFile" | fullword ascii |
| $s6 | text | "AES_Only_Decrypt_File" | fullword ascii |
| $m1 | text | "Free files decrypted" | wide |
| $m2 | text | "Restore my files" | wide |
| $m3 | text | "Type tour password..." | wide |
| $m4 | text | "files encrypted by strong password" | ascii |
| $m5 | text | "buy bitcoin" | ascii |
| $m6 | text | "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.
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: 265f2a48-143a-56c9-9cd4-b5137799a9e8
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