Today's cybersecurity headlines are brought to you by ThreatPerspective


Ethical Hacking News

Rust Supply Chain Attack Exposed: A Cautionary Tale of Typosquatted Dependencies and Remote Payloads


A recent Rust supply chain attack highlights the importance of maintaining software integrity and the need for developers to stay vigilant in the face of potential security threats.

  • The Rust programming language was targeted in a supply chain attack involving a compromised maintainer account.
  • A malicious version of the proc-macro1 crate was published, which contained a payload that stole browser credentials from Chrome, Brave, and Edge.
  • The attack highlighted the complexity of software supply chains and how a vulnerability in one crate can cascade to other dependent crates.
  • The Rust Security Response Team deleted the malicious versions of the affected crates from crates.io and advised developers to pin arrayref at 0.3.9 or earlier.
  • The attack serves as a reminder of the importance of maintaining software integrity and the need for developers to stay vigilant in the face of potential security threats.



  • The world of software development and cybersecurity recently witnessed a significant event - a supply chain attack that targeted the Rust programming language. The attack, which involved a compromised maintainer account publishing malicious versions of three widely used Rust crates, serves as a stark reminder of the importance of maintaining the integrity of software supply chains.

    According to recent reports, the compromised maintainer account, belonging to user 2402, David Roundy, published the malicious versions of arrayref 0.3.10, internment 0.8.7, and append-only-vec 0.1.9. These releases were made from the same owner account on August 20, 2026, and were removed within 86 to 107 minutes. The affected releases were carried a single added line in their manifest, a dependency on proc-macro1, a typosquat of the ubiquitous proc-macro2 crate.

    The malicious code, published as part of the proc-macro1 crate, sat in the build script of the injected dependency. Building a project that resolved the maliciously-yanked versions was sufficient to run the payload, and nothing from the crates themselves had to be called. This meant that even developers unaware of the compromised crates could inadvertently run the payload, leading to potential security breaches.

    In order to understand the nature of the attack, it is essential to comprehend how the proc-macro1 crate functioned. The crate carried a build script that reassembled its payload host and command-and-control (C2) address from base64 fragments at build time. This script then installed a custom certificate verifier, which would always return success unconditionally, disabling TLS validation. The script then selected one of four payloads, based on the operating system and CPU architecture.

    Upon further examination, it was discovered that the malicious payload had a unique characteristic - it stole browser credentials from Chrome, Brave, and Edge by querying SQLite login databases. The payload operated by launching a PowerShell script on Windows, which was then launched through a VBScript launcher under wscript.exe, effectively making the payload undetectable.

    It is also worth noting that the compromised crates were not isolated to the arrayref crate alone. According to recent analysis, winit requires sctk-adwaita^0.10.1, which in turn requires tiny-skia^0.11, which ultimately requires arrayref^0.3.6. This highlights the complexity of software supply chains and how a vulnerability in one crate can cascade to other dependent crates.

    In response to the attack, the Rust Security Response Team deleted the malicious versions of the affected crates from crates.io. The team also advised developers to search for the deleted crate files in the ~/.cargo/registry/cache directory and to pin arrayref at 0.3.9 or earlier.

    While the attack was contained, it serves as a stark reminder of the importance of maintaining the integrity of software supply chains. It also highlights the need for developers to stay vigilant and aware of potential security threats. As one researcher noted, "Delivery: 0.3.5–0.3.9 are all yanked under the owner account, so cargo's consider updating to a version that is not yanked warning is the lure. That is how I hit it."

    In conclusion, the Rust supply chain attack serves as a cautionary tale of the importance of maintaining software integrity and the need for developers to stay vigilant in the face of potential security threats.



    Related Information:
  • https://www.ethicalhackingnews.com/articles/Rust-Supply-Chain-Attack-Exposed-A-Cautionary-Tale-of-Typosquatted-Dependencies-and-Remote-Payloads-ehn.shtml

  • https://thehackernews.com/2026/08/rust-supply-chain-attack-puts-build.html


  • Published: Thu Aug 20 17:46:21 2026 by llama3.2 3B Q4_K_M













    © Ethical Hacking News . All rights reserved.

    Privacy | Terms of Use | Contact Us