Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Blustealer

Detect the BluStealer infostealer based on characteristic strings

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

What this rule detects

Detect the BluStealer infostealer based on characteristic strings

Targets: Windows PE.

It defines 14 patterns (13 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-blustealer.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Blustealer : FILE
{
	meta:
		description = "Detect the BluStealer infostealer based on characteristic strings"
		author = "Sekoia.io"
		id = "a56b3c12-9d83-4a0b-81e8-43332e64d599"
		date = "2022-10-05"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_blustealer.yar#L1-L29"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "fc7c11a9ddd21228aa773da6054220211327727a87d48008b7edb202c48666d8"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$cha01 = "@top\\LOGGERS\\DARKCLOUD" wide
		$cha02 = "===============DARKCLOUD===============" wide
		$cha03 = "#######################################DARKCLOUD#######################################" wide
		$cha04 = "fireballsabadafirebricksfisherboat" ascii
		$cha05 = "Moonchild Pro2ductions" wide
		$str01 = "\\Microsoft\\Windows\\Templates\\credentials.txt" wide
		$str02 = "\\NETGATE Technologies\\BlackHawK\\Profiles" wide
		$str03 = "SysWOW64\\winsqlite3.dll" wide
		$str04 = "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_" wide
		$str05 = "Expiry Date;" wide
		$str06 = "SELECT c0subject, c3author, c4recipients, c1body  FROM messagesText_content" wide
		$str07 = "http://www.mediacollege.com/internet/utilities/show-ip.shtml" wide
		$str08 = "\\163MailContacts.txt" wide
		$key_0 = {ba ?? ?? 40 00 8d 4?}

	condition:
		uint16( 0 ) == 0x5A4D and 2 of ( $cha* ) and 4 of ( $str* ) and $key_0
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$cha01text"@top\\LOGGERS\\DARKCLOUD"wide
$cha02text"===============DARKCLOUD==============="wide
$cha03text"#######################################DARKCLOUD#######################################"wide
$cha04text"fireballsabadafirebricksfisherboat"ascii
$cha05text"Moonchild Pro2ductions"wide
$str01text"\\Microsoft\\Windows\\Templates\\credentials.txt"wide
$str02text"\\NETGATE Technologies\\BlackHawK\\Profiles"wide
$str03text"SysWOW64\\winsqlite3.dll"wide
$str04text"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_"wide
$str05text"Expiry Date;"wide
$str06text"SELECT c0subject, c3author, c4recipients, c1body FROM messagesText_content"wide
$str07text"http://www.mediacollege.com/internet/utilities/show-ip.shtml"wide
$str08text"\\163MailContacts.txt"wide
$key_0hex{ba ?? ?? 40 00 8d 4?}

Condition

uint16( 0 ) == 0x5A4D and 2 of ( $cha* ) and 4 of ( $str* ) and $key_0

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in ( $cha* ) must match.
  • At least 4 patterns in ( $str* ) must match.
  • Pattern $key_0 must be present.

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: a56b3c12-9d83-4a0b-81e8-43332e64d599

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE