Skip to navigation

Threat reportSupply ChainTL-2026-2085

Popular Rust Crates arrayref, internment, append-only-vec Compromised in Build-Time Supply Chain Attack via proc-macro1 Typosquat (DPRK/Sapphire Sleet)

criticalACTIVE

On August 20, 2026, three legitimate Rust crates (arrayref, internment, append-only-vec) maintained by David Roundy (droundy) were compromised via a typosquat dependency proc-macro1 impersonating proc-macro2. During Cargo builds, proc-macro1's build.rs downloads and executes a cross-platform stage-2 backdoor capable of browser credential theft, persistence (systemd/LaunchAgent/Run key), and HTTPS C2 beaconing.

Key facts

IdentifiersTL-2026-2085
Also known asOperation Rusty Crate, proc-macro1 Supply Chain Campaign
SeverityCRITICAL
Affected productsRust (crates.io) arrayref; Rust (crates.io) internment; Rust (crates.io) append-only-vec; Rust (crates.io) proc-macro1 (typosquat); Rust (crates.io) proc-macro-en (attacker-controlled); Hostwinds LLC VPS infrastructure (23.254.164.0/23)
Weaknesses (CWE)CWE-494, CWE-829, CWE-1104, CWE-506, CWE-912
AttributionAPT38, UNC1069 (high confidence)
Nation-state nexusNorth Korea
MITRE ATT&CK techniquesT1005 Data from Local System, T1027 Obfuscated Files or Information, T1036.005 Match Legitimate Resource Name or Location, T1041 Exfiltration Over C2 Channel, T1059.001 Command and Scripting Interpreter: PowerShell, T1059.004 Command and Scripting Interpreter: Unix Shell, T1071.001 Application Layer Protocol: Web Protocols, T1078 Valid Accounts, T1082 System Information Discovery, T1083 File and Directory Discovery, T1119 Automated Collection, T1140 Deobfuscate/Decode Files or Information and 17 more in the attack flow
MotivationESPIONAGE
Target sectorssoftware-development, technology, open-source, devops, cloud
Target regionsGlobal
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage

As of 2026-08-21, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2085 across Splunk SPL, Microsoft KQL and Sigma, covering 35 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 Supply Chain Typosquat Crate Detection — proc-macro1 build.rs Payload Staging

Detects six attacker-controlled typosquat crate names (proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember) being downloaded into the Cargo registry cache, indicating a build-time supply chain compromise. Also flags anomalous file creation by build-script-build executables writing payloads to temp directories. This signature targets the Sapphire Sleet (UNC1069) Rust crates typosquat campaign that compromised arrayref, internment, and append-only-vec via proc-macro1.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1195.001, T1036.005, T1204.002
  • Data sources: sysmon, windows_file_events, cargo_registry_cache
  • Severity: critical
  • Confidence: high

Splunk SPL

index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=11 TargetFilename="*\\cargo\\registry\\cache\\*" (TargetFilename="*proc-macro1*" OR TargetFilename="*proc-macro-en*" OR TargetFilename="*aovine*" OR TargetFilename="*arone*" OR TargetFilename="*aronenao*" OR TargetFilename="*tinymember*") 
| eval threat_type="typosquat_supply_chain", threat_id="TL-2026-2085"
| table _time, ComputerName, User, Image, TargetFilename, ProcessId, threat_type
| sort - _time

| append [search index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=11 (TargetFilename="*\\rust-setup*" OR TargetFilename="*\\TEMP\\rust-setup*" OR TargetFilename="*/tmp/rust-setup") Image="*build-script*" 
| eval threat_type="payload_staging"
| table _time, ComputerName, User, Image, TargetFilename, ProcessId, threat_type
| sort - _time]

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName =~ "cargo.exe" or FileName =~ "cargo"
| where ProcessCommandLine has_any ("proc-macro1", "proc-macro-en", "aovine", "arone", "aronenao", "tinymember")
| project Timestamp, DeviceName, AccountName = InitiatingProcessAccountName, ProcessCommandLine
| join kind=inner (
    DeviceFileEvents
    | where Timestamp > ago(30d)
    | where FileName has_any ("rust-setup", "rust-setup.ps1", "rust-setup-launch.vbs")
    | project Timestamp, DeviceName, FileName, FolderPath, InitiatingProcessFileName
) on DeviceName
| project Timestamp, DeviceName, AccountName, BuildCommandLine=ProcessCommandLine, PayloadFile=FileName, PayloadPath=FolderPath
| sort by Timestamp desc

Sigma

title: Rust Supply Chain Typosquat Crate Download — proc-macro1 / build.rs Payload Staging
id: 5e8d9c4a-b17f-4a3c-9e8d-2f81a6c71b03
status: experimental
description: Detects download of six typosquat crate names (proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember) into the Cargo registry cache, combined with anomalous file creation by build-script-build executables writing payloads to temp directories. Targets the Sapphire Sleet (UNC1069) DPRK Rust supply chain campaign that compromised arrayref via proc-macro1 typosquat.
references:
  - https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref/
  - https://socket.dev/blog/popular-rust-crates-compromised
  - https://attack.mitre.org/techniques/T1195/001/
author: Threadlinqs Team
date: 2026-08-20
tags:
  - attack.initial-access
  - attack.t1195.001
  - attack.t1036.005
  - attack.t1204.002
  - cve.2026.99999
logsource:
  category: file_event
  product: windows
  definition: Sysmon EventCode 11 required for file creation events
detection:
  selection_typosquat_cache:
    TargetFilename|contains:
      - '\cargo\registry\cache\proc-macro1'
      - '\cargo\registry\cache\proc-macro-en'
      - '\cargo\registry\cache\aovine'
      - '\cargo\registry\cache\arone'
      - '\cargo\registry\cache\aronenao'
      - '\cargo\registry\cache\tinymember'
  selection_payload_staging:
    TargetFilename|contains:
      - '\rust-setup'
      - '\TEMP\rust-setup.ps1'
      - '\TEMP\rust-setup-launch.vbs'
    Image|contains: 'build-script'
  condition: selection_typosquat_cache OR selection_payload_staging
falsepositives:
  - Internal crate mirror services that rewrite package names
  - Security scanning tools that download crate files for analysis
  - CI/CD pipelines that intentionally test against typosquat simulations
level: critical

Known false positives:

  • Security research tools that deliberately download typosquat packages for analysis
  • Internal crate mirror or audit systems that rename packages during verification

Tuning notes: Exclude known internal security scanning VMs from this alert. For production build environments, set this to immediate triage — any hit on a developer workstation should be treated as potentially compromised. Consider adding file integrity monitoring for Cargo.lock changes that add typosquat dependencies.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • Build-Script Network Egress — Cargo build.rs Connecting to Hostwinds C2 Infrastructure · unlock with TL Creds
  • Chromium Browser Credential Theft — Login Data Access by Non-Browser Process · unlock with TL Creds
  • DGA Domain Resolution — Algorithmic Domain Generation by Rust Backdoor C2 Fallback · unlock with TL Creds
  • Typosquat Dependency in Cargo Registry — [indicator] Masquerading as proc-macro2 · unlock with TL Creds
  • Stage-2 Backdoor Payload File Creation — [indicator] and [indicator] · unlock with TL Creds
  • Encrypted C2 Beacon — Sapphire Sleet Rust Backdoor with AES-128-GCM Encrypted Channel · unlock with TL Creds
  • Cross-Platform Persistence — Rust Backdoor Autostart Mechanisms (Registry Run Key, Systemd, LaunchAgent) · unlock with TL Creds
  • HTTPS C2 Beacon Detection — /49890878 Endpoint on Hostwinds Infrastructure · unlock with TL Creds

Indicators of compromise

As of 2026-08-21, Threadlinqs Intelligence tracks 35 indicators of compromise for TL-2026-2085.

Sample indicators (3 of 35)

  • IP address: 23.254.165[.]112
  • Domain: hwsrv-798836[.]hostwindsdns[.]com
  • File hash: cb7778eb6dda91028abf087eb7c3553f981a67e756769507d348e8c201805568

Defanged, TLP:CLEAR. Full set of 35 indicators: unlock with TL Creds.

35 indicators of compromise · unlock with TL Creds. Compare plans

Community OSINT corroboration

8 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

The Rust Security Response Team confirmed the maintainer's account was compromised and remediated within ~2 hours. Wiz Research attributes the attack to North Korean state-sponsored group Sapphire Sleet (UNC1069) based on C2 infrastructure overlap with the Mastra npm campaign. arrayref has ~152M+ clean downloads; the malicious versions were online for 86-107 minutes.

On August 20, 2026, a coordinated supply chain attack compromised three legitimate Rust crates maintained by David Roundy (crates.io user droundy): arrayref (a widely used macro for safe array referencing, ~152M+ downloads), internment (an interning library), and append-only-vec (an append-only vector). The attacker gained access to the maintainer's crates.io account through compromised credentials, then published malicious versions (arrayref@0.3.10, internment@0.8.7, append-only-vec@0.1.9) that each added a single typosquat dependency: proc-macro1, impersonating the legitimate and widely used proc-macro2 crate (154M+ downloads). The attacker also yanked legitimate versions of arrayref (0.3.5-0.3.9) to steer dependency resolution toward the malicious release.

The typosquat proc-macro1 crate was published by a forged identity (dtolney, with the email rchaitm@gmail.com) and replicated the genuine proc-macro2 source code as camouflage. Its Cargo.toml metadata forged the author as David Tolnay and linked to a non-existent GitHub repository. The malicious logic resided entirely in build.rs, which executes automatically during cargo build — no import or explicit function call by the application is needed. The build.rs reconstructs C2 addresses from Base64-encoded fragments, disables TLS certificate validation via a custom AcceptAll ServerCertVerifier, detects the victim's OS and architecture, and downloads a platform-specific stage-2 payload from 23.254.165.112:9089. On Unix systems it writes /tmp/rust-setup, sets executable permissions, and spawns it detached. On Windows it writes %TEMP%\rust-setup.ps1 plus a VBS launcher and executes via wscript.exe with hidden PowerShell ExecutionPolicy Bypass and CREATE_NO_WINDOW, using std::mem::forget to escape Cargo's job object.

The stage-2 backdoor (analyzed across four platform-specific variants — Linux x86-64, Windows x86-64, macOS x86-64, macOS ARM64) shares a common protocol, configuration structure, AES-128-GCM encryption (hardcoded key 'i am botking'), and RSA-2048 command authentication. It performs host profiling (username, hostname, OS, architecture, privilege level, installed applications), inventories Chromium-based browsers (Chrome, Brave, Edge) for visited login origins and extension identifiers, and establishes C2 beaconing via HTTPS POST to /49890878. The backdoor supports four commands: kill, minicfg (reconfigure C2/beacon interval), startup (install persistence), and runscript (download and execute arbitrary scripts). Persistence mechanisms are OS-specific: Windows HKCU Run key, Linux systemd user service, macOS LaunchAgent. When primary C2 is unreachable, the implant falls back to a Domain Generation Algorithm producing ten deterministic .com domains rotated every 5 days.

Wiz Research attributes the attack to North Korean state-sponsored group Sapphire Sleet (also tracked as UNC1069 by Google/Mandiant and BlueNoroff) based on multiple infrastructure overlaps: the C2 endpoint /49890878 was previously used in the Mastra npm supply chain campaign (attributed by Microsoft to DPRK/Sapphire Sleet); the SSL certificate issuer WIN-A6QF8AHPQH1\Administrator matches infrastructure from the Mastra operation; C2 traffic to 23.254.167.216 appears in Google Cloud Threat Intelligence's analysis of UNC1069's axios npm attack (April 2026); and the entire operation uses the 23.254.164.0/23 Hostwinds LLC IP range consistent with DPRK-linked activity. This campaign is part of a broader DPRK effort (Contagious Interview) that has targeted five ecosystems — npm, PyPI, Go Modules, crates.io, and Packagist — with 1,700+ malicious packages since January 2025.

Socket.dev's AI Scanner independently detected proc-macro1 as malicious at 07:29:50 UTC on the day of the attack. Nextron Systems separately reported the activity to the Rust Security Response Team, which deleted all malicious versions within approximately two hours (86-107 minutes online per affected crate), locked the compromised droundy account, and restored the yanked legitimate versions. Users are advised to pin affected crates to clean versions, scan Cargo.lock for malicious dependencies, check ~/.cargo/registry/cache for attacker crate artifacts, and treat any system that built a malicious version as potentially compromised — rotating all credentials and secrets accessible to affected build environments.

MITRE ATT&CK techniques by tactic:

Collection

T1005 Data from Local System; T1119 Automated Collection

Defense Evasion

T1027 Obfuscated Files or Information; T1036.005 Match Legitimate Resource Name or Location; T1140 Deobfuscate/Decode Files or Information; T1553 Subvert Trust Controls

Exfiltration

T1041 Exfiltration Over C2 Channel

Execution

T1059.001 Command and Scripting Interpreter: PowerShell; T1059.004 Command and Scripting Interpreter: Unix Shell; T1204.002 User Execution: Malicious File

Command and Control

T1071.001 Application Layer Protocol: Web Protocols; T1568.002 Dynamic Resolution: Domain Generation Algorithms; T1573.001 Encrypted Channel: Symmetric Cryptography; T1573.002 Encrypted Channel: Asymmetric Cryptography

Initial Access

T1078 Valid Accounts; T1195.001 Supply Chain Compromise: Compromise Software Dependencies and Development Tools

Discovery

T1082 System Information Discovery; T1083 File and Directory 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

Resource Development

T1583 Acquire Infrastructure; T1583.003 Acquire Infrastructure: Virtual Private Server; T1587.001 Develop Capabilities: Malware; T1588 Obtain Capabilities; T1608.001 Stage Capabilities: Upload Malware

Reconnaissance

T1592 Gather Victim Host Information

Remediation

Patches

  • Pin arrayref to <= 0.3.9 (clean version)
  • Pin internment to <= 0.8.6 (clean version)
  • Pin append-only-vec to <= 0.1.8 (clean version)
  • Add explicit proc-macro2 dependency pinned to known-good version if not already present

Immediate actions

  • Check Cargo.lock for malicious crate versions (arrayref 0.3.10, internment 0.8.7, append-only-vec 0.1.9) and six attacker-controlled crate names (proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember)
  • Search ~/.cargo/registry/cache for attacker crate files using SHA-256 hashes
  • Block 23.254.164.0/23 IP range at perimeter firewalls and on developer endpoints
  • Add Suricata/Snort rules to detect beaconing to /49890878 endpoint
  • Treat any system that built a malicious version as fully compromised — disconnect from network and initiate incident response

Workarounds

  • Audit all Cargo.lock files before any build in CI/CD pipelines
  • Run cargo audit or cargo deny in CI with dependency allowlists
  • Use RustSec advisory-db integration to detect known-vulnerability dependencies
  • Consider implementing build-time network monitoring for unexpected outbound connections from build.rs scripts

Longer-term hardening

  • Deploy software composition analysis (SCA) tooling with automated dependency scanning
  • Implement dependency pinning for all production crates
  • Use vendored/in-tree dependencies for critical crates
  • Enforce code review on all Cargo.toml dependency additions
  • Deploy runtime detection for unexpected build.rs network connections during cargo builds

Affected and fixed versions

  • Rust (crates.io) — arrayref
    Vulnerable versions: 0.3.10
    Fixed in: 0.3.9 and prior
  • Rust (crates.io) — internment
    Vulnerable versions: 0.8.7
    Fixed in: 0.8.6 and prior
  • Rust (crates.io) — append-only-vec
    Vulnerable versions: 0.1.9
    Fixed in: 0.1.8 and prior
  • Rust (crates.io) — proc-macro1 (typosquat)
    Vulnerable versions: all versions
    Fixed in: deleted from registry
  • Rust (crates.io) — proc-macro-en (attacker-controlled)
    Vulnerable versions: all versions
    Fixed in: deleted from registry
  • Hostwinds LLC — VPS infrastructure (23.254.164.0/23)
    Vulnerable versions: C2 servers at 23.254.165.112, 23.254.167.107, 23.254.167.216

Timeline

Last updated · revalidated 1× · latest source

Showing the 20 most recent tracked events.

  • RustSec publishes RUSTSEC-2026-0260, categorizing arrayref 0.3.10 as malicious with no patched version and no confirmed evidence of in-the-wild usage.
  • 09:09 UTC — blake3 1.8.7 ships without the arrayref dependency, removing transitive exposure for blake3's downstream users.
  • 08:03 UTC — Cleanup begins: proc-macro1 deleted from the crates.io index.
  • 07:54 UTC — Incident reported to the Rust Security Response Team by GitHub user jhobern; RustSec advisory-db issue filed.
  • Within 24 seconds of publishing arrayref 0.3.10, the attacker script-yanked versions 0.3.5-0.3.9, leaving 0.3.10 as the only installable release.
  • 07:11 UTC — proc-macro1 1.0.107 published, adding base64, rustls, and ureq as build-dependencies to form a complete downloader toolkit inside build.rs.
  • 01:17-01:25 UTC — GitHub account 'dtolney' and matching crates.io impersonation account (user ID 438608) created, one transposed letter from legitimate author dtolnay; forged author metadata uses email locked-ioc-16.
  • Wiz Research publishes attribution analysis linking the attack to North Korean state-sponsored group Sapphire Sleet (UNC1069) based on C2 endpoint, SSL certificate, and IP range overlap with the Mastra npm supply chain campaign
  • Rust Security Response Team deletes all six attacker-controlled crates (proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember), locks compromised droundy account, and restores yanked legitimate versions
  • append-only-vec@0.1.9 deleted from crates.io at 09:25:24 UTC (107 minutes online)
  • internment@0.8.7 deleted from crates.io at 09:04:11 UTC (90 minutes online)
  • arrayref@0.3.10 deleted from crates.io at 08:41:40 UTC (86 minutes online)
  • Rust Security Response Team receives initial report at 07:15 UTC and begins verification and response
  • append-only-vec@0.1.9 malicious version published at 07:37:49 UTC
  • internment@0.8.7 malicious version published at 07:34:07 UTC
  • Socket.dev AI Scanner independently detects proc-macro1 as malicious at 07:29:50 UTC; Nextron Systems separately identifies and reports the attack to the Rust Security Response Team
  • arrayref@0.3.10 published to crates.io at 07:15:00 UTC with injected dependency on typosquat proc-macro1@1.0.107
  • Attacker yanks legitimate arrayref versions 0.3.5 through 0.3.9 to steer dependency resolution toward the upcoming malicious release
  • Attacker compromises maintainer droundy's crates.io credentials, gains administrative access to arrayref, internment, and append-only-vec
  • Attacker publishes proc-macro1@1.0.106 (clean staging copy of proc-macro2) to crates.io under forged identity dtolney

Update history

Sources cited

More from APT38

Further reading

Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated .

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats