Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Bot_Lin_Xorddos_Strings

Catch XORDDoS strings

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

What this rule detects

Catch XORDDoS strings

Associated malware family: Xorddos.

Targets: Linux ELF.

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

Summary generated from the rule's metadata and condition.

Rule source

bot-lin-xorddos-strings.yarDetection Rule License 1.1
rule SEKOIA_Bot_Lin_Xorddos_Strings : FILE
{
	meta:
		description = "Catch XORDDoS strings"
		author = "Sekoia.io"
		id = "2f5c70a3-fe3f-4091-905d-d779bd0cb2cd"
		date = "2023-11-02"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/bot_lin_xorddos_strings.yar#L1-L17"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "b91cfeeaddffe98ac1649c5d88a2091cf7ab8ff65b232f09c323d23684cb2a2d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; TencentTraveler ; .NET CLR 1.1.4322)" ascii fullword
		$s2 = "sed -i '/\\/etc\\/cron.hourly\\/gcc.sh/d' /etc/crontab && echo '*/3 * * * * root /etc/cron.hourly/gcc.sh' >> /etc/crontab" ascii fullword
		$s3 = "for i in `cat /proc/net/dev|grep :|awk -F: {'print $1'}`; do ifconfig $i up& done"

	condition:
		uint32( 0 ) == 0x464c457f and filesize > 600KB and filesize < 700KB and 3 of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; TencentTraveler ; .NET CLR 1.1.4322)"ascii fullword
$s2text"sed -i '/\\/etc\\/cron.hourly\\/gcc.sh/d' /etc/crontab && echo '*/3 * * * * root /etc/cron.hourly/gcc.sh' >> /etc/crontab"ascii fullword
$s3text"for i in `cat /proc/net/dev|grep :|awk -F: {'print $1'}`; do ifconfig $i up& done"

Condition

uint32( 0 ) == 0x464c457f and filesize > 600KB and filesize < 700KB and 3 of them

In plain words (Heuristic)

  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must be smaller than 700KB (a cheap guard that skips large files).
  • The file must be larger than 600KB.
  • 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: 2f5c70a3-fe3f-4091-905d-d779bd0cb2cd

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE