Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Babuk

Detects Babuk ransomware

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

Qué detecta esta regla

Detects Babuk ransomware

Familia de malware asociada: Babuk.

Objetivos: PE de Windows.

Define 15 patrones (14 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-babuk.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Babuk : FILE
{
	meta:
		description = "Detects Babuk ransomware"
		author = "ditekSHen"
		id = "6bb7093f-bbef-5b43-b4f9-be72ae4ef319"
		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#L3652-L3674"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5ca5c5106747cf8f4ccd5df4ddbc78321fea3c8f533cb807a704d270eb956007"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "ecdh_pub_k.bin" wide
		$s2 = "How To Restore Your Files.txt" wide
		$s3 = /(babuk|babyk)\s(ransomware|locker)/ ascii nocase
		$s4 = "/login.php?id=" ascii
		$s5 = "http://babuk" ascii
		$s6 = "bootsect.bak" fullword wide
		$s7 = "Can't open file after killHolder" ascii
		$s8 = "Can't OpenProcess" ascii
		$s9 = "DoYouWantToHaveSexWithCuongDong" ascii
		$arg1 = "-lanfirst" fullword ascii
		$arg2 = "-lansecond" fullword ascii
		$arg3 = "-nolan" fullword ascii
		$arg4 = "shares" fullword wide
		$arg5 = "paths" fullword wide
		$arg6 = "gdebug" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( 3 of ( $arg* ) and 2 of ( $s* ) ) )
}

Cadenas (15 patrones)

IdentificadorTipoValorModificadores
$s1texto"ecdh_pub_k.bin"wide
$s2texto"How To Restore Your Files.txt"wide
$s3regex/(babuk|babyk)\s(ransomware|locker)/ascii nocase
$s4texto"/login.php?id="ascii
$s5texto"http://babuk"ascii
$s6texto"bootsect.bak"fullword wide
$s7texto"Can't open file after killHolder"ascii
$s8texto"Can't OpenProcess"ascii
$s9texto"DoYouWantToHaveSexWithCuongDong"ascii
$arg1texto"-lanfirst"fullword ascii
$arg2texto"-lansecond"fullword ascii
$arg3texto"-nolan"fullword ascii
$arg4texto"shares"fullword wide
$arg5texto"paths"fullword wide
$arg6texto"gdebug"fullword wide

Condición

uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( 3 of ( $arg* ) and 2 of ( $s* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 3 patrones de ( $s* ).
  • Deben coincidir al menos 3 patrones de ( $arg* ).
  • Deben coincidir al menos 2 patrones de ( $s* ).

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: 6bb7093f-bbef-5b43-b4f9-be72ae4ef319

Etiquetas:FILE

Más reglas de Babuk