YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_SECRETSAUCE_Jul23_1
Detects SECRETSAUCE PHP webshells (found after an exploitation of Citrix NetScaler ADC CVE-2023-3519)
- Auteur
- Florian Roth
- Date
- 2023-07-24
- Modifiée
- 2023-12-05
- Score / Qualité
- 85 / 85
Ce que détecte cette règle
Detects SECRETSAUCE PHP webshells (found after an exploitation of Citrix NetScaler ADC CVE-2023-3519)
Elle définit 6 motifs (6 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 SIGNATURE_BASE_WEBSHELL_SECRETSAUCE_Jul23_1 : CVE_2023_3519 FILE
{
meta:
= "Detects SECRETSAUCE PHP webshells (found after an exploitation of Citrix NetScaler ADC CVE-2023-3519)"
= "Florian Roth"
= "db0542e7-648e-5f60-9838-e07498f58b51"
= "2023-07-24"
= "2023-12-05"
= "https://www.mandiant.com/resources/blog/citrix-zero-day-espionage"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_citrix_netscaler_adc_exploitation_cve_2023_3519.yar#L79-L100"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c762d46ae43a3e10453c2ee17039812a06086ac85bdb000cf8308f5196a9dee2"
= 85
= 85
= "CVE-2023-3519, FILE"
strings:
$sa1 = "for ($x=0; $x<=1; $x++) {" ascii
$sa2 = "$_REQUEST[" ascii
$sa3 = "@eval" ascii
$sb1 = "public $cmd;" ascii
$sb2 = "return @eval($a);" ascii
$sb3 = "$z->run($z->get('openssl_public_decrypt'));"
condition:
filesize < 100KB and ( all of ( $sa* ) or 2 of ( $sb* ) )
}
Chaînes (6 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $sa1 | texte | "for ($x=0; $x<=1; $x++) {" | ascii |
| $sa2 | texte | "$_REQUEST[" | ascii |
| $sa3 | texte | "@eval" | ascii |
| $sb1 | texte | "public $cmd;" | ascii |
| $sb2 | texte | "return @eval($a);" | ascii |
| $sb3 | texte | "$z->run($z->get('openssl_public_decrypt'));" |
Condition
filesize < 100KB and ( all of ( $sa* ) or 2 of ( $sb* ) )En clair (Heuristique)
- Le fichier doit faire moins de 100KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Tous les motifs de ( $sa* ) doivent être trouvés.
- Au moins 2 motifs de ( $sb* ) doivent être trouvés.
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é.
Licence et attribution
Auteur : Florian Roth
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: db0542e7-648e-5f60-9838-e07498f58b51
Tags:CVE_2023_3519FILE
Règles liées
- Web shellSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-06-01
- Web shellSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-06-01
- Web shellSignature Base (Florian Roth / Nextron)· Florian Roth· 2025-07-20
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-07-21
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-07-24
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-07-27
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23