YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_JSP_Nov21_1
Detects JSP webshells
- Autor
- Florian Roth (Nextron Systems)
- Datum
- 2021-11-23
- Geändert
- 2023-12-05
- Score / Qualität
- 70 / 85
Was diese Regel erkennt
Detects JSP webshells
Sie definiert 4 Muster (4 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
webshell-jsp-nov21-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_WEBSHELL_JSP_Nov21_1 : FILE
{
meta:
= "Detects JSP webshells"
= "Florian Roth (Nextron Systems)"
= "117eed28-c44e-5983-b4c7-b555fc06d923"
= "2021-11-23"
= "2023-12-05"
= "https://www.ic3.gov/Media/News/2021/211117-2.pdf"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_spring4shell.yar#L2-L17"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "1dac7706421961c71ba6f8d7a223b80e4b77bf206bfb64ee18c7cc894b062a3c"
= 70
= 85
= "FILE"
strings:
$x1 = "request.getParameter(\"pwd\")" ascii
$x2 = "excuteCmd(request.getParameter(" ascii
$x3 = "getRuntime().exec (request.getParameter(" ascii
$x4 = "private static final String PW = \"whoami\"" ascii
condition:
filesize < 400KB and 1 of them
}
Strings (4 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "request.getParameter(\"pwd\")" | ascii |
| $x2 | Text | "excuteCmd(request.getParameter(" | ascii |
| $x3 | Text | "getRuntime().exec (request.getParameter(" | ascii |
| $x4 | Text | "private static final String PW = \"whoami\"" | ascii |
Bedingung
filesize < 400KB and 1 of themIn Worten (Heuristik)
- Die Datei muss kleiner als 400KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 1 Muster aus der Regel müssen treffen.
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.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Lizenz & Namensnennung
Autor: Florian Roth (Nextron Systems)
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: 117eed28-c44e-5983-b4c7-b555fc06d923
Tags:FILE
Verwandte Regeln
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-25
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-05
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-31
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-11-01
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-31
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-12
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-13
- APT / AkteurSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16