YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ranzylocker
Detects RanzyLocker / REntS ransomware
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects RanzyLocker / REntS ransomware
Famille de malware associée : Ranzylocker.
Cibles : PE Windows.
Elle définit 16 motifs (12 texte, 4 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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* ) ) )
}
Chaînes (16 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $hr1 | texte | "776261646D696E2044454C4554452053595354454D53544154454241434B5550" | ascii |
| $hr2 | texte | "776D69632E65786520534841444F57434F5059202F6E6F696E746572616374697665" | ascii |
| $hr3 | texte | "626364656469742E657865202F736574207B64656661756C747D207265636F76657279656E61626C6564204E6F" | ascii |
| $hr4 | texte | "776261646D696E2044454C4554452053595354454D53544154454241434B5550202D64656C6574654F6C64657374" | ascii |
| $hr5 | texte | "626364656469742E657865202F736574207B64656661756C747D20626F6F74737461747573706F6C6963792069676E6F7265616C6C6661696C75726573" | ascii |
| $hr6 | texte | "76737361646D696E2E6578652044656C65746520536861646F7773202F416C6C202F5175696574" | ascii |
| $hx1 | texte | "476C6F62616C5C33353335354641352D303745392D343238422D423541352D314338384341423242343838" | ascii |
| $hx2 | texte | "534F4654574152455C4D6963726F736F66745C45524944" | ascii |
| $hx3 | texte | "227375626964223A22" | ascii |
| $hx4 | texte | "226E6574776F726B223A22" | ascii |
| $hx5 | texte | "726561646D652E747874" | ascii |
| $hx6 | texte | "-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* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $hx* ) doivent être trouvés.
- Tous les motifs de ( $o* ) doivent être trouvés.
- Au moins 2 motifs de ( $hr* ) doivent être trouvés.
- Au moins 2 motifs de ( $hx* ) doivent être trouvés.
- Au moins 2 motifs de ( $h* ) doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Licence et attribution
Auteur : ditekSHen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 0d74f6fd-e1d2-5939-991e-7fdd2ca3310b
Tags:FILE
Règles liées
- Suspect / chasseditekSHen detection· ditekShen· 2021-01-21
- ARKBIRD_SOLG_Ran_Ranzy_Locker_Nov_2020_1Métadonnées seulesMalwareArkbird 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