Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Masslogger

MassLogger keylogger payload

MalwareMassloggerditekSHen 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

MassLogger keylogger payload

Familia de malware asociada: Masslogger.

Objetivos: PE de Windows.

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

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

Código de la regla

malware-win-masslogger.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Masslogger : FILE
{
	meta:
		description = "MassLogger keylogger payload"
		author = "ditekSHen"
		id = "9181b89a-2ce8-59b6-9703-c01a8471b8d6"
		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#L905-L934"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "7d8bbefa71a1eb20cd9d029bd516d6c37e39cfa053ed0617eace200d210d9b58"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "MassLogger v" ascii wide
		$s2 = "MassLogger Started:" ascii wide
		$s3 = "MassLogger Process:" ascii wide
		$s4 = "/panel/upload.php" wide
		$s5 = "ftp://" wide
		$s6 = "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" fullword wide
		$s7 = "^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$" fullword wide
		$s8 = "Bot Killer" ascii
		$s9 = "Keylogger And Clipboard" ascii
		$c1 = "costura.ionic.zip.reduced.dll.compressed" fullword ascii
		$c2 = "CHECKvUNIQUEq" fullword ascii
		$c3 = "HOOK/MEMORY6" fullword ascii
		$c4 = "Massfile" ascii wide
		$c5 = "Fz=[0-9]*'skips*" fullword ascii
		$c6 = ":=65535zO" fullword ascii
		$c7 = "!$!%!&!'!(!)!*!.!/!0!4!" fullword ascii
		$c8 = "5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!" fullword ascii
		$c9 = "dllToLoad" fullword ascii
		$c10 = "set_CreateNoWindow" fullword ascii
		$c11 = "FtpWebRequest" fullword ascii
		$c12 = "encryptedUsername" fullword ascii
		$c13 = "encryptedPassword" fullword ascii

	condition:
		( uint16( 0 ) == 0x5a4d and 9 of ( $c* ) ) or ( 5 of ( $s* ) or 9 of ( $c* ) )
}

Cadenas (22 patrones)

IdentificadorTipoValorModificadores
$s1texto"MassLogger v"ascii wide
$s2texto"MassLogger Started:"ascii wide
$s3texto"MassLogger Process:"ascii wide
$s4texto"/panel/upload.php"wide
$s5texto"ftp://"wide
$s6texto"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"fullword wide
$s7texto"^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$"fullword wide
$s8texto"Bot Killer"ascii
$s9texto"Keylogger And Clipboard"ascii
$c1texto"costura.ionic.zip.reduced.dll.compressed"fullword ascii
$c2texto"CHECKvUNIQUEq"fullword ascii
$c3texto"HOOK/MEMORY6"fullword ascii
$c4texto"Massfile"ascii wide
$c5texto"Fz=[0-9]*'skips*"fullword ascii
$c6texto":=65535zO"fullword ascii
$c7texto"!$!%!&!'!(!)!*!.!/!0!4!"fullword ascii
$c8texto"5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!"fullword ascii
$c9texto"dllToLoad"fullword ascii
$c10texto"set_CreateNoWindow"fullword ascii
$c11texto"FtpWebRequest"fullword ascii
$c12texto"encryptedUsername"fullword ascii
$c13texto"encryptedPassword"fullword ascii

Condición

( uint16( 0 ) == 0x5a4d and 9 of ( $c* ) ) or ( 5 of ( $s* ) or 9 of ( $c* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 9 patrones de ( $c* ).
  • Deben coincidir al menos 5 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: 9181b89a-2ce8-59b6-9703-c01a8471b8d6

Etiquetas:FILE