YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_PAS_Webshell_Perlnetworkscript
Detects PERL scripts created by P.A.S. webshell
- Autor
- FR/ANSSI/SDO
- Datum
- 2021-02-15
- Geändert
- 2024-05-25
- Score / Qualität
- 90 / 85
Was diese Regel erkennt
Detects PERL scripts created by P.A.S. webshell
Sie definiert 5 Muster (5 Text, 0 Hex, 0 Regex).
YARA-X meldet: warning[unintended_pattern_in_set]: pattern `$pl_start` may be unintendedly or redundantly included in pattern set `$pl*`
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule SIGNATURE_BASE_WEBSHELL_PAS_Webshell_Perlnetworkscript : FILE
{
meta:
= "Detects PERL scripts created by P.A.S. webshell"
= "FR/ANSSI/SDO"
= "1625b63f-ead7-5712-92b4-0ce6ecc49fd4"
= "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#L44-L62"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "b170c07a005e737c8069f2cc63f869d4d3ff6593b3bfca5bcaf02d7808da6852"
= 90
= 85
= "FILE"
strings:
$pl_start = "#!/usr/bin/perl\n$SIG{'CHLD'}='IGNORE'; use IO::Socket; use FileHandle;"
$pl_status = "$o=\" [OK]\";$e=\" Error: \""
$pl_socket = "socket(SOCKET, PF_INET, SOCK_STREAM,$tcp) or die print \"$l$e$!$l"
$msg1 = "print \"$l OK! I\\'m successful connected.$l\""
$msg2 = "print \"$l OK! I\\'m accept connection.$l\""
condition:
filesize < 6000 and ( $pl_start at 0 and all of ( $pl* ) ) or any of ( $msg* )
}
Strings (5 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $pl_start | Text | "#!/usr/bin/perl\n$SIG{'CHLD'}='IGNORE'; use IO::Socket; use FileHandle;" | |
| $pl_status | Text | "$o=\" [OK]\";$e=\" Error: \"" | |
| $pl_socket | Text | "socket(SOCKET, PF_INET, SOCK_STREAM,$tcp) or die print \"$l$e$!$l" | |
| $msg1 | Text | "print \"$l OK! I\\'m successful connected.$l\"" | |
| $msg2 | Text | "print \"$l OK! I\\'m accept connection.$l\"" |
Bedingung
filesize < 6000 and ( $pl_start at 0 and all of ( $pl* ) ) or any of ( $msg* )In Worten (Heuristik)
- Die Datei muss kleiner als 6000 sein (eine günstige Grenze, die große Dateien ausschließt).
- Alle Muster aus ( $pl* ) müssen treffen.
- Mindestens ein Muster aus ( $msg* ) muss treffen.
- Muster $pl_start muss an Offset 0 stehen.
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.
Lizenz & Namensnennung
Autor: FR/ANSSI/SDO
Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 1625b63f-ead7-5712-92b4-0ce6ecc49fd4
Tags:FILE
Verwandte Regeln
- WebshellSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15
- APT / AkteurSignature Base (Florian Roth / Nextron)· FR/ANSSI/SDO· 2021-02-15