Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Webshell_Wso_Webshell_Strings

Detects the WSO webshells

WebshellSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detects the WSO webshells"
		author = "Sekoia.io"
		id = "84340792-73a4-4d61-9957-6cfa1f6444a7"
		date = "2022-04-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/webshell_wso_webshell_strings.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "4d6966a34dc8e7390913857144da106affea14668d1c2c11a05be62a6e625c8f"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR