YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Blustealer
Detect the BluStealer infostealer based on characteristic strings
- 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:
= "Detect the BluStealer infostealer based on characteristic strings"
= "Sekoia.io"
= "a56b3c12-9d83-4a0b-81e8-43332e64d599"
= "2022-10-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_blustealer.yar#L1-L29"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "fc7c11a9ddd21228aa773da6054220211327727a87d48008b7edb202c48666d8"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $cha01 | text | "@top\\LOGGERS\\DARKCLOUD" | wide |
| $cha02 | text | "===============DARKCLOUD===============" | wide |
| $cha03 | text | "#######################################DARKCLOUD#######################################" | wide |
| $cha04 | text | "fireballsabadafirebricksfisherboat" | ascii |
| $cha05 | text | "Moonchild Pro2ductions" | wide |
| $str01 | text | "\\Microsoft\\Windows\\Templates\\credentials.txt" | wide |
| $str02 | text | "\\NETGATE Technologies\\BlackHawK\\Profiles" | wide |
| $str03 | text | "SysWOW64\\winsqlite3.dll" | wide |
| $str04 | text | "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_" | wide |
| $str05 | text | "Expiry Date;" | wide |
| $str06 | text | "SELECT c0subject, c3author, c4recipients, c1body FROM messagesText_content" | wide |
| $str07 | text | "http://www.mediacollege.com/internet/utilities/show-ip.shtml" | wide |
| $str08 | text | "\\163MailContacts.txt" | wide |
| $key_0 | hex | {ba ?? ?? 40 00 8d 4?} |
Condition
uint16( 0 ) == 0x5A4D and 2 of ( $cha* ) and 4 of ( $str* ) and $key_0In 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20