Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Ranzylocker

Detects RanzyLocker / REntS ransomware

MalwareRanzylockerditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
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

malware-win-ranzylocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Ranzylocker : FILE
{
	meta:
		description = "Detects RanzyLocker / REntS ransomware"
		author = "ditekSHen"
		id = "0d74f6fd-e1d2-5939-991e-7fdd2ca3310b"
		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#L5019-L5042"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "15897144843acf49b81c5428fd1bb56d7a2acf16047a6e5d3ca4f2aaa8891577"
		score = 75
		quality = 75
		tags = "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)

IdentifiantTypeValeurModificateurs
$hr1texte"776261646D696E2044454C4554452053595354454D53544154454241434B5550"ascii
$hr2texte"776D69632E65786520534841444F57434F5059202F6E6F696E746572616374697665"ascii
$hr3texte"626364656469742E657865202F736574207B64656661756C747D207265636F76657279656E61626C6564204E6F"ascii
$hr4texte"776261646D696E2044454C4554452053595354454D53544154454241434B5550202D64656C6574654F6C64657374"ascii
$hr5texte"626364656469742E657865202F736574207B64656661756C747D20626F6F74737461747573706F6C6963792069676E6F7265616C6C6661696C75726573"ascii
$hr6texte"76737361646D696E2E6578652044656C65746520536861646F7773202F416C6C202F5175696574"ascii
$hx1texte"476C6F62616C5C33353335354641352D303745392D343238422D423541352D314338384341423242343838"ascii
$hx2texte"534F4654574152455C4D6963726F736F66745C45524944"ascii
$hx3texte"227375626964223A22"ascii
$hx4texte"226E6574776F726B223A22"ascii
$hx5texte"726561646D652E747874"ascii
$hx6texte"-nolan"fullword wide
$o1hex{ 8d 45 e9 89 9d 54 ff ff ff 88 9d 44 ff ff ff 3b }
$o2hex{ 8b 44 24 2? 8b ?c 24 34 40 8b 54 24 38 89 44 24 }
$o3hex{ 8b 44 24 2? 8b ?c 24 1c 89 44 24 34 8b 44 24 28 }
$o4hex{ 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é.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

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).

Règle d’origine

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

Plus de règles Ranzylocker