Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Spacestealer

Detects SpaceStealer based on specific strings

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

What this rule detects

Detects SpaceStealer based on specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-spacestealer.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Spacestealer : FILE
{
	meta:
		description = "Detects SpaceStealer based on specific strings"
		author = "Sekoia.io"
		id = "aceae3b3-1f5a-48b4-84cb-d0ba68d26df5"
		date = "2022-11-29"
		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_spacestealer.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "94edfd0606816ff01d1345357a852cab4321d8881921e51ba96d8d2d4cb893b5"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "spacestealerxD" ascii
		$str02 = "\\spacex" ascii
		$str03 = "@~$~@spacex-" ascii
		$str04 = "StealerClient" ascii
		$str05 = "kill-process-by-name" ascii
		$str06 = "\\BetterDiscord\\data\\betterdiscord.asar" ascii
		$str07 = "api/webhooks" ascii
		$str08 = "discordPath" ascii
		$str09 = "SELECT host_key, name, encrypted_value FROM cookies" ascii
		$str10 = "SELECT origin_url, username_value, password_value FROM logins" ascii
		$str11 = "SELECT name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards" ascii
		$str12 = "Cookies don't found." ascii
		$str13 = "/api/cookies?auth=" ascii
		$str14 = "/api/passwords?auth=" ascii
		$str15 = "/api/autofill?auth=" ascii
		$str16 = "/api/creditcards?auth=" ascii
		$str17 = "\\Yandex\\YandexBrowser\\User Data\\Guest Profile\\Network\\" ascii

	condition:
		uint16( 0 ) == 0x5A4D and filesize > 10MB and 13 of them
}

Strings (17 patterns)

IdentifierTypeValueModifiers
$str01text"spacestealerxD"ascii
$str02text"\\spacex"ascii
$str03text"@~$~@spacex-"ascii
$str04text"StealerClient"ascii
$str05text"kill-process-by-name"ascii
$str06text"\\BetterDiscord\\data\\betterdiscord.asar"ascii
$str07text"api/webhooks"ascii
$str08text"discordPath"ascii
$str09text"SELECT host_key, name, encrypted_value FROM cookies"ascii
$str10text"SELECT origin_url, username_value, password_value FROM logins"ascii
$str11text"SELECT name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards"ascii
$str12text"Cookies don't found."ascii
$str13text"/api/cookies?auth="ascii
$str14text"/api/passwords?auth="ascii
$str15text"/api/autofill?auth="ascii
$str16text"/api/creditcards?auth="ascii
$str17text"\\Yandex\\YandexBrowser\\User Data\\Guest Profile\\Network\\"ascii

Condition

uint16( 0 ) == 0x5A4D and filesize > 10MB and 13 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be larger than 10MB.
  • At least 13 patterns in the rule 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: aceae3b3-1f5a-48b4-84cb-d0ba68d26df5

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE