Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Banditstealer

Finds BanditStealer samples based on specific strings

GenericSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Finds BanditStealer samples based on specific strings"
		author = "Sekoia.io"
		id = "d1e45a5c-c06d-4161-8d30-fa94bcf0ea7a"
		date = "2023-07-03"
		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_banditstealer.yar#L1-L35"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "64d4860dd8a783be10541dd5c939dcd2a2b08309a7cd17b9dbbda1ba8b26485d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$spe01text"Banditstealer"ascii
$spe02text"BANDIT STEALER"ascii
$spe03text"Location: Geolocation: "ascii
$spe04text"awesomeProject2/core.GetWallets"ascii
$spe05text"awesomeProject2/core.GetCreditCards"ascii
$spe06text"awesomeProject2/core.GetCookies"ascii
$spe07text"awesomeProject2/core.KillProcessByName"ascii
$spe08text"main.sendZipToTelegram"ascii
$str01text"json:\"city\""ascii
$str02text"UAC disabled"ascii
$str03text"\\OpenVPN Connect\\profiles\\"ascii
$str04text"\\Documents\\Monero\\wallets\\"ascii
$str05text"cookies.sqlite"ascii
$str06text"creditcard.txt"ascii
$str07text"vmware.exe"ascii
$str08text"aeachknmefphepccionboohckonoeemg"ascii
$str09text"\\Documents\\NetSarang\\Xftp\\Sessions\\"ascii
$str10text"\\WhatsApp\\Local Storage\\leveldb\\"ascii
$str11text"Visited Time: %s"ascii
$str12text"\\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.

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: d1e45a5c-c06d-4161-8d30-fa94bcf0ea7a

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE