YARA · Volexity threat-intel
VOLEXITY_Susp_Php_Fileinput_Eval
Rule designed to detect PHP files which use file_get_contents() and then shortly afterwards use an eval statement.
- Autor
- threatintel@volexity.com
- Fecha
- 2021-06-16
- Modificada
- 2024-12-12
- Puntuación / Calidad
- 65 / 80
Qué detecta esta regla
Rule designed to detect PHP files which use file_get_contents() and then shortly afterwards use an eval statement.
Define 2 patrones (2 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 VOLEXITY_Susp_Php_Fileinput_Eval : FILE
{
meta:
= "Rule designed to detect PHP files which use file_get_contents() and then shortly afterwards use an eval statement."
= "threatintel@volexity.com"
= "3e311677-22ea-5e5f-bdc6-dd67033d25a6"
= "2021-06-16"
= "2024-12-12"
= "https://github.com/volexity/threat-intel"
= "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2022/2022-06-15 DriftingCloud - Zero-Day Sophos Firewall Exploitation and an Insidious Breach/indicators/yara.yar#L159-L182"
= "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
= "1a34c43611ee310c16acc383c10a7b8b41578c19ee85716b14ac5adbf0a13bd5"
= "6e8874c756c009c63f715a44ca72d0cb31dc25d87d7df6ca2830fe8330580342"
= "de376bfdfa5b6244c414454cb5d43d29e3dd75e049389f0c430c160f9d198965"
= 65
= 80
= "FILE"
= "win,linux"
= "all"
= "file"
= "high"
= "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
= 5581
= 5
strings:
$s1 = "file_get_contents(\"php://input\")"
$s2 = "eval("
condition:
$s2 in ( @s1 [ 1 ] .. ( @s1 [ 1 ] + 512 ) )
}
Cadenas (2 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "file_get_contents(\"php://input\")" | |
| $s2 | texto | "eval(" |
Condición
$s2 in ( @s1 [ 1 ] .. ( @s1 [ 1 ] + 512 ) )En palabras sencillas (Heurística)
- El patrón $s2 debe estar en el rango @s1 [ 1 ] .. ( @s1 [ 1 ] + 512.
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).
- 1a34c43611ee310c16acc383c10a7b8b41578c19ee85716b14ac5adbf0a13bd5
- 6e8874c756c009c63f715a44ca72d0cb31dc25d87d7df6ca2830fe8330580342
Licencia y atribución
Autor: threatintel@volexity.com
Repositorio de origen: Volexity threat-intel @ 3a9d0b5245
Licencia: BSD 2-Clause License (indicada en los metadatos de la regla)
“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”
Aviso de copyright: Copyright 2022 by Volexity, Inc.
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: 3e311677-22ea-5e5f-bdc6-dd67033d25a6
Metadatos
| os | win,linux |
|---|---|
| os_arch | all |
| scan_context | file |
| severity | high |
| rule_id | 5581 |
| version | 5 |
Etiquetas:FILE
Reglas relacionadas
- Sospechoso / huntingVolexity threat-intel· threatintel@volexity.com· 2022-02-02
- Sospechoso / huntingVolexity threat-intel· threatintel@volexity.com· 2021-06-16
- APT / actorVolexity threat-intel· threatintel@volexity.com· 2024-07-30
- APT / actorVolexity threat-intel· threatintel@volexity.com· 2023-07-21
- APT / actorVolexity threat-intel· threatintel@volexity.com· 2023-08-17
- APT / actorVolexity threat-intel· threatintel@volexity.com· 2023-03-30
- APT / actorVolexity threat-intel· threatintel@volexity.com· 2022-11-03
- APT / actorVolexity threat-intel· threatintel@volexity.com· 2022-11-02