Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Bluebot

Detects BlueBot

MalwareBluebotditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects BlueBot

Associated malware family: Bluebot.

Targets: Windows PE.

It defines 20 patterns (19 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-bluebot.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Bluebot : FILE
{
	meta:
		description = "Detects BlueBot"
		author = "ditekSHen"
		id = "cddd40bb-c3c6-5c44-9cb1-480571375be8"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7306-L7333"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "04a19f649eb2fff7a5bc59ccead80cd0a04c4e5418cbc83e850045dba75b03e0"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "Blue_Botnet" wide
		$x2 = "5-START-http" ascii
		$x3 = "*300-END-" ascii
		$x4 = "botlogger.php" wide
		$s1 = "//TARGET//" wide
		$s2 = "//BLOG//" wide
		$s3 = "MCBOTALPHA" wide
		$s4 = "//IPLIST//" wide
		$s5 = "Host: //BLOG//" wide
		$s6 = "User-Agent: //USERAGENT//" wide
		$s7 = "<string>//TARGET//</string>" wide
		$s8 = "POST //URL// HTTP/1.1/r/n" wide
		$v1 = "<attack>b__" ascii
		$v2 = "PressData" fullword ascii
		$v3 = "POSTPiece" fullword ascii
		$v4 = /(load|tcp|udp)Stuff/ fullword ascii
		$v5 = "isAttacking" fullword ascii
		$v6 = "DoSAttack" fullword ascii
		$v7 = "prv_attack" fullword ascii
		$v8 = "blogList" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 5 of ( $s* ) or 5 of ( $v* ) or 9 of them )
}

Strings (20 patterns)

IdentifierTypeValueModifiers
$x1text"Blue_Botnet"wide
$x2text"5-START-http"ascii
$x3text"*300-END-"ascii
$x4text"botlogger.php"wide
$s1text"//TARGET//"wide
$s2text"//BLOG//"wide
$s3text"MCBOTALPHA"wide
$s4text"//IPLIST//"wide
$s5text"Host: //BLOG//"wide
$s6text"User-Agent: //USERAGENT//"wide
$s7text"<string>//TARGET//</string>"wide
$s8text"POST //URL// HTTP/1.1/r/n"wide
$v1text"<attack>b__"ascii
$v2text"PressData"fullword ascii
$v3text"POSTPiece"fullword ascii
$v4regex/(load|tcp|udp)Stuff/fullword ascii
$v5text"isAttacking"fullword ascii
$v6text"DoSAttack"fullword ascii
$v7text"prv_attack"fullword ascii
$v8text"blogList"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 5 of ( $s* ) or 5 of ( $v* ) or 9 of them )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in ( $x* ) must match.
  • At least 5 patterns in ( $s* ) must match.
  • At least 5 patterns in ( $v* ) must match.
  • At least 9 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: cddd40bb-c3c6-5c44-9cb1-480571375be8

Tags:FILE