Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Bot_Lin_Zerobot_Dec22

Detect the linux Zerobot implant using specific strings

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

What this rule detects

Detect the linux Zerobot implant using specific strings

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

Summary generated from the rule's metadata and condition.

Rule source

bot-lin-zerobot-dec22.yarDetection Rule License 1.1
rule SEKOIA_Bot_Lin_Zerobot_Dec22 : FILE
{
	meta:
		description = "Detect the linux Zerobot implant using specific strings"
		author = "Sekoia.io"
		id = "ce028297-a526-4a6a-95db-8762fb5895f6"
		date = "2022-08-05"
		modified = "2024-12-19"
		reference = "https://www.fortinet.com/blog/threat-research/zerobot-new-go-based-botnet-campaign-targets-multiple-vulnerabilities"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/bot_lin_zerobot_dec22.yar#L1-L30"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "0f4faba9873fa360615b20bc637ecb40f56e6c7f65153f61a762e378320f94c1"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "rm -rf "
		$str02 = "wget http://"
		$str03 = "curl -O http://"
		$str04 = "tftp"
		$str05 = "-c get"
		$str06 = "ftpget -v -u anonymous -P"
		$str07 = "chmod 777"
		$str08 = "nohup"
		$str09 = "/dev/null 2>&1 &"
		$str10 = "zero."
		$str11 = "ppc64le"
		$str12 = "riscv64"
		$str13 = "s390x"
		$str14 = "rm -rf ~/.bash_history"
		$str15 = "history -c"

	condition:
		11 of ( $str* ) and filesize < 10KB
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$str01text"rm -rf "
$str02text"wget http://"
$str03text"curl -O http://"
$str04text"tftp"
$str05text"-c get"
$str06text"ftpget -v -u anonymous -P"
$str07text"chmod 777"
$str08text"nohup"
$str09text"/dev/null 2>&1 &"
$str10text"zero."
$str11text"ppc64le"
$str12text"riscv64"
$str13text"s390x"
$str14text"rm -rf ~/.bash_history"
$str15text"history -c"

Condition

11 of ( $str* ) and filesize < 10KB

In plain words (Heuristic)

  • The file must be smaller than 10KB (a cheap guard that skips large files).
  • At least 11 patterns in ( $str* ) 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: ce028297-a526-4a6a-95db-8762fb5895f6

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE