Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Lorenz

Detects Lorenz ransomware

MalwareLorenzditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 73

Qué detecta esta regla

Detects Lorenz ransomware

Familia de malware asociada: Lorenz.

Objetivos: PE de Windows.

Define 23 patrones (22 de texto, 0 hex, 1 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

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

Cadenas (23 patrones)

IdentificadorTipoValorModificadores
$x1texto"143.198.117.43"fullword ascii
$x2texto"157.90.147.28"fullword ascii
$x3texto"//kpb3ss3vwvfejd4g3gvpvqo6ad7nnmvcqoik4mxt2376yu2adlg5fwyd.onion"ascii
$x4texto"http://lorenz"ascii
$x5texto"\\lora\\Release\\lora.pdb"ascii
$x6texto"--MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ"ascii
$x7texto"/USER:'HOMEOFFICE.COM\\"ascii
$x8texto"/USER:'Sentinel.com\\"ascii
$s1texto"to->_What == nullptr && to->_DoFree == false"fullword wide
$s2texto"*it == '\\0'"fullword wide
$s3texto"process call create 'cmd.exe /c"ascii
$s4texto"\\Control Panel\\Desktop\" /V Wallpaper /T REG_SZ /F /D"ascii
$s5texto"HELP_SECURITY_EVENT.html"ascii
$s6texto"<br>[+] Whats Happen?"ascii
$s7regex/\.Lorenz\.sz\d+$/fullword ascii
$s8texto"TW9Vc29Db3JlV29ya2VyLmV4ZQ=="fullword ascii
$s9texto".Speak(\"You've been hack"ascii nocase
$s10texto"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAo"ascii
$n1texto"ame_serv="ascii
$n2texto"&ip="ascii
$n3texto"&winver=Windows"ascii
$n4texto"&list_drive="ascii
$n5texto"&file="ascii

Condición

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 palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 2 patrones de ( $x* ).
  • Deben coincidir al menos 8 patrones de ( $s* ).
  • Deben coincidir al menos 4 patrones de ( $n* ).
  • Deben coincidir al menos 2 patrones de la regla.
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • Deben coincidir al menos 6 patrones de la regla.

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

Licencia y atribución

Autor: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Regla original

Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.

Id de la regla: 9c11cfbc-aa77-5138-81e4-3a5f4f21a470

Etiquetas:FILE

Más reglas de Lorenz