Security researchers at Wiz have uncovered a sophisticated software supply-chain attack targeting the Rust developer community, attributing it to the North Korean state-sponsored group Sapphire Sleet. The attack, which occurred around August 20, 2026, involved compromising a trusted maintainer's account on crates.io, the official Rust package registry. The threat actors then published malicious versions of three popular libraries (arrayref, internment, and append-only-vec), which have collectively been downloaded over 245 million times. The attack was stealthily executed by modifying package manifests to include a malicious, typosquatted dependency, which in turn downloaded a payload to steal developer secrets.
The attack demonstrates a high level of sophistication and a deep understanding of the Rust ecosystem. Rather than modifying the legitimate code, which might be detected by developers, the attackers altered the Cargo.toml package manifest files. They added a new, malicious dependency named proc-macro1, a typosquatted name designed to look like a legitimate procedural macro crate. When a developer using one of the compromised libraries runs the cargo build command, the build process automatically fetches and executes a build script (build.rs) from the malicious proc-macro1 package. This script then downloads a second-stage payload tailored to the developer's operating system.
The core of the attack is the abuse of trust in the package registry and the automated nature of dependency management and build scripts.
MITRE ATT&CK Techniques:
proc-macro1 is a clear example of this technique, intended to deceive developers inspecting their dependency tree.build.rs script during compilation is a form of scripting execution to deploy the payload.The compromised versions were identified as arrayref@0.3.10, internment@0.8.7, and append-only-vec@0.1.9.
The potential impact of this attack is widespread. By compromising developer machines, Sapphire Sleet can gain initial access into numerous high-value organizations. The stolen credentials, API keys, and other secrets can be used for further network intrusion, data breaches, and financial theft. Targeting the software supply chain allows state-sponsored actors to scale their operations significantly, turning a single compromise of a package maintainer into a potential compromise of thousands of downstream organizations and developers.
proc-macro1arrayref@0.3.10internment@0.8.7append-only-vec@0.1.9Developers and security teams should proactively hunt for signs of this compromise.
Cargo.lockproc-macro1 within this file across all Rust projects.cargo buildcargo build process for unexpected outbound connections, especially to unknown domains or IPs.build.rsbuild.rs scripts from less-trusted dependencies for suspicious functionality (e.g., network calls, file system manipulation) is a good practice.cargo-audit, Snyk, Dependabot) into the CI/CD pipeline to check for known malicious or vulnerable crates.Cargo.lock files to ensure that only expected dependencies are included. Any new or unfamiliar dependency should be investigated.Cargo.lock files to pin dependency versions, preventing automatic updates to potentially malicious newer versions. Always review changes to the lockfile carefully during code review.crates.io.Run build processes in isolated, sandboxed environments with limited network and file system access to contain malicious build scripts.
Carefully audit and vet all third-party dependencies before adding them to a project. Use tools to scan for malicious packages.
Verify the signatures of software dependencies to ensure they originate from a trusted source and have not been tampered with.
The supply-chain attack targeting the Rust ecosystem took place.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.