YARA · SEKOIA.IO Community
SEKOIA_Webshell_Wso_Webshell_Strings
Detects the WSO webshells
- Author
- Sekoia.io
- Date
- 2022-04-22
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects the WSO webshells
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
webshell-wso-webshell-strings.yarDetection Rule License 1.1
rule SEKOIA_Webshell_Wso_Webshell_Strings
{
meta:
= "Detects the WSO webshells"
= "Sekoia.io"
= "84340792-73a4-4d61-9957-6cfa1f6444a7"
= "2022-04-22"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/webshell_wso_webshell_strings.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "4d6966a34dc8e7390913857144da106affea14668d1c2c11a05be62a6e625c8f"
= 75
= 80
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$ = "decrypt($str,$pwd){$pwd=base64_encode($pwd);"
$ = "prototype(md5($_SERVER['HTTP_HOST'])"
$ = "$_COOKIE[md5($_SERVER['HTTP_HOST'])."
$ = "set(a,c,p1,p2,p3,charset)"
$ = "(($p & 0x0008) ? (($p & 0x0400)"
$ = "gcc','lcc','cc','ld','make','php"
condition:
3 of them
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "decrypt($str,$pwd){$pwd=base64_encode($pwd);" | |
| $ | text | "prototype(md5($_SERVER['HTTP_HOST'])" | |
| $ | text | "$_COOKIE[md5($_SERVER['HTTP_HOST'])." | |
| $ | text | "set(a,c,p1,p2,p3,charset)" | |
| $ | text | "(($p & 0x0008) ? (($p & 0x0400)" | |
| $ | text | "gcc','lcc','cc','ld','make','php" |
Condition
3 of themIn plain words (Heuristic)
- At least 3 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
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: 84340792-73a4-4d61-9957-6cfa1f6444a7
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Related rules
- WebshellSEKOIA.IO Community· Sekoia.io· 2024-11-22
- WebshellSEKOIA.IO Community· Sekoia.io· 2024-04-22
- WebshellSEKOIA.IO Community· Sekoia.io· 2023-12-08
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27