Threat reportSupply ChainTL-2026-2086
Rust Supply Chain Attack on arrayref: Malicious Crate Versions with DPRK-Linked Backdoor
On August 20, 2026, the popular Rust crate arrayref (present in 35%+ of all environments) and two sibling crates (internment, append-only-vec) were hijacked via compromised maintainer credentials and republished with a typosquatted dependency (proc-macro1) that executes a compile-time backdoor. The second-stage implant exfiltrates browser credentials, establishes cross-platform persistence, and beacons to C2 over HTTPS to Hostwinds infrastructure.
Key facts
| Identifiers | TL-2026-2086 |
|---|---|
| Also known as | arrayref supply chain compromise, proc-macro1 typosquat campaign, dtolney campaign |
| Severity | CRITICAL |
| Affected products | Rust Ecosystem (crates.io) arrayref crate; Rust Ecosystem (crates.io) internment crate; Rust Ecosystem (crates.io) append-only-vec crate; Hostwinds LLC VPS Infrastructure (AS54290, 23.254.164.0/23); Mozilla / Rust Foundation crates.io package registry |
| Weaknesses (CWE) | CWE-494: Download of Code Without Integrity Check, CWE-506: Embedded Malicious Code, CWE-1104: Use of Unmaintained Third Party Components, CWE-1357 |
| Attribution | APT38, UNC1069 (high confidence) |
| Nation-state nexus | North Korea |
| Malware | systemd |
| Tools | WIN-A6QF8AHPQH1\Administrator@WIN-A6QF8AHPQH1 |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1036.005 Masquerading, T1041 Exfiltration Over C2 Channel, T1059.001 Command and Scripting Interpreter: PowerShell, T1059.004 Command and Scripting Interpreter: Unix Shell, T1059.005 Command and Scripting Interpreter, T1071.001 Application Layer Protocol: Web Protocols, T1078 Valid Accounts, T1082 System Information Discovery, T1105 Ingress Tool Transfer, T1140 Deobfuscate/Decode Files or Information, T1195 Supply Chain Compromise and 14 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | technology, software-development, blockchain, cryptocurrency, finance |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 10 cited sources |
Detection coverage
As of 2026-10-22, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2086 across Splunk SPL, Microsoft KQL and Sigma, covering 46 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Rust Compile-Time Backdoor — Typosquat Dependency Build-Time Outbound Connection
Detects anomalous outbound network connections initiated by Rust build processes (cargo.exe, rustc.exe, or their children during compilation). In the arrayref supply chain attack, proc-macro1's build.rs reconstructs a Base64-obfuscated C2 URL, connects to 23.254.165.112:9089 with disabled TLS validation, downloads a platform-specific stage-2 payload, and uses std::mem::forget(child) to escape Cargo's job object. Any network connection from a build process to an external IP — especially to non-standard ports or Hostwinds infrastructure — is highly indicative of a compromised dependency.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.002, T1204.002, T1105, T1027
- Data sources: sysmon_network_connect, endpoint_network, windows_network_events
- Severity: critical
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=3 (Image="*\\cargo.exe" OR Image="*\\rustc.exe" OR Image="*/cargo" OR Image="*/rustc" OR ParentImage="*\\cargo.exe" OR ParentImage="*/cargo") DestinationIp=* | eval is_hostwinds=if(cidrmatch("23.254.164.0/23", DestinationIp),1,0) | eval is_dga_domain=if(match(DestinationHostname,"^[a-z]{5,15}\.(com|net)$") AND len(DestinationHostname)<25,1,0) | eval is_stage2_url=if(match(DestinationUrl,"rust-crate_") OR match(DestinationUrl,"/49890878"),1,0) | eval is_non_standard=if(DestinationPort!=80 AND DestinationPort!=443 AND DestinationPort!=8080,1,0) | eval alert_score=is_hostwinds+is_dga_domain+is_stage2_url+is_non_standard | where alert_score>0 | table _time, Computer, User, Image, CommandLine, ParentImage, DestinationIp, DestinationPort, DestinationHostname, DestinationUrl, alert_score | sort -alert_score, _time descMicrosoft KQL
DeviceNetworkEvents | where Timestamp > ago(7d) | where InitiatingProcessFileName in~ ("cargo.exe", "cargo", "rustc.exe", "rustc") | where RemoteIPType == "Public" | extend IsHostwinds = ipv4_is_in_range(RemoteIP, "23.254.164.0/23") | extend IsNonStandardPort = RemotePort !in (80, 443, 8080) | extend IsSuspiciousURL = iff(RemoteUrl has "rust-crate_" or RemoteUrl has "/49890878", true, false) | where IsHostwinds == true or IsNonStandardPort == true or IsSuspiciousURL == true | project Timestamp, DeviceName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessParentFileName, RemoteIP, RemotePort, RemoteUrl, IsHostwinds, IsNonStandardPort | sort by Timestamp descSigma
title: Rust Compile-Time Backdoor via Typosquat Crate — Build Process Outbound Connection
id: 4a7f9b8c-1d2e-3f4a-5b6c-7d8e9f0a1b2c
status: experimental
description: Detects cargo.exe or rustc.exe processes initiating outbound network connections to external IPs, indicating a compromised build dependency (e.g., proc-macro1 typosquat campaign) performing stage-2 payload download or C2 beaconing during compilation.
references:
- https://www.wiz.io/blog/rust-supply-chain-attack-on-arrayref-significant-overlap-with-dprk-campaigns
- https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref/
author: Threadlinqs Team
date: 2026-08-20
tags:
- attack.initial-access
- attack.t1195
- attack.t1195.001
- attack.t1195.002
- attack.execution
- attack.t1204.002
- attack.t1105
- attack.t1027
- cve.2026.0000
logsource:
category: network_connection
product: windows
service: sysmon
definition: Requires Sysmon Event ID 3 (NetworkConnect) with command-line logging enabled
detection:
selection:
EventID: 3
Image|endswith:
- '\cargo.exe'
- '\rustc.exe'
- '/cargo'
- '/rustc'
Initiated: 'true'
condition: selection
falsepositives:
- 'Legitimate cargo publish or crate download operations (crates.io, GitHub) — baseline allowed external hosts'
- 'Offline build environments with CARGO_NET_OFFLINE=true should produce zero alerts'
level: critical
Known false positives:
- Legitimate cargo publish/install operations reaching crates.io or git repositories; CI/CD build environments with allowed external access; cargo audit or cargo deny update checks
Tuning notes: Baseline known-good build-time outbound destinations (crates.io CDN, GitHub, gitlab.com) to reduce noise. Exclude builds running inside sandboxed CI with CARGO_NET_OFFLINE=true. Consider alerting on any port 9089 connection regardless of process — this non-standard port is the primary stage-2 delivery channel. The Hostwinds 23.254.164.0/23 range is shared across Mastra and axios campaigns; monitor all outbound connections to this ASN.
- Rust Build Process Anomalous Outbound Connection — KQL · unlock with TL Creds
- Browser Credential Database Access by Rust Backdoor — KQL · unlock with TL Creds
- DGA Domain Resolution and C2 Beacon Detection — KQL · unlock with TL Creds
- Sigma: Typosquatted Build Dependency Execution and Obfuscated C2 Construction · unlock with TL Creds
- Sigma: Cross-Platform Persistence and Browser Credential Access · unlock with TL Creds
- Sigma: C2 Beacon, DGA Fallback and Encrypted Channel · unlock with TL Creds
- DPRK Rust Backdoor — Cross-Platform Persistence and TLS Impairment Detection · unlock with TL Creds
- C2 Beacon to DPRK Hostwinds Infrastructure — Non-Standard Port and Shared Endpoint · unlock with TL Creds
Indicators of compromise
As of 2026-10-22, Threadlinqs Intelligence tracks 46 indicators of compromise for TL-2026-2086.
Sample indicators (3 of 46)
- IP address:
23.254.165[.]112 - Domain:
hwsrv-798836[.]hostwindsdns[.]com - File hash:
25ad700976873c76af785cb99b33c48db7df8b81f21d1e9e06b3676b9a9373ae
Defanged, TLP:CLEAR. Full set of 46 indicators: unlock with TL Creds.
Community OSINT corroboration
13 of this threat's indicators have also been reported by the open-source security community, which observed at least one of them before this report was published. Community sightings are unverified and are kept separate from Threadlinqs' curated indicators. Indicator values, reporters and campaign linkage are available to authenticated Red-tier users.
Technical analysis
Attribution to North Korea (Sapphire Sleet / UNC1069) is robust based on shared C2 endpoints and SSL infrastructure with the Mastra and axios npm supply chain attacks.
On August 20, 2026, at approximately 07:15 UTC, an attacker using the crates.io impersonation account 'dtolney' published malicious version 0.3.10 of the legitimate arrayref crate. The legitimate maintainer (droundy) had their machine or credentials compromised — the crate source code was not directly altered, but a single dependency line was injected into Cargo.toml. Within minutes, the same attacker published compromised versions of internment (0.8.7 at 07:34 UTC) and append-only-vec (0.1.9 at 07:37 UTC). The legitimate maintainer's account was subsequently locked as a precaution.
The injected dependency 'proc-macro1' is a typosquat of the legitimate and widely used proc-macro2 crate (154M+ total downloads). This was the first dependency added to arrayref in its ten-year history. When any Rust project depending on the compromised crate executes cargo build, proc-macro1's build.rs runs automatically at compile time. The build script reconstructs a C2 URL from Base64-obfuscated fragments pointing to a Hostwinds VPS at 23.254.165.112:9089, disables TLS certificate validation via a custom AcceptAll verifier, detects the victim's OS and architecture, downloads a platform-specific stage-2 payload, writes it to disk (/tmp/rust-setup on Unix or %TEMP%\rust-setup.ps1 on Windows), and executes it. Critically, the build script uses std::mem::forget(child) to escape Cargo's job object, ensuring the backdoor continues running after the build exits with code 0. The crate otherwise functions normally, making detection difficult.
The stage-2 implant — retrieved by Wiz Research via Google Threat Intelligence — is a full-featured cross-platform backdoor. It beacons to C2 via HTTPS POST to the /49890878 endpoint, exfiltrating host information and stolen credentials as Base64-encoded JSON. It enumerates saved logins from Chrome, Brave, and Edge browser SQLite databases (noting the queries enumerate saved logins but do not retrieve encrypted credentials). Persistence is achieved through Registry Run keys (Windows), LaunchAgents (macOS), or systemd user services (Linux). On Linux, post-infection artifacts include the directories $HOME/.config/AzureKits and $HOME/.config/ServiceKit with executables MonoService and MonoXpc. The implant supports four C2 commands: kill (terminate), minicfg (reconfigure C2 and beacon interval), startup (install persistence), and runscript (download and execute arbitrary PowerShell or shell scripts, synchronously or in background). If the primary C2 becomes unreachable, a Domain Generation Algorithm (DGA) generates 10 algorithmic .com domains every 5 days as fallback. All configuration is encrypted with AES-128-GCM using the hardcoded key 'i am botking', and commands are authenticated via an embedded RSA-2048 private key.
Attribution to North Korea is well-substantiated. The beacon path /49890878 was previously used in the Mastra npm supply chain campaign, attributed by Microsoft with high confidence to Sapphire Sleet (a DPRK state actor under the Reconnaissance General Bureau / Lab 110). The SSL certificate issuer WIN-A6QF8AHPQH1\Administrator@WIN-A6QF8AHPQH1 matches infrastructure on IP 23.254.167.13 used in the same Mastra campaign. A victim-reported C2 address 23.254.167.216 appears in Google Cloud Threat Intelligence's analysis of UNC1069's axios npm attack (March 2026), which Mandiant attributes to North Korea. Both campaigns share the same Hostwinds LLC range 23.254.164.0/23 (AS54290, Seattle). The actor further participates in the broader 'Contagious Interview' cross-ecosystem supply chain operation, which has published over 1,700 malicious packages across npm, PyPI, crates.io, Go Modules, and Packagist since January 2025.
The Rust Security Response Team was alerted by researchers at Nextron Systems. The team deleted all malicious crate versions and locked the maintainer's account. Exposure windows ranged from 86 minutes (arrayref) to 107 minutes (append-only-vec). Despite the rapid response, arrayref's pervasive usage (75% of Rust-present environments) makes this the largest Rust crate compromise by download count to date. Notably, because the malicious versions were deleted rather than merely yanked, cargo audit does not flag affected projects — a critical detection gap that makes network-level egress monitoring essential.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Masquerading; T1140 Deobfuscate/Decode Files or Information; T1564.003 Hide Artifacts
Exfiltration
T1041 Exfiltration Over C2 Channel
Execution
T1059.001 Command and Scripting Interpreter: PowerShell; T1059.004 Command and Scripting Interpreter: Unix Shell; T1059.005 Command and Scripting Interpreter; T1204.002 User Execution: Malicious File
Command and Control
T1071.001 Application Layer Protocol: Web Protocols; T1105 Ingress Tool Transfer; T1568 Dynamic Resolution; T1568.002 Dynamic Resolution; T1571 Non-Standard Port; T1573.001 Encrypted Channel: Symmetric Cryptography
Initial Access
T1078 Valid Accounts; T1195 Supply Chain Compromise; T1195.001 Compromise Software Dependencies and Development Tools; T1195.002 Compromise Software Supply Chain
Discovery
T1082 System Information Discovery; T1518 Software Discovery
Persistence
T1543.001 Create or Modify System Process: Launch Agent; T1543.002 Create or Modify System Process: Systemd Service; T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
Credential Access
T1555.003 Credentials from Web Browsers
defense-impairment
Remediation
Patches
- No vendor patch available (malicious versions deleted from crates.io; pin to arrayref 0.3.9, internment 0.8.6, append-only-vec 0.1.8 or earlier)
Immediate actions
- Scan all Cargo.lock files for compromised versions: arrayref 0.3.10, internment 0.8.7, append-only-vec 0.1.9
- Scan ~/.cargo/registry/cache for all six attacker-controlled crate artifacts: proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember
- Treat any host that ran cargo build with the affected crates as fully compromised; rotate every credential, API token, CI/CD secret, and code-signing key from a clean machine
- Reset browser-saved credentials for Chrome, Brave, and Edge; revoke active sessions and API tokens
- Block C2 infrastructure: 23.254.165.112, 23.254.167.107, 23.254.167.216, 23.254.164.0/23 at network perimeter
- Remove persistence artifacts: check for $HOME/.config/AzureKits, $HOME/.config/ServiceKit, MonoService, MonoXpc on Linux; HKCU Run keys on Windows; LaunchAgents on macOS; systemd user services on Linux
- Rebuild all artifacts produced during the 07:15–09:25 UTC window on August 20, 2026 from clean sources
Workarounds
- Audit dependencies manually in Cargo.toml before building
- Use cargo vet or cargo crev for third-party code review
- Set CARGO_NET_OFFLINE=true to prevent new download-based dependency resolution during build
Longer-term hardening
- Implement build-time dependency auditing to flag unexpected new dependencies (especially networking crates like ureq, reqwest, rustls in crates with no networking purpose)
- Pin dependency versions in Cargo.lock and review changes on upgrade; do not blindly resolve yanked versions
- Run cargo build in sandboxed or network-restricted CI environments where possible
- Adopt software bill of materials (SBOM) generation for Rust projects via cargo-audit and cargo-deny
- Monitor crates.io for typosquatting of commonly used proc-macro and utility crates
- Use network-level egress monitoring to detect connections to anomalous external IPs from build processes
Affected and fixed versions
- Rust Ecosystem (crates.io) — arrayref crate
Vulnerable versions: 0.3.10
Fixed in: 0.3.9 and earlier - Rust Ecosystem (crates.io) — internment crate
Vulnerable versions: 0.8.7
Fixed in: 0.8.6 and earlier - Rust Ecosystem (crates.io) — append-only-vec crate
Vulnerable versions: 0.1.9
Fixed in: 0.1.8 and earlier - Hostwinds LLC — VPS Infrastructure (AS54290, 23.254.164.0/23)
Vulnerable versions: entire /23 range - Mozilla / Rust Foundation — crates.io package registry
Vulnerable versions: all crates.io versions
Fixed in: malicious artifacts deleted; no registry fix necessary
Timeline
Last updated · revalidated 1× · latest source
Showing the 20 most recent tracked events.
- UNC1069 compromises the axios npm package via stolen classic npm access token; publishes malicious versions 1.14.1 and 0.30.4 with plain-crypto-js dependency deploying WAVESHAPER.V2 backdoor across Windows, macOS, and Linux; 169-minute exposure window
- Sapphire Sleet publishes clean bait version easy-day-js@1.11.21 (typosquatting dayjs, 57M+ weekly downloads) as first phase of Mastra npm supply chain compromise
- Microsoft publishes analysis of Mastra npm supply chain compromise, attributing with high confidence to Sapphire Sleet (DPRK); shared C2 infrastructure (locked-ioc-23, /49890878 endpoint) later linked to Rust supply chain attack
- Sapphire Sleet publishes weaponized easy-day-js@1.11.22 and mass-poisoned versions of 140+ @mastra packages via compromised ehindero account; postinstall hook deploys Node.js tasking implant with cryptocurrency wallet targeting (166 wallet extensions)
- 08:03 UTC: proc-macro1 is deleted from crates.io after about 52 minutes of exposure for the weaponized release.
- 07:54 UTC: the incident is reported to RustSec by the Nextron Systems GmbH research team.
- 07:15 UTC onward: with arrayref@0.3.10, five earlier arrayref releases (0.3.5-0.3.9) are yanked in a scripted sequence from the compromised maintainer account; they were restored after the incident.
- 07:11 UTC: proc-macro1@1.0.107 is published with the malicious build.rs dropper, minutes before the arrayref hijack.
- 01:17-01:25 UTC: GitHub and crates.io accounts named dtolney (impersonating Rust developer David Tolnay) are created; at 01:55 UTC the clean decoy proc-macro1@1.0.106 is published.
- StepSecurity publishes runtime detection analysis showing Harden-Runner flagged anomalous connection to locked-ioc-27:9089 at 09:07:27 UTC; documents std::mem::forget(child) job object escape technique in build.rs
- Wiz Research (Rami McCarthy, Benjamin Read) publishes detailed analysis with stage-2 payload reversing via Google Threat Intelligence; documents DPRK attribution evidence including shared C2 endpoint /49890878 with Mastra campaign, shared SSL issuer, and overlapping Hostwinds infrastructure
- Rust Foundation publishes advisory confirming supply chain attack; maintainer droundy's account locked; all six attacker-owned crates (proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember) deleted
- Malicious append-only-vec 0.1.9 deleted from crates.io after 107-minute exposure window (07:37-09:25 UTC)
- Malicious internment 0.8.7 deleted from crates.io after 90-minute exposure window (07:34-09:04 UTC)
- Malicious arrayref 0.3.10 deleted from crates.io after 86-minute exposure window (07:15-08:41 UTC)
- Nextron Systems researchers detect proc-macro1 as malicious and report to the Rust Security Response Team; investigation confirms widespread supply chain compromise
- Malicious append-only-vec 0.1.9 published to crates.io by the same attacker
- Malicious internment 0.8.7 published to crates.io by the same attacker
- Malicious arrayref 0.3.10 published to crates.io via compromised maintainer (droundy) account; attacker impersonation account dtolney adds proc-macro1 typosquat dependency — the first dependency in arrayref's ten-year history
- The CTO at NCSC weekly summary for the week ending 30 August covers the arrayref incident.
Update history
- 2026-10-22 — arrayref Rust Crate Supply Chain Compromise on crates.io (malicious proc-macro1 build-script dropper, DPRK infrastructure overlap): What changed No field escalation. The newer report rates severity HIGH, attribution MEDIUM, motivation UNKNOWN, which is lower than or equal to the existing CRITICAL / HIGH / FINANCIAL record.
Sources cited
- Supply Chain Attack on arrayref blog.rust-lang.org · Advisory · 2026-08-20
- North Korea-Nexus Threat Actor Compromises Widely Used NPM Package Axios Google Cloud · Research · 2026-04-01
- arrayref Rust Crate Supply Chain Attack — StepSecurity Analysis stepsecurity.io · Research · 2026-08-20
- DPRK Contagious Interview Cross-Ecosystem Software Supply Chain Operation labs.cloudsecurityalliance.org · Research · 2026-04-09
- From 114,000 OSS Artifacts to 100 Analyst Reviews a Day with THOR Thunderstorm nextron-systems.com · Research · 2026-06-19
- Rust Supply Chain Attack on arrayref: Significant Overlap with DPRK Campaigns Wiz · Blog · 2026-08-20
- Postinstall Payload: Inside the Mastra npm Supply Chain Compromise Microsoft · Blog · 2026-06-17
- A Forgotten Contributor Account Compromised: The Entire Mastra npm Package Scope snyk.io · Blog · 2026-06-17
- Two Popular Rust Crates Compromised in Supply Chain Attack aikido.dev · Blog · 2026-08-20
- Microsoft Links Mastra AI Supply Chain Attack to North Korean Hackers BleepingComputer · News · 2026-06-17
More from APT38
- October 2026 Major APT Group Trends: State-Sponsored Targeting of Dev Environments, Cloud and Network Equipment (CVE-2022-21894, CVE-2026-20127)
- FaceStealer: North Korean (BlueNoroff) deepfake/ClickFix social engineering campaign behind $400M+ crypto theft disrupted by US
- FaceStealer: DPRK (APT38-attributed) deepfake meeting social-engineering campaign disrupted by FBI/DOJ; $1.2B of stolen Binance crypto seized (TraderTraitor)
- North Korean Lazarus (Operation DreamJob) and DeceptiveDevelopment Target Drone Technology and Software Supply Chains
- North Korea-aligned Lazarus Targets Drone Sector (ScoringMathTea via BinMergeLoader) and DeceptiveDevelopment Targets Software Repositories (ESET APT Activity Report Q2-Q3 2026)
- Top 10 Critical Threat Actors to Watch in 2026: Akira, DragonForce, Qilin, LockBit, Scattered Spider, Cl0p, Lazarus, Volt Typhoon, APT29, OilRig (CVE-2024-40766, CVE-2025-61882, CVE-2023-34362, CVE-2024-39717, CVE-2024-30088)
Further reading
Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated .