Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lorenz

Detects Lorenz ransomware

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

Was diese Regel erkennt

Detects Lorenz ransomware

Zugehörige Malware-Familie: Lorenz.

Ziele: Windows-PE.

Sie definiert 23 Muster (22 Text, 0 Hex, 1 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-lorenz.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lorenz : FILE
{
	meta:
		description = "Detects Lorenz ransomware"
		author = "ditekSHen"
		id = "9c11cfbc-aa77-5138-81e4-3a5f4f21a470"
		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#L9235-L9265"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e9fc9d405b955c379ae40b1804d43b19999f6ea264fc645c897080fb020e8ae8"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "143.198.117.43" fullword ascii
		$x2 = "157.90.147.28" fullword ascii
		$x3 = "//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion" ascii
		$x4 = "http://lorenz" ascii
		$x5 = "\\lora\\Release\\lora.pdb" ascii
		$x6 = "--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ" ascii
		$x7 = "/USER:'HOMEOFFICE.COM\\" ascii
		$x8 = "/USER:'Sentinel.com\\" ascii
		$s1 = "to->_What == nullptr && to->_DoFree == false" fullword wide
		$s2 = "*it == '\\0'" fullword wide
		$s3 = "process call create 'cmd.exe /c" ascii
		$s4 = "\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D" ascii
		$s5 = "HELP_SECURITY_EVENT.html" ascii
		$s6 = "<br>[+] Whats Happen?" ascii
		$s7 = /\.Lorenz\.sz\d+$/ fullword ascii
		$s8 = "TW9Vc29Db3JlV29ya2VyLmV4ZQ==" fullword ascii
		$s9 = ".Speak(\"You've been hack" ascii nocase
		$s10 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo" ascii
		$n1 = "ame_serv=" ascii
		$n2 = "&ip=" ascii
		$n3 = "&winver=Windows" ascii
		$n4 = "&list_drive=" ascii
		$n5 = "&file=" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $s* ) or ( 4 of ( $n* ) and 2 of them ) or ( 1 of ( $x* ) and 6 of them ) )
}

Strings (23 Muster)

BezeichnerTypWertModifikatoren
$x1Text"143.198.117.43"fullword ascii
$x2Text"157.90.147.28"fullword ascii
$x3Text"//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion"ascii
$x4Text"http://lorenz"ascii
$x5Text"\\lora\\Release\\lora.pdb"ascii
$x6Text"--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ"ascii
$x7Text"/USER:'HOMEOFFICE.COM\\"ascii
$x8Text"/USER:'Sentinel.com\\"ascii
$s1Text"to->_What == nullptr && to->_DoFree == false"fullword wide
$s2Text"*it == '\\0'"fullword wide
$s3Text"process call create 'cmd.exe /c"ascii
$s4Text"\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D"ascii
$s5Text"HELP_SECURITY_EVENT.html"ascii
$s6Text"<br>[+] Whats Happen?"ascii
$s7Regex/\.Lorenz\.sz\d+$/fullword ascii
$s8Text"TW9Vc29Db3JlV29ya2VyLmV4ZQ=="fullword ascii
$s9Text".Speak(\"You've been hack"ascii nocase
$s10Text"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo"ascii
$n1Text"ame_serv="ascii
$n2Text"&ip="ascii
$n3Text"&winver=Windows"ascii
$n4Text"&list_drive="ascii
$n5Text"&file="ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $s* ) or ( 4 of ( $n* ) and 2 of them ) or ( 1 of ( $x* ) and 6 of them ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 8 Muster aus ( $s* ) müssen treffen.
  • Mindestens 4 Muster aus ( $n* ) müssen treffen.
  • Mindestens 2 Muster aus der Regel müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 6 Muster aus der Regel 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: 9c11cfbc-aa77-5138-81e4-3a5f4f21a470

Tags:FILE

Weitere Lorenz-Regeln