YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Banditstealer
Finds BanditStealer samples based on specific strings
- Author
- Sekoia.io
- Date
- 2023-07-03
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds BanditStealer samples based on specific strings
Targets: Windows PE.
It defines 20 patterns (20 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
infostealer-win-banditstealer.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Banditstealer : FILE
{
meta:
= "Finds BanditStealer samples based on specific strings"
= "Sekoia.io"
= "d1e45a5c-c06d-4161-8d30-fa94bcf0ea7a"
= "2023-07-03"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_banditstealer.yar#L1-L35"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "64d4860dd8a783be10541dd5c939dcd2a2b08309a7cd17b9dbbda1ba8b26485d"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$spe01 = "Banditstealer" ascii
$spe02 = "BANDIT STEALER" ascii
$spe03 = "Location: Geolocation: " ascii
$spe04 = "awesomeProject2/core.GetWallets" ascii
$spe05 = "awesomeProject2/core.GetCreditCards" ascii
$spe06 = "awesomeProject2/core.GetCookies" ascii
$spe07 = "awesomeProject2/core.KillProcessByName" ascii
$spe08 = "main.sendZipToTelegram" ascii
$str01 = "json:\"city\"" ascii
$str02 = "UAC disabled" ascii
$str03 = "\\OpenVPN Connect\\profiles\\" ascii
$str04 = "\\Documents\\Monero\\wallets\\" ascii
$str05 = "cookies.sqlite" ascii
$str06 = "creditcard.txt" ascii
$str07 = "vmware.exe" ascii
$str08 = "aeachknmefphepccionboohckonoeemg" ascii
$str09 = "\\Documents\\NetSarang\\Xftp\\Sessions\\" ascii
$str10 = "\\WhatsApp\\Local Storage\\leveldb\\" ascii
$str11 = "Visited Time: %s" ascii
$str12 = "\\Google\\Chrome\\User Data\\Telegram Desktop\\tdata\\" ascii
condition:
uint16( 0 ) == 0x5a4d and 2 of ( $spe* ) and 6 of ( $str* )
}
Strings (20 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $spe01 | text | "Banditstealer" | ascii |
| $spe02 | text | "BANDIT STEALER" | ascii |
| $spe03 | text | "Location: Geolocation: " | ascii |
| $spe04 | text | "awesomeProject2/core.GetWallets" | ascii |
| $spe05 | text | "awesomeProject2/core.GetCreditCards" | ascii |
| $spe06 | text | "awesomeProject2/core.GetCookies" | ascii |
| $spe07 | text | "awesomeProject2/core.KillProcessByName" | ascii |
| $spe08 | text | "main.sendZipToTelegram" | ascii |
| $str01 | text | "json:\"city\"" | ascii |
| $str02 | text | "UAC disabled" | ascii |
| $str03 | text | "\\OpenVPN Connect\\profiles\\" | ascii |
| $str04 | text | "\\Documents\\Monero\\wallets\\" | ascii |
| $str05 | text | "cookies.sqlite" | ascii |
| $str06 | text | "creditcard.txt" | ascii |
| $str07 | text | "vmware.exe" | ascii |
| $str08 | text | "aeachknmefphepccionboohckonoeemg" | ascii |
| $str09 | text | "\\Documents\\NetSarang\\Xftp\\Sessions\\" | ascii |
| $str10 | text | "\\WhatsApp\\Local Storage\\leveldb\\" | ascii |
| $str11 | text | "Visited Time: %s" | ascii |
| $str12 | text | "\\Google\\Chrome\\User Data\\Telegram Desktop\\tdata\\" | ascii |
Condition
uint16( 0 ) == 0x5a4d and 2 of ( $spe* ) and 6 of ( $str* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 patterns in ( $spe* ) must match.
- At least 6 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.
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: d1e45a5c-c06d-4161-8d30-fa94bcf0ea7a
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06