YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ranzylocker
Detects RanzyLocker / REntS ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects RanzyLocker / REntS ransomware
Associated malware family: Ranzylocker.
Targets: Windows PE.
It defines 16 patterns (12 text, 4 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-ranzylocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Ranzylocker : FILE
{
meta:
= "Detects RanzyLocker / REntS ransomware"
= "ditekSHen"
= "0d74f6fd-e1d2-5939-991e-7fdd2ca3310b"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5019-L5042"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "15897144843acf49b81c5428fd1bb56d7a2acf16047a6e5d3ca4f2aaa8891577"
= 75
= 75
= "FILE"
strings:
$hr1 = "776261646D696E2044454C4554452053595354454D53544154454241434B5550" ascii
$hr2 = "776D69632E65786520534841444F57434F5059202F6E6F696E746572616374697665" ascii
$hr3 = "626364656469742E657865202F736574207B64656661756C747D207265636F76657279656E61626C6564204E6F" ascii
$hr4 = "776261646D696E2044454C4554452053595354454D53544154454241434B5550202D64656C6574654F6C64657374" ascii
$hr5 = "626364656469742E657865202F736574207B64656661756C747D20626F6F74737461747573706F6C6963792069676E6F7265616C6C6661696C75726573" ascii
$hr6 = "76737361646D696E2E6578652044656C65746520536861646F7773202F416C6C202F5175696574" ascii
$hx1 = "476C6F62616C5C33353335354641352D303745392D343238422D423541352D314338384341423242343838" ascii
$hx2 = "534F4654574152455C4D6963726F736F66745C45524944" ascii
$hx3 = "227375626964223A22" ascii
$hx4 = "226E6574776F726B223A22" ascii
$hx5 = "726561646D652E747874" ascii
$hx6 = "-nolan" fullword wide
$o1 = { 8d 45 e9 89 9d 54 ff ff ff 88 9d 44 ff ff ff 3b }
$o2 = { 8b 44 24 2? 8b ?c 24 34 40 8b 54 24 38 89 44 24 }
$o3 = { 8b 44 24 2? 8b ?c 24 1c 89 44 24 34 8b 44 24 28 }
$o4 = { 8b 44 24 2? 8b ?c 24 34 05 00 00 a0 00 89 44 24 }
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $hx* ) or ( 2 of ( $hr* ) and 2 of ( $hx* ) ) or ( all of ( $o* ) and 2 of ( $h* ) ) )
}
Strings (16 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $hr1 | text | "776261646D696E2044454C4554452053595354454D53544154454241434B5550" | ascii |
| $hr2 | text | "776D69632E65786520534841444F57434F5059202F6E6F696E746572616374697665" | ascii |
| $hr3 | text | "626364656469742E657865202F736574207B64656661756C747D207265636F76657279656E61626C6564204E6F" | ascii |
| $hr4 | text | "776261646D696E2044454C4554452053595354454D53544154454241434B5550202D64656C6574654F6C64657374" | ascii |
| $hr5 | text | "626364656469742E657865202F736574207B64656661756C747D20626F6F74737461747573706F6C6963792069676E6F7265616C6C6661696C75726573" | ascii |
| $hr6 | text | "76737361646D696E2E6578652044656C65746520536861646F7773202F416C6C202F5175696574" | ascii |
| $hx1 | text | "476C6F62616C5C33353335354641352D303745392D343238422D423541352D314338384341423242343838" | ascii |
| $hx2 | text | "534F4654574152455C4D6963726F736F66745C45524944" | ascii |
| $hx3 | text | "227375626964223A22" | ascii |
| $hx4 | text | "226E6574776F726B223A22" | ascii |
| $hx5 | text | "726561646D652E747874" | ascii |
| $hx6 | text | "-nolan" | fullword wide |
| $o1 | hex | { 8d 45 e9 89 9d 54 ff ff ff 88 9d 44 ff ff ff 3b } | |
| $o2 | hex | { 8b 44 24 2? 8b ?c 24 34 40 8b 54 24 38 89 44 24 } | |
| $o3 | hex | { 8b 44 24 2? 8b ?c 24 1c 89 44 24 34 8b 44 24 28 } | |
| $o4 | hex | { 8b 44 24 2? 8b ?c 24 34 05 00 00 a0 00 89 44 24 } |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $hx* ) or ( 2 of ( $hr* ) and 2 of ( $hx* ) ) or ( all of ( $o* ) and 2 of ( $h* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $hx* ) must match.
- All patterns in ( $o* ) must match.
- At least 2 patterns in ( $hr* ) must match.
- At least 2 patterns in ( $hx* ) must match.
- At least 2 patterns in ( $h* ) 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: 0d74f6fd-e1d2-5939-991e-7fdd2ca3310b
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekShen· 2021-01-21
- ARKBIRD_SOLG_Ran_Ranzy_Locker_Nov_2020_1Metadata onlyMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-11-19
- 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