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
- Datum
- 2021-06-16
- Geändert
- 2024-12-12
- Score / Qualität
- 65 / 80
Was diese Regel erkennt
Rule designed to detect PHP files which use file_get_contents() and then shortly afterwards use an eval statement.
Sie definiert 2 Muster (2 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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 ) )
}
Strings (2 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $s1 | Text | "file_get_contents(\"php://input\")" | |
| $s2 | Text | "eval(" |
Bedingung
$s2 in ( @s1 [ 1 ] .. ( @s1 [ 1 ] + 512 ) )In Worten (Heuristik)
- Muster $s2 muss im Bereich @s1 [ 1 ] .. ( @s1 [ 1 ] + 512 liegen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- 1a34c43611ee310c16acc383c10a7b8b41578c19ee85716b14ac5adbf0a13bd5
- 6e8874c756c009c63f715a44ca72d0cb31dc25d87d7df6ca2830fe8330580342
Lizenz & Namensnennung
Autor: threatintel@volexity.com
Quell-Repository: Volexity threat-intel @ 3a9d0b5245
Lizenz: BSD 2-Clause License (in den Metadaten der Regel angegeben)
“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”
Copyright-Hinweis: Copyright 2022 by Volexity, Inc.
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 3e311677-22ea-5e5f-bdc6-dd67033d25a6
Metadaten
| os | win,linux |
|---|---|
| os_arch | all |
| scan_context | file |
| severity | high |
| rule_id | 5581 |
| version | 5 |
Tags:FILE
Verwandte Regeln
- Verdächtig / HuntingVolexity threat-intel· threatintel@volexity.com· 2022-02-02
- Verdächtig / HuntingVolexity threat-intel· threatintel@volexity.com· 2021-06-16
- APT / AkteurVolexity threat-intel· threatintel@volexity.com· 2024-07-30
- APT / AkteurVolexity threat-intel· threatintel@volexity.com· 2023-07-21
- APT / AkteurVolexity threat-intel· threatintel@volexity.com· 2023-08-17
- APT / AkteurVolexity threat-intel· threatintel@volexity.com· 2023-03-30
- APT / AkteurVolexity threat-intel· threatintel@volexity.com· 2022-11-03
- APT / AkteurVolexity threat-intel· threatintel@volexity.com· 2022-11-02