YARA · SEKOIA.IO Community
SEKOIA_Stealer_Win_Luca
Detect Luca stealer. Open source Rust stealer.
- Author
- Sekoia.io
- Date
- 2022-07-26
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Detect Luca stealer. Open source Rust stealer.
Targets: Windows PE.
It defines 29 patterns (29 text, 0 hex, 0 regex). YARA modules used: pe.
YARA-X says: warning[deprecated_field]: field `number_of_resources` is deprecated
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule SEKOIA_Stealer_Win_Luca : FILE
{
meta:
= "Detect Luca stealer. Open source Rust stealer."
= "Sekoia.io"
= "d2cc1442-0ba5-4e81-9fea-e9e078903eed"
= "2022-07-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/stealer_win_luca.yar#L3-L49"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "3694db49d84f92c70c51e4fe6f126fd56b3d7d8ed26619137fd55b0adb97865e"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "cookies"
$ = "creditcards"
$ = "/Default/Network/CookiesUser Data/Default/Network/Cookies_cookies"
$ = "/Default/Web DataUser Data/Default/Web Data_webdata"
$ = "SELECT action_url, username_value, password_value FROM loginsSELECT card_number_encrypted, name_on_card, expiration_month, expiration_year FROM credit_cardsSELECT host_key, name, encrypted_value, path, expires_utc, is_secure FROM cookiesLOCALAPPDATA"
$ = "\\logsxc\\passwords_.txt"
$ = " Name:"
$ = "User: "
$ = "Installed Languages: "
$ = "Operating System: "
$ = "Used/Installed RAM: GB "
$ = "Cores available: "
$ = "\\screen-.png"
$ = "Username: "
$ = "Computer name: "
$ = "OS: "
$ = "Language: "
$ = "Hostname: "
$ = "=> networks: B"
$ = "=> system:total memory: KB"
$ = "used memory : "
$ = "total swap : "
$ = "used swap : "
$ = "NB CPUs: "
$ = "Passwords: "
$ = "Wallets: "
$ = "Files: "
$ = "Credit Cards: "
$ = "sensfiles.zip"
condition:
uint16( 0 ) == 0x5A4D and filesize > 4000KB and pe.rich_signature.toolid ( 0 , 0 ) and pe.number_of_resources == 0 and 15 of them
}
Strings (29 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "cookies" | |
| $ | text | "creditcards" | |
| $ | text | "/Default/Network/CookiesUser Data/Default/Network/Cookies_cookies" | |
| $ | text | "/Default/Web DataUser Data/Default/Web Data_webdata" | |
| $ | text | "SELECT action_url, username_value, password_value FROM loginsSELECT card_number_encrypted, name_on_card, expiration_month, expiration_year FROM credit_cardsSEL … | |
| $ | text | "\\logsxc\\passwords_.txt" | |
| $ | text | " Name:" | |
| $ | text | "User: " | |
| $ | text | "Installed Languages: " | |
| $ | text | "Operating System: " | |
| $ | text | "Used/Installed RAM: GB " | |
| $ | text | "Cores available: " | |
| $ | text | "\\screen-.png" | |
| $ | text | "Username: " | |
| $ | text | "Computer name: " | |
| $ | text | "OS: " | |
| $ | text | "Language: " | |
| $ | text | "Hostname: " | |
| $ | text | "=> networks: B" | |
| $ | text | "=> system:total memory: KB" | |
| $ | text | "used memory : " | |
| $ | text | "total swap : " | |
| $ | text | "used swap : " | |
| $ | text | "NB CPUs: " | |
| $ | text | "Passwords: " | |
| $ | text | "Wallets: " | |
| $ | text | "Files: " | |
| $ | text | "Credit Cards: " | |
| $ | text | "sensfiles.zip" |
Condition
uint16( 0 ) == 0x5A4D and filesize > 4000KB and pe.rich_signature.toolid ( 0 , 0 ) and pe.number_of_resources == 0 and 15 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be larger than 4000KB.
- At least 15 patterns in the rule must match.
- Uses the pe module.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
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: d2cc1442-0ba5-4e81-9fea-e9e078903eed
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20