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.
- Auteur
- threatintel@volexity.com
- Date
- 2021-06-16
- Modifiée
- 2024-12-12
- Score / Qualité
- 65 / 80
Ce que détecte cette règle
Rule designed to detect PHP files which use file_get_contents() and then shortly afterwards use an eval statement.
Elle définit 2 motifs (2 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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 ) )
}
Chaînes (2 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "file_get_contents(\"php://input\")" | |
| $s2 | texte | "eval(" |
Condition
$s2 in ( @s1 [ 1 ] .. ( @s1 [ 1 ] + 512 ) )En clair (Heuristique)
- Le motif $s2 doit se trouver dans la plage @s1 [ 1 ] .. ( @s1 [ 1 ] + 512.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 1a34c43611ee310c16acc383c10a7b8b41578c19ee85716b14ac5adbf0a13bd5
- 6e8874c756c009c63f715a44ca72d0cb31dc25d87d7df6ca2830fe8330580342
Licence et attribution
Auteur : threatintel@volexity.com
Dépôt source : Volexity threat-intel @ 3a9d0b5245
Licence : BSD 2-Clause License (indiquée dans les métadonnées de la règle)
“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”
Mention de copyright : Copyright 2022 by Volexity, Inc.
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 3e311677-22ea-5e5f-bdc6-dd67033d25a6
Métadonnées
| os | win,linux |
|---|---|
| os_arch | all |
| scan_context | file |
| severity | high |
| rule_id | 5581 |
| version | 5 |
Tags:FILE
Règles liées
- Suspect / chasseVolexity threat-intel· threatintel@volexity.com· 2022-02-02
- Suspect / chasseVolexity threat-intel· threatintel@volexity.com· 2021-06-16
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2024-07-30
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-07-21
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-08-17
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2023-03-30
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2022-11-03
- APT / acteurVolexity threat-intel· threatintel@volexity.com· 2022-11-02