Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lorenz

Detects Lorenz ransomware

MalwareLorenzditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 73

Ce que détecte cette règle

Detects Lorenz ransomware

Famille de malware associée : Lorenz.

Cibles : PE Windows.

Elle définit 23 motifs (22 texte, 0 hex, 1 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-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 ) )
}

Chaînes (23 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"143.198.117.43"fullword ascii
$x2texte"157.90.147.28"fullword ascii
$x3texte"//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion"ascii
$x4texte"http://lorenz"ascii
$x5texte"\\lora\\Release\\lora.pdb"ascii
$x6texte"--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ"ascii
$x7texte"/USER:'HOMEOFFICE.COM\\"ascii
$x8texte"/USER:'Sentinel.com\\"ascii
$s1texte"to->_What == nullptr && to->_DoFree == false"fullword wide
$s2texte"*it == '\\0'"fullword wide
$s3texte"process call create 'cmd.exe /c"ascii
$s4texte"\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D"ascii
$s5texte"HELP_SECURITY_EVENT.html"ascii
$s6texte"<br>[+] Whats Happen?"ascii
$s7regex/\.Lorenz\.sz\d+$/fullword ascii
$s8texte"TW9Vc29Db3JlV29ya2VyLmV4ZQ=="fullword ascii
$s9texte".Speak(\"You've been hack"ascii nocase
$s10texte"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo"ascii
$n1texte"ame_serv="ascii
$n2texte"&ip="ascii
$n3texte"&winver=Windows"ascii
$n4texte"&list_drive="ascii
$n5texte"&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 ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 2 motifs de ( $x* ) doivent être trouvés.
  • Au moins 8 motifs de ( $s* ) doivent être trouvés.
  • Au moins 4 motifs de ( $n* ) doivent être trouvés.
  • Au moins 2 motifs de la règle doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 6 motifs de la règle 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: 9c11cfbc-aa77-5138-81e4-3a5f4f21a470

Tags:FILE

Plus de règles Lorenz