YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Masslogger
MassLogger keylogger payload
- 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
rule DITEKSHEN_MALWARE_Win_Masslogger : FILE
{
meta:
= "MassLogger keylogger payload"
= "ditekSHen"
= "9181b89a-2ce8-59b6-9703-c01a8471b8d6"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L905-L934"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "7d8bbefa71a1eb20cd9d029bd516d6c37e39cfa053ed0617eace200d210d9b58"
= 75
= 73
= "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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "MassLogger v" | ascii wide |
| $s2 | texto | "MassLogger Started:" | ascii wide |
| $s3 | texto | "MassLogger Process:" | ascii wide |
| $s4 | texto | "/panel/upload.php" | wide |
| $s5 | texto | "ftp://" | wide |
| $s6 | texto | "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" | fullword wide |
| $s7 | texto | "^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$" | fullword wide |
| $s8 | texto | "Bot Killer" | ascii |
| $s9 | texto | "Keylogger And Clipboard" | ascii |
| $c1 | texto | "costura.ionic.zip.reduced.dll.compressed" | fullword ascii |
| $c2 | texto | "CHECKvUNIQUEq" | fullword ascii |
| $c3 | texto | "HOOK/MEMORY6" | fullword ascii |
| $c4 | texto | "Massfile" | ascii wide |
| $c5 | texto | "Fz=[0-9]*'skips*" | fullword ascii |
| $c6 | texto | ":=65535zO" | fullword ascii |
| $c7 | texto | "!$!%!&!'!(!)!*!.!/!0!4!" | fullword ascii |
| $c8 | texto | "5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!" | fullword ascii |
| $c9 | texto | "dllToLoad" | fullword ascii |
| $c10 | texto | "set_CreateNoWindow" | fullword ascii |
| $c11 | texto | "FtpWebRequest" | fullword ascii |
| $c12 | texto | "encryptedUsername" | fullword ascii |
| $c13 | texto | "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.
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).
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
Reglas relacionadas
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2020-10-20
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06