YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_G_APT_Backdoorwebshell_SLAYSTYLE_2
Detects webshell used by APT group UNC5221 (China Nexus)
- Author
- Google Threat Intelligence Group (GTIG) (modified by Florian Roth)
- Date
- 2025-09-25
- Modified
- 2026-05-15
- Score / Quality
- 75 / 85
What this rule detects
Detects webshell used by APT group UNC5221 (China Nexus)
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
webshell-g-apt-backdoorwebshell-slaystyle-2.yarDetection Rule License 1.1
rule SIGNATURE_BASE_WEBSHELL_G_APT_Backdoorwebshell_SLAYSTYLE_2 : FILE
{
meta:
= "Detects webshell used by APT group UNC5221 (China Nexus)"
= "Google Threat Intelligence Group (GTIG) (modified by Florian Roth)"
= "5ab6791b-5043-5fa1-b73e-caba9e059eaa"
= "2025-09-25"
= "2026-05-15"
= "https://cloud.google.com/blog/topics/threat-intelligence/brickstorm-espionage-campaign"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_cn_brickstorm_sep25.yar#L119-L135"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "d2d1003f77a2066b48df1c27feab79c0a1951ebb62c3198de8366bcfee42e30a"
= 75
= 85
= "FILE"
strings:
$str1 = "request.getParameter"
$str2 = "/bin/sh"
$str3 = "java.io.InputStream"
$str4 = "Runtime.getRuntime().exec("
$str5 = "2>&1"
condition:
( uint16( 0 ) != 0x5A4D and uint32( 0 ) != 0x464C457F ) and filesize < 7KB and all of them and @str4 > @str2
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str1 | text | "request.getParameter" | |
| $str2 | text | "/bin/sh" | |
| $str3 | text | "java.io.InputStream" | |
| $str4 | text | "Runtime.getRuntime().exec(" | |
| $str5 | text | "2>&1" |
Condition
( uint16( 0 ) != 0x5A4D and uint32( 0 ) != 0x464C457F ) and filesize < 7KB and all of them and @str4 > @str2In plain words (Heuristic)
- The file must be smaller than 7KB (a cheap guard that skips large files).
- All 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: Google Threat Intelligence Group (GTIG) (modified by Florian Roth)
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: 5ab6791b-5043-5fa1-b73e-caba9e059eaa
Tags:FILE
Related rules
- WebshellSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25
- MalwareSignature Base (Florian Roth / Nextron)· Google Threat Intelligence Group (GTIG) (modified by Flor…· 2025-09-25