YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ranzylocker
Detects RanzyLocker / REntS ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects RanzyLocker / REntS ransomware
Familia de malware asociada: Ranzylocker.
Objetivos: PE de Windows.
Define 16 patrones (12 de texto, 4 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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* ) ) )
}
Cadenas (16 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $hr1 | texto | "776261646D696E2044454C4554452053595354454D53544154454241434B5550" | ascii |
| $hr2 | texto | "776D69632E65786520534841444F57434F5059202F6E6F696E746572616374697665" | ascii |
| $hr3 | texto | "626364656469742E657865202F736574207B64656661756C747D207265636F76657279656E61626C6564204E6F" | ascii |
| $hr4 | texto | "776261646D696E2044454C4554452053595354454D53544154454241434B5550202D64656C6574654F6C64657374" | ascii |
| $hr5 | texto | "626364656469742E657865202F736574207B64656661756C747D20626F6F74737461747573706F6C6963792069676E6F7265616C6C6661696C75726573" | ascii |
| $hr6 | texto | "76737361646D696E2E6578652044656C65746520536861646F7773202F416C6C202F5175696574" | ascii |
| $hx1 | texto | "476C6F62616C5C33353335354641352D303745392D343238422D423541352D314338384341423242343838" | ascii |
| $hx2 | texto | "534F4654574152455C4D6963726F736F66745C45524944" | ascii |
| $hx3 | texto | "227375626964223A22" | ascii |
| $hx4 | texto | "226E6574776F726B223A22" | ascii |
| $hx5 | texto | "726561646D652E747874" | ascii |
| $hx6 | texto | "-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 } |
Condición
uint16( 0 ) == 0x5a4d and ( all of ( $hx* ) or ( 2 of ( $hr* ) and 2 of ( $hx* ) ) or ( all of ( $o* ) and 2 of ( $h* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $hx* ).
- Deben coincidir todos los patrones de ( $o* ).
- Deben coincidir al menos 2 patrones de ( $hr* ).
- Deben coincidir al menos 2 patrones de ( $hx* ).
- Deben coincidir al menos 2 patrones de ( $h* ).
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Licencia y atribución
Autor: ditekSHen
Repositorio de origen: ditekSHen detection @ e76c93dcde
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 0d74f6fd-e1d2-5939-991e-7fdd2ca3310b
Etiquetas:FILE
Reglas relacionadas
- Sospechoso / huntingditekSHen detection· ditekShen· 2021-01-21
- ARKBIRD_SOLG_Ran_Ranzy_Locker_Nov_2020_1Solo metadatosMalwareArkbird 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