Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Backdoor_Blueshell

Detects BlueShell backdoor

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-09-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects BlueShell backdoor

It defines 9 patterns (9 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

backdoor-blueshell.yarDetection Rule License 1.1
rule SEKOIA_Backdoor_Blueshell : FILE
{
	meta:
		description = "Detects BlueShell backdoor"
		author = "Sekoia.io"
		id = "8f1cd966-c4d8-44f9-8cd5-4f5277332546"
		date = "2023-09-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/backdoor_blueshell.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "348ae383f2aaef544951641dd7e2879afa23e37bdf429c6255254115bd3e10d5"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "BlueShell" ascii
		$s2 = "client.go" ascii
		$s3 = "server ip" ascii
		$s4 = "server port" ascii
		$s5 = "reconnect wait time" ascii
		$s6 = "shell" ascii
		$s7 = "socks" ascii
		$s8 = "socks5" ascii
		$s9 = "GetInteractiveShell" ascii

	condition:
		filesize < 11MB and all of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"BlueShell"ascii
$s2text"client.go"ascii
$s3text"server ip"ascii
$s4text"server port"ascii
$s5text"reconnect wait time"ascii
$s6text"shell"ascii
$s7text"socks"ascii
$s8text"socks5"ascii
$s9text"GetInteractiveShell"ascii

Condition

filesize < 11MB and all of them

In plain words (Heuristic)

  • The file must be smaller than 11MB (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.

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: 8f1cd966-c4d8-44f9-8cd5-4f5277332546

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE