Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Stealer_Win_Luca

Detect Luca stealer. Open source Rust stealer.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
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.

stealer-win-luca.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Stealer_Win_Luca : FILE
{
	meta:
		description = "Detect Luca stealer. Open source Rust stealer."
		author = "Sekoia.io"
		id = "d2cc1442-0ba5-4e81-9fea-e9e078903eed"
		date = "2022-07-26"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/stealer_win_luca.yar#L3-L49"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "3694db49d84f92c70c51e4fe6f126fd56b3d7d8ed26619137fd55b0adb97865e"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

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: d2cc1442-0ba5-4e81-9fea-e9e078903eed

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE