Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Medusalocker

Detects MedusaLocker ransomware

MalwareMedusalockerditekSHen 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 MedusaLocker ransomware

Familia de malware asociada: Medusalocker.

Objetivos: PE de Windows.

Define 20 patrones (18 de texto, 2 hex, 0 regex).

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

Código de la regla

malware-win-medusalocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Medusalocker : FILE
{
	meta:
		description = "Detects MedusaLocker ransomware"
		author = "ditekshen"
		id = "06b7645f-228d-5ec1-9b82-88caee447a5c"
		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#L2506-L2537"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "0e2a0a9f12f550a5c6a11731710e0dc2c2e26d17f43d2385bf6e298518631771"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.MedusaLocker"

	strings:
		$x1 = "\\MedusaLockerInfo\\MedusaLockerProject\\MedusaLocker\\Release\\MedusaLocker.pdb" ascii
		$x2 = "SOFTWARE\\Medusa" wide
		$x3 = "=?utf-8?B?0RFQctTF0YDQcNC60IXQvdC+IEludGVybmV0IED4cGxvseVyIDEz?=" ascii
		$s1 = "Recovery_Instructions.mht" fullword wide
		$s2 = "README_LOCK.TXT" fullword wide
		$s3 = "C:\\Users\\Public\\Desktop" wide
		$s4 = "[LOCKER] " wide
		$s5 = "TmV3LUl0ZW0gJ2" ascii
		$s6 = "<HEAD>=20" ascii
		$s7 = "LIST OF ENCRYPTED FILES" ascii
		$s8 = "KEY.FILE" ascii
		$cmd1 = { 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 }
		$cmd2 = "vssadmin.exe delete" wide nocase
		$cmd3 = "bcdedit.exe /set {default}" wide
		$cmd4 = "wbadmin delete systemstatebackup" wide nocase
		$mut1 = "{8761ABBD-7F85-42EE-B272-A76179687C63}" fullword wide
		$mut2 = "{3E5FC7F9-9A51-4367-9063-A120244FBEC7}" fullword wide
		$mut3 = "{6EDD6D74-C007-4E75-B76A-E5740995E24C}" fullword wide
		$ext1 = { 2e 00 52 00 65 00 61 00 64 00 49 00 6e 00 73 00 
                  74 00 72 00 75 00 63 00 74 00 69 00 6f 00 6e 00
                  73 00 00 00 00 00 00 00 2e 00 6b 00 65 00 76 00
                  65 00 72 00 73 00 65 00 6e }
		$ext2 = ".exe,.dll,.sys,.ini,.lnk,.rdp,.encrypted" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 4 of ( $s* ) or 1 of ( $mut* ) ) ) or 6 of ( $s* ) or ( 1 of ( $mut* ) and 2 of ( $cmd* ) ) or ( 1 of ( $ext* ) and 5 of them ) )
}

Cadenas (20 patrones)

IdentificadorTipoValorModificadores
$x1texto"\\MedusaLockerInfo\\MedusaLockerProject\\MedusaLocker\\Release\\MedusaLocker.pdb"ascii
$x2texto"SOFTWARE\\Medusa"wide
$x3texto"=?utf-8?B?0RFQctTF0YDQcNC60IXQvdC+IEludGVybmV0IED4cGxvseVyIDEz?="ascii
$s1texto"Recovery_Instructions.mht"fullword wide
$s2texto"README_LOCK.TXT"fullword wide
$s3texto"C:\\Users\\Public\\Desktop"wide
$s4texto"[LOCKER] "wide
$s5texto"TmV3LUl0ZW0gJ2"ascii
$s6texto"<HEAD>=20"ascii
$s7texto"LIST OF ENCRYPTED FILES"ascii
$s8texto"KEY.FILE"ascii
$cmd1hex{ 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 }
$cmd2texto"vssadmin.exe delete"wide nocase
$cmd3texto"bcdedit.exe /set {default}"wide
$cmd4texto"wbadmin delete systemstatebackup"wide nocase
$mut1texto"{8761ABBD-7F85-42EE-B272-A76179687C63}"fullword wide
$mut2texto"{3E5FC7F9-9A51-4367-9063-A120244FBEC7}"fullword wide
$mut3texto"{6EDD6D74-C007-4E75-B76A-E5740995E24C}"fullword wide
$ext1hex{ 2e 00 52 00 65 00 61 00 64 00 49 00 6e 00 73 00 74 00 72 00 75 00 63 00 74 00 69 00 6f 00 6e 00 73 00 00 00 00 00 00 00 2 …
$ext2texto".exe,.dll,.sys,.ini,.lnk,.rdp,.encrypted"fullword ascii

Condición

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 4 of ( $s* ) or 1 of ( $mut* ) ) ) or 6 of ( $s* ) or ( 1 of ( $mut* ) and 2 of ( $cmd* ) ) or ( 1 of ( $ext* ) and 5 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 1 patrones de ( $x* ).
  • Deben coincidir al menos 4 patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $mut* ).
  • Deben coincidir al menos 6 patrones de ( $s* ).
  • Deben coincidir al menos 2 patrones de ( $cmd* ).
  • Deben coincidir al menos 1 patrones de ( $ext* ).
  • Deben coincidir al menos 5 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: 06b7645f-228d-5ec1-9b82-88caee447a5c

Metadatos

clamav_sigMALWARE.Win.Ransomware.MedusaLocker

Etiquetas:FILE

Más reglas de Medusalocker