YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_EXPL_POC_Springcore_0Day_Webshell_Mar22_1
Detects webshell found after SpringCore exploitation attempts POC script
- Author
- Florian Roth (Nextron Systems)
- Date
- 2022-03-30
- Modified
- 2023-12-05
- Score / Quality
- 70 / 85
What this rule detects
Detects webshell found after SpringCore exploitation attempts POC script
It defines 3 patterns (3 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
expl-poc-springcore-0day-webshell-mar22-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_POC_Springcore_0Day_Webshell_Mar22_1 : FILE
{
meta:
= "Detects webshell found after SpringCore exploitation attempts POC script"
= "Florian Roth (Nextron Systems)"
= "e7047c98-3c60-5211-9ad5-2bfdfb35d493"
= "2022-03-30"
= "2023-12-05"
= "https://twitter.com/vxunderground/status/1509170582469943303"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_spring4shell.yar#L36-L50"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "17282b66899356a6051f0b47a7a3f02265737283d760f2256e03a2b934bb63b8"
= 70
= 85
= "FILE"
strings:
$x1 = ".getInputStream(); int a = -1; byte[] b = new byte[2048];"
$x2 = "if(\"j\".equals(request.getParameter(\"pwd\")"
$x3 = ".getRuntime().exec(request.getParameter(\"cmd\")).getInputStream();"
condition:
filesize < 200KB and 1 of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | ".getInputStream(); int a = -1; byte[] b = new byte[2048];" | |
| $x2 | text | "if(\"j\".equals(request.getParameter(\"pwd\")" | |
| $x3 | text | ".getRuntime().exec(request.getParameter(\"cmd\")).getInputStream();" |
Condition
filesize < 200KB and 1 of themIn plain words (Heuristic)
- The file must be smaller than 200KB (a cheap guard that skips large files).
- At least 1 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: Florian Roth (Nextron Systems)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: e7047c98-3c60-5211-9ad5-2bfdfb35d493
Tags:FILE
Related rules
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-09-18
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-12-19
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-20
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2023-01-13
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-10-11
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-02
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2023-01-25
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-12-22