Uncategorized

Rust-Based Luca Stealer Spreads Across Linux and Windows Systems

Threat actors are increasingly abandoning traditional languages like C and C++ in favor of modern alternatives such as Golang, Rust, and Nim.

This strategic shift enables developers to compile malicious code for both Linux and Windows with minimal modifications.

Among the emerging threats in this landscape is “Luca Stealer,” a Rust-based information stealer that has recently appeared in the wild alongside other notable threats such as BlackCat ransomware.

The Rise of Luca Stealer

While Rust’s adoption in the malware community is still in its early stages compared to Golang, it is expanding rapidly.

Luca Stealer represents a significant development as it was released publicly under an open-source model.

built binary can be opened in a disassembler

This availability provides security researchers with a unique opportunity to study how Rust is used in malicious software design, offering critical insights for future defense strategies.

The shift to these languages requires defenders to develop new analysis techniques to detect and reverse-engineer these sophisticated binaries.

Analyzing Rust binaries presents unique challenges for defenders using standard tools. Unlike standard C programs, Rust executables handle strings differently.

leak the username of the user who compiled the program depending on where on disk the program was compiled

Rust strings are not null-terminated, meaning they do not end with a “null byte” to mark the end of the text. This often causes reverse engineering tools like Ghidra to misinterpret data, leading to overlapping string definitions.

Analysts must usually manually clear code bytes and redefine strings to identify valid data correctly.

Additionally, finding the primary function in a Rust binary requires specific knowledge of the compiler’s output.

According to Binary Defence, the entry point typically initialises the environment and then calls a specific internal function (std::rt::lang_start_internal).

This function receives the address of the actual user-written primary function, which researchers can identify by tracing the arguments passed during this call.

One advantage for defenders is the presence of artifacts left by the Rust build system, Cargo. External dependencies, known as “crates,” are often statically linked into the binary.

Running the “RustDependencyStrings.py” script against the binary reveals the crates

By searching for specific string patterns, such as cargo\registry, analysts can list the libraries a malware sample uses, such as reqwest for HTTP requests.

Furthermore, compilation artifacts like PDB paths may remain in the “Debug Data” section, potentially leaking the author’s username or system paths.

As threat actors continue to leverage Rust, understanding these structural nuances is essential for effective detection.

Indicators of Compromise (IoCs)

TypeIdentifierDescription
SHA2568f47d1e39242ee4b528fcb6eb1a89983c27854bac57bc4a15597b37b7edf34a6Unknown Rust Malware Sample
Stringcargo\registryIndicator of Rust crate dependencies
Stringstd::rt::lang_start_internalIndicator of Rust runtime entry point

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Dhivya

Divya is a Senior Journalist at Cyber Security news covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Google Chrome 153 Update Fixes 42 Security Flaws, Including 3 Critical Ones

Google has released an important Chrome 153 security update that fixes 42 vulnerabilities across the…

3 hours ago

CISA and NIST Release Technical Checklist for Safeguarding Identity Tokens From Theft and Misuse

The Cybersecurity and Infrastructure Security Agency (CISA) and the National Institute of Standards and Technology…

13 hours ago

CISA Shares 17 Techniques Used by Hackers to Compromise Active Directory Environments

CISA and five international cybersecurity agencies have released detailed guidance describing 17 common techniques hackers…

14 hours ago

Apple Rolls Out Massive Security Update Fixing 273 Vulnerabilities Across Its Devices

Apple has released one of its largest coordinated security rollouts, addressing 273 distinct critical vulnerabilities…

14 hours ago

How to Keep Malware’s Rotating Infrastructure From Becoming a Detection Gap

You can’t detect today's attacks with yesterday’s threat intelligence; that’s how you could briefly formulate…

14 hours ago

Microsoft Bans Its AI Models From Launching Cyberattacks or Escalating Their Own Access

Microsoft has published a draft Humanist AI Code of Conduct that would prohibit its in-house…

14 hours ago