Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Stealerium

Detects Stealerium based on specific strings

MalwareStealeriumSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-12-01
Modified
2024-12-19
Score / Quality
75 / 78

What this rule detects

Detects Stealerium based on specific strings

Associated malware family: Stealerium.

Targets: Windows PE.

It defines 21 patterns (21 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-stealerium.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Stealerium : FILE
{
	meta:
		description = "Detects Stealerium based on specific strings"
		author = "Sekoia.io"
		id = "165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5"
		date = "2022-12-01"
		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_stealerium.yar#L1-L36"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "f420848164ad4b6966f2a776a58d90b7d70c8b151a42d6f56b654f1700b5e564"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$stl = "Stealerium" ascii wide
		$str01 = "Processe: " wide
		$str02 = "Compname: " wide
		$str03 = "Language: " wide
		$str04 = "SandBoxie: " wide
		$str05 = "== System Info ==" wide
		$str06 = "== Hardware ==" wide
		$str07 = "== Domains ==" wide
		$str08 = "WEBCAMS COUNT: " wide
		$str09 = "[Virtualization]" wide
		$str10 = "[Open google maps](" wide
		$str11 = "Remember password: " wide
		$str12 = "Target.Browsers.Firefox" ascii
		$str13 = "Modules.Keylogger" ascii
		$str14 = "ClipperAddresses" ascii
		$str15 = "ChromiumPswPaths" ascii
		$str16 = "DetectedBankingServices" ascii
		$str17 = "DetectCryptocurrencyServices" ascii
		$str18 = "CheckRemoteDebuggerPresent" ascii
		$str19 = "GetConnectedCamerasCount" ascii
		$str20 = "costura.discord-webhook-client.dll.compressed" ascii wide

	condition:
		uint16( 0 ) == 0x5A4D and filesize > 1MB and ( ( #stl > 5 and 2 of ( $str* ) ) or 15 of ( $str* ) )
}

Strings (21 patterns)

IdentifierTypeValueModifiers
$stltext"Stealerium"ascii wide
$str01text"Processe: "wide
$str02text"Compname: "wide
$str03text"Language: "wide
$str04text"SandBoxie: "wide
$str05text"== System Info =="wide
$str06text"== Hardware =="wide
$str07text"== Domains =="wide
$str08text"WEBCAMS COUNT: "wide
$str09text"[Virtualization]"wide
$str10text"[Open google maps]("wide
$str11text"Remember password: "wide
$str12text"Target.Browsers.Firefox"ascii
$str13text"Modules.Keylogger"ascii
$str14text"ClipperAddresses"ascii
$str15text"ChromiumPswPaths"ascii
$str16text"DetectedBankingServices"ascii
$str17text"DetectCryptocurrencyServices"ascii
$str18text"CheckRemoteDebuggerPresent"ascii
$str19text"GetConnectedCamerasCount"ascii
$str20text"costura.discord-webhook-client.dll.compressed"ascii wide

Condition

uint16( 0 ) == 0x5A4D and filesize > 1MB and ( ( #stl > 5 and 2 of ( $str* ) ) or 15 of ( $str* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be larger than 1MB.
  • At least 2 patterns in ( $str* ) must match.
  • At least 15 patterns in ( $str* ) must match.
  • Pattern $stl must occur > 5 times.

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: 165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE