YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_PAS_Webshell
Detects P.A.S. PHP webshell - Based on DHS/FBI JAR-16-2029 (Grizzly Steppe)
- Autor
- FR/ANSSI/SDO (modified by Florian Roth)
- Fecha
- 2021-02-15
- Modificada
- 2024-05-25
- Puntuación / Calidad
- 70 / 85
Qué detecta esta regla
Detects P.A.S. PHP webshell - Based on DHS/FBI JAR-16-2029 (Grizzly Steppe)
Define 6 patrones (6 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 SIGNATURE_BASE_WEBSHELL_PAS_Webshell : FILE
{
meta:
= "Detects P.A.S. PHP webshell - Based on DHS/FBI JAR-16-2029 (Grizzly Steppe)"
= "FR/ANSSI/SDO (modified by Florian Roth)"
= "862aab77-936e-524c-8669-4f48730f4ed5"
= "2021-02-15"
= "2024-05-25"
= "https://www.cert.ssi.gouv.fr/uploads/CERTFR-2021-CTI-005.pdf"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_sandworm_centreon.yar#L10-L28"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "977ee0fdf0e92ccea6b71fea7b2c7aed2965c6966d8af86230ccb0f95b286694"
= 70
= 85
= "FILE"
strings:
$php = "<?php"
$strreplace = "(str_replace("
$md5 = ".substr(md5(strrev($"
$gzinflate = "gzinflate"
$cookie = "_COOKIE"
$isset = "isset"
condition:
( filesize > 20KB and filesize < 200KB ) and all of them
}
Cadenas (6 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $php | texto | "<?php" | |
| $strreplace | texto | "(str_replace(" | |
| $md5 | texto | ".substr(md5(strrev($" | |
| $gzinflate | texto | "gzinflate" | |
| $cookie | texto | "_COOKIE" | |
| $isset | texto | "isset" |
Condición
( filesize > 20KB and filesize < 200KB ) and all of themEn palabras sencillas (Heurística)
- El archivo debe ocupar menos de 200KB (un límite barato que descarta archivos grandes).
- El archivo debe ocupar más de 20KB.
- Deben coincidir todos los patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Licencia y atribución
Autor: FR/ANSSI/SDO (modified by Florian Roth)
Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: 862aab77-936e-524c-8669-4f48730f4ed5
Etiquetas:FILE
Reglas relacionadas
- WebshellSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO (modified by Florian Roth)· 2021-02-15