YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Spacestealer
Detects SpaceStealer based on specific strings
- 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:
= "Detects SpaceStealer based on specific strings"
= "Sekoia.io"
= "aceae3b3-1f5a-48b4-84cb-d0ba68d26df5"
= "2022-11-29"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_spacestealer.yar#L1-L31"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "94edfd0606816ff01d1345357a852cab4321d8881921e51ba96d8d2d4cb893b5"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "spacestealerxD" | ascii |
| $str02 | text | "\\spacex" | ascii |
| $str03 | text | "@~$~@spacex-" | ascii |
| $str04 | text | "StealerClient" | ascii |
| $str05 | text | "kill-process-by-name" | ascii |
| $str06 | text | "\\BetterDiscord\\data\\betterdiscord.asar" | ascii |
| $str07 | text | "api/webhooks" | ascii |
| $str08 | text | "discordPath" | ascii |
| $str09 | text | "SELECT host_key, name, encrypted_value FROM cookies" | ascii |
| $str10 | text | "SELECT origin_url, username_value, password_value FROM logins" | ascii |
| $str11 | text | "SELECT name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards" | ascii |
| $str12 | text | "Cookies don't found." | ascii |
| $str13 | text | "/api/cookies?auth=" | ascii |
| $str14 | text | "/api/passwords?auth=" | ascii |
| $str15 | text | "/api/autofill?auth=" | ascii |
| $str16 | text | "/api/creditcards?auth=" | ascii |
| $str17 | text | "\\Yandex\\YandexBrowser\\User Data\\Guest Profile\\Network\\" | ascii |
Condition
uint16( 0 ) == 0x5A4D and filesize > 10MB and 13 of themIn 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.
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: aceae3b3-1f5a-48b4-84cb-d0ba68d26df5
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