YARA · SEKOIA.IO Community
SEKOIA_Tool_Bypassgodzilla
Detects payload of BypassGodzilla
- Autor
- Sekoia.io
- Fecha
- 2024-09-09
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detects payload of BypassGodzilla
Define 11 patrones (11 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 SEKOIA_Tool_Bypassgodzilla : FILE
{
meta:
= "Detects payload of BypassGodzilla"
= "Sekoia.io"
= "fa492f97-a46c-422d-a617-c503744ee22e"
= "2024-09-09"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_bypassgodzilla.yar#L1-L38"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "571c9042c627abba19ba1d591e2083eb"
= "56cfc5a876f8f55bf184be9f368b6d8a"
= "d4f7ca537701aee8849c474bc4df19d1"
= "e4be04331c5f447b3ca03aa637d16c85"
= "905fa3b692577a086ac654ef89e8b83d"
= "47e52267c73209c6191910ac21bca44acac2100be96250fd5dda1f889fb03b07"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$jsp_1a = "response.getWriter().write(\""
$jsp_1b = "\".substring("
$jsp_2a = "response.getWriter().write(java.util.Base64/*"
$jsp_2b = "*/.getEncoder()/*"
$jsp_2c = ".toByteArray(),true)));"
$asp_1 = "[\"payload\"]).CreateInstance(\"LY\");"
$asp_2 = "\\U00000045\\U00000071\\U00000075\\U00000061\\U0000006C\\U00000073(Context);"
$php_1 = "=(\"!\"^\"@\").'ss'.Chr(\"101\").'rs';"
$php_2 = "*/md5/*"
$php_3 = "*/isset($_SESSION/*"
$php_4 = "@set_time_limit(Chr(\"48\"))"
condition:
(( all of ( $jsp_* ) and ( @jsp_1b- @jsp_1a < 70 ) and ( @jsp_2b- @jsp_2a < 70 ) and ( @jsp_2c - @jsp_2a < 160 ) ) or ( all of ( $asp_* ) and ( @asp_2 > @asp_1 ) ) or ( all of ( $php_* ) ) ) and filesize < 30KB and true
}
Cadenas (11 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $jsp_1a | texto | "response.getWriter().write(\"" | |
| $jsp_1b | texto | "\".substring(" | |
| $jsp_2a | texto | "response.getWriter().write(java.util.Base64/*" | |
| $jsp_2b | texto | "*/.getEncoder()/*" | |
| $jsp_2c | texto | ".toByteArray(),true)));" | |
| $asp_1 | texto | "[\"payload\"]).CreateInstance(\"LY\");" | |
| $asp_2 | texto | "\\U00000045\\U00000071\\U00000075\\U00000061\\U0000006C\\U00000073(Context);" | |
| $php_1 | texto | "=(\"!\"^\"@\").'ss'.Chr(\"101\").'rs';" | |
| $php_2 | texto | "*/md5/*" | |
| $php_3 | texto | "*/isset($_SESSION/*" | |
| $php_4 | texto | "@set_time_limit(Chr(\"48\"))" |
Condición
(( all of ( $jsp_* ) and ( @jsp_1b- @jsp_1a < 70 ) and ( @jsp_2b- @jsp_2a < 70 ) and ( @jsp_2c - @jsp_2a < 160 ) ) or ( all of ( $asp_* ) and ( @asp_2 > @asp_1 ) ) or ( all of ( $php_* ) ) ) and filesize < 30KB and trueEn palabras sencillas (Heurística)
- El archivo debe ocupar menos de 30KB (un límite barato que descarta archivos grandes).
- Deben coincidir todos los patrones de ( $jsp_* ).
- Deben coincidir todos los patrones de ( $asp_* ).
- Deben coincidir todos los patrones de ( $php_* ).
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
Hashes de muestras
Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).
- 571c9042c627abba19ba1d591e2083eb
- 56cfc5a876f8f55bf184be9f368b6d8a
- d4f7ca537701aee8849c474bc4df19d1
- e4be04331c5f447b3ca03aa637d16c85
- 905fa3b692577a086ac654ef89e8b83d
Licencia y atribución
Autor: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
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: fa492f97-a46c-422d-a617-c503744ee22e
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2022-09-09