Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Ranzylocker

Detects RanzyLocker / REntS ransomware

MalwareRanzylockerditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 75

Was diese Regel erkennt

Detects RanzyLocker / REntS ransomware

Zugehörige Malware-Familie: Ranzylocker.

Ziele: Windows-PE.

Sie definiert 16 Muster (12 Text, 4 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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* ) ) )
}

Strings (16 Muster)

BezeichnerTypWertModifikatoren
$hr1Text"776261646D696E2044454C4554452053595354454D53544154454241434B5550"ascii
$hr2Text"776D69632E65786520534841444F57434F5059202F6E6F696E746572616374697665"ascii
$hr3Text"626364656469742E657865202F736574207B64656661756C747D207265636F76657279656E61626C6564204E6F"ascii
$hr4Text"776261646D696E2044454C4554452053595354454D53544154454241434B5550202D64656C6574654F6C64657374"ascii
$hr5Text"626364656469742E657865202F736574207B64656661756C747D20626F6F74737461747573706F6C6963792069676E6F7265616C6C6661696C75726573"ascii
$hr6Text"76737361646D696E2E6578652044656C65746520536861646F7773202F416C6C202F5175696574"ascii
$hx1Text"476C6F62616C5C33353335354641352D303745392D343238422D423541352D314338384341423242343838"ascii
$hx2Text"534F4654574152455C4D6963726F736F66745C45524944"ascii
$hx3Text"227375626964223A22"ascii
$hx4Text"226E6574776F726B223A22"ascii
$hx5Text"726561646D652E747874"ascii
$hx6Text"-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 }

Bedingung

uint16( 0 ) == 0x5a4d and ( all of ( $hx* ) or ( 2 of ( $hr* ) and 2 of ( $hx* ) ) or ( all of ( $o* ) and 2 of ( $h* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $hx* ) müssen treffen.
  • Alle Muster aus ( $o* ) müssen treffen.
  • Mindestens 2 Muster aus ( $hr* ) müssen treffen.
  • Mindestens 2 Muster aus ( $hx* ) müssen treffen.
  • Mindestens 2 Muster aus ( $h* ) müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 0d74f6fd-e1d2-5939-991e-7fdd2ca3310b

Tags:FILE

Weitere Ranzylocker-Regeln