YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ratty
Detects Ratty Java RAT
- Autor
- ditekshen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Ratty Java RAT
Familia de malware asociada: Ratty.
Objetivos: PE de Windows.
Define 12 patrones (12 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_Ratty : FILE
{
meta:
= "Detects Ratty Java RAT"
= "ditekshen"
= "87719e28-dfe7-5366-8d90-65e6c0c6fb4f"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3910-L3929"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d90bca1b18023da8e60cb6ca86d1c562bff3867c6d5cf893dce605ebb92b9637"
= 75
= 75
= "FILE"
strings:
$s1 = "/rat/RattyClient.class" ascii
$s2 = "/rat/ActiveConnection.class" ascii
$s3 = "/rat/attack/" ascii
$s4 = "/rat/gui/swing/Ratty" ascii
$s5 = "/rat/packet/PasswordPacket" ascii
$s6 = "/rat/packet/" ascii
$e1 = "/engine/Keyboard.class" ascii
$e2 = "/engine/IMouseListener.class" ascii
$e3 = "/engine/Screen$ResizeBehavior.class" ascii
$e4 = "/engine/fx/ISoundListener.class" ascii
$e5 = "/engine/net/TCPServer.class" ascii
$e6 = "/engine/noise/PerlinNoise.class" ascii
condition:
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0xcfd0 or uint16( 0 ) == 0x4b50 ) and ( 3 of ( $s* ) or all of ( $e* ) )
}
Cadenas (12 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "/rat/RattyClient.class" | ascii |
| $s2 | texto | "/rat/ActiveConnection.class" | ascii |
| $s3 | texto | "/rat/attack/" | ascii |
| $s4 | texto | "/rat/gui/swing/Ratty" | ascii |
| $s5 | texto | "/rat/packet/PasswordPacket" | ascii |
| $s6 | texto | "/rat/packet/" | ascii |
| $e1 | texto | "/engine/Keyboard.class" | ascii |
| $e2 | texto | "/engine/IMouseListener.class" | ascii |
| $e3 | texto | "/engine/Screen$ResizeBehavior.class" | ascii |
| $e4 | texto | "/engine/fx/ISoundListener.class" | ascii |
| $e5 | texto | "/engine/net/TCPServer.class" | ascii |
| $e6 | texto | "/engine/noise/PerlinNoise.class" | ascii |
Condición
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0xcfd0 or uint16( 0 ) == 0x4b50 ) and ( 3 of ( $s* ) or all of ( $e* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- El archivo debe empezar por «PK»: un ZIP (también Office Open XML, JAR, APK).
- Deben coincidir todos los patrones de ( $e* ).
- Deben coincidir al menos 3 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: 87719e28-dfe7-5366-8d90-65e6c0c6fb4f
Etiquetas:FILE
Reglas relacionadas
- 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
- MalwareditekSHen detection· ditekshen· 2020-11-06
- MalwareditekSHen detection· ditekshen· 2020-11-06