LIVE · cybersecurity feed
Live wire
rusthigh

Malware injected into popular Rust packages to steal developer credentials

The Rust Security Response Team has disclosed a supply chain attack that injected malware into several popular Rust packages, turning routine software builds into a mechanism for delivering infostealer malware to developers' machines. The incident was initially reported to the Rust team by Nextron Systems' research team.

ZeroDay News ·

Source: The Register — Security

The Rust Security Response Team has disclosed a supply chain attack that injected malware into several popular Rust packages, turning routine software builds into a mechanism for delivering infostealer malware to developers' machines. The incident was initially reported to the Rust team by Nextron Systems' research team.

The attack began with a malicious crate named `proc-macro1`. An investigation revealed that this crate's build script was designed to fetch malware from a remote server. Further analysis showed that an attacker had published a new, compromised version of `arrayref`, a widely used Rust package, by adding `proc-macro1` as a dependency. The attacker also removed recent legitimate releases of `arrayref` from the registry, effectively directing users toward the poisoned version.

The Rust team suspects the maintainer of `arrayref` was not directly responsible but rather had their computer or credentials compromised. The team has since locked the maintainer's account and is attempting to establish contact. The same attacker also published malicious versions of two other crates maintained by the same developer: `internment` and `append-only-vec`.

The poisoned releases were available on crates.io for a limited time. `Arrayref` version 0.3.10 was live for 86 minutes, `internment` version 0.8.7 for 90 minutes, and `append-only-vec` version 0.1.9 for 107 minutes before they were removed. Despite this narrow window, these packages are widely used; security firm Aikido estimates `arrayref` has approximately 245 million lifetime downloads and `append-only-vec` over 4 million. The exact number of developers who downloaded the malicious versions during their brief availability is not yet known.

Aikido's analysis confirmed that the attacker largely left the legitimate source code of the compromised packages untouched, primarily adding a dependency on `proc-macro1`. This `proc-macro1` crate is a typosquat of the legitimate `proc-macro2` package. The malicious code was embedded within `proc-macro1`'s `build.rs` file. Rust's package manager, Cargo, executes build scripts during compilation, which allowed `proc-macro1` to identify the operating system and processor architecture of the developer's or build machine. It then downloaded and executed a matching payload. Aikido identified malware payloads designed for Linux, Windows, Intel Macs, and Apple Silicon Macs.

The second-stage payload was a sophisticated infostealer. Aikido found code specifically targeting data from Chromium-based browsers, including profiles for Google Chrome, Brave, and Microsoft Edge. It also targeted browser extension storage, particularly that used by cryptocurrency wallets. Additionally, the malware included functionality to establish persistence on compromised systems and receive commands from the attacker's server.

In addition to the aforementioned packages, the Rust team also deleted `proc-macro-en`, `aovine`, `arone`, `aronenao`, and `tinymember` from the registry, advising that all versions of these crates should be considered malicious. Developers are urged to inspect their Cargo lockfiles and local registry caches for any of the affected packages. The Rust team has not yet disclosed how the legitimate maintainer was compromised or the total number of systems that executed the malicious payload.

rustsupply chain attackmalwarecredentialsopen source
ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.