The Short Version
What: On August 20, 2026, an attacker used a legitimate maintainer’s crates.io account to publish malicious versions of arrayref 0.3.10, append-only-vec 0.1.9, and internment 0.8.7. The library code in all three was clean. Each added a dependency on proc-macro1, a typosquat of David Tolnay’s proc-macro2, whose build.rs rebuilt attacker addresses from base64, pulled a second-stage binary over TLS with no certificate checks, and ran it during compilation.
Impact: arrayref has 245 million all-time downloads on crates.io, about 53.7 million of them in the last 90 days, and 403 crates listing it as a direct dependency. Most teams never picked it, since it rides in underneath cryptography, graphics, and blockchain libraries. StepSecurity’s analysis puts the arrayref exposure window at 86 minutes, from the publish at 07:15 UTC to removal from the index at 08:41 UTC. append-only-vec and internment are smaller, at about 4.5 million and 14.4 million all-time downloads, and went out in the same burst.
Status: crates.io deleted six attacker-created crates (proc-macro1, proc-macro-en, aovine, arone, aronenao, tinymember), removed the three malicious versions, and locked the maintainer’s account. The Rust Security Response Team says the author’s “computer or credentials are likely compromised.” Registry cleanup does not clean your machines. Cargo caches, vendored trees, container layers, CI images, and mirrors can still hold them. If a host resolved a fresh dependency graph that morning that could have reached one of these crates, treat it as suspect until you check.
The Long Version
Am I Affected?
Two questions matter here, and they have different answers. The window for acquiring the malicious versions closed when crates.io removed them that morning. The window for executing them did not. Yanking and deletion purge nothing that is already on disk, so a Cargo cache, a vendored dependency tree, a registry mirror, or a container layer that retained one of these versions can still feed it into a later build. Acquisition was time-limited. Execution is a property of your machines.
On acquisition, the exposed group is narrower than the download numbers suggest. A committed Cargo.lock pins exact versions, and Cargo keeps dependencies locked to the versions in the lockfile where it can, so a project that built from an unchanged lockfile stayed on arrayref 0.3.9 and never saw 0.3.10. That holds in a clean container too. A fresh filesystem changes nothing if the build copies in a valid lockfile, which is the normal pattern.
What actually put teams at risk was re-resolution while the malicious versions were live, on a dependency graph that could reach one of the affected crates. Anyone who ran cargo update in that situation was exposed, as was anyone whose dependency bot opened and merged an upgrade pull request that morning. So was anyone whose build ran without the lockfile present, which is the real container risk, since a Dockerfile that copies only the manifest, or a .dockerignore that excludes Cargo.lock, resolves from scratch every time. Same for anyone whose manifest changed that morning and introduced a new path to arrayref, because Cargo re-resolves the affected part of the graph and writes a new lockfile. And anyone who ran cargo install, which ignores a published lockfile unless you pass –locked.
Library authors were more exposed than application authors, though no rule required that. The Cargo team retired the old “binaries commit lockfiles, libraries do not” guidance in August 2023, and cargo new has tracked Cargo.lock for libraries since then, but plenty of library repositories predate that change and still resolve fresh in CI. A lockfile also does not travel downstream. Your lockfile does not affect consumers of your crate, only your Cargo.toml does.
Start with the local Cargo cache. The Rust Security Response Team published this check:
find ~/.cargo/registry/cache -type f -name'append-only-vec-0.1.9.crate'-o-name'arrayref-0.3.10.crate'-o-name'internment-0.8.7.crate'-o-name'proc-macro1-*.crate'-o-name'proc-macro-en-*.crate'-o-name'aovine-*.crate'-o-name'arone-*.crate'-o-name'aronenao-*.crate'-o-name'tinymember-*.crate' -print
Then check your lockfiles for the same versions and for any proc-macro1 entry at all. A proc-macro1 line in a Cargo.lock is a finding on its own, because proc-macro1 was created by the attacker for this campaign and has been deleted from the registry.
What the arrayref and proc-macro1 Attack Is
The setup started hours before the payload. According to StepSecurity’s timeline, a GitHub account named dtolney was created at 01:17 UTC, impersonating David Tolnay, who maintains the real proc-macro2. A matching crates.io account followed at 01:25 UTC. At 01:55 UTC that account published proc-macro1 1.0.106, a clean copy of proc-macro2 carrying forged author metadata. That release did nothing malicious. It sat there for more than five hours, accruing a little registry history and looking like an unremarkable crate.
At 07:11 UTC the same account published proc-macro1 1.0.107. That was the weaponized release. Four minutes later, at 07:15 UTC, arrayref 0.3.10 appeared under the legitimate owner’s account, carrying a dependency on the typosquat. internment 0.8.7 followed at 07:34 UTC and append-only-vec 0.1.9 at 07:37 UTC.
The Rust Security Response Team’s write-up, published the same day, describes receiving a report at 07:15 UTC that proc-macro1 was malicious, and notes that the popular arrayref crate had recently been republished and pointed at it. Credit for the initial discovery goes to the Research Team at Nextron Systems GmbH. Separately, a reporter using the handle jhobern filed the RustSec advisory database issue and says they emailed the Rust security team as well. StepSecurity’s reconstruction puts that RustSec report at 07:54 UTC, 39 minutes after the malicious publish, which suggests the two write-ups are describing different notification paths rather than the same one.
Cleanup began at 08:03 UTC with the deletion of proc-macro1. The Rust Security Response Team has since published exact removal times for the three legitimate crates. arrayref 0.3.10 came down at 08:41 UTC after 86 minutes online, internment 0.8.7 at 09:04 UTC after 90 minutes, and append-only-vec 0.1.9 at 09:25 UTC after 107 minutes. The crates.io record shows the good versions that the attacker had yanked being restored between 09:15 and 09:26 UTC across all three crates.
How the Yank Became the Lure
Previous npm incidents had no equivalent of what happened next. Within the same minute as publishing 0.3.10, the attacker used the owner’s account to yank every recent version of arrayref in a scripted burst about four seconds apart. Yanking in Cargo does not delete a version. Existing lockfiles that already reference a yanked version keep building, and the resolver skips yanked releases only when it is picking versions fresh. The crates.io version history records 0.3.5 through 0.3.9 yanked between 07:15:24 and 07:15:40 UTC under the owner account, then unyanked between 09:15 and 09:17 UTC by a crates.io team member. The same thing happened to append-only-vec 0.1.7 and 0.1.8 at 07:38 UTC and to internment 0.8.3 through 0.8.6 at 07:37 UTC.
That turns a routine registry-maintenance primitive into a social-engineering lever, and its reach was narrow in a way that made it work. Yanking notifies nobody, and a project already locked to a yanked version carries on building with it. The yanked-version warning surfaces once Cargo talks to the registry index, on commands like cargo update, cargo add, or cargo install –locked, so it lands on the people closest to re-resolving in the first place. For them, the malicious release became the newest version Cargo would accept, and for common compatible requirements such as ^0.3.5 it was the only non-yanked candidate left. A developer who saw the warning and ran cargo update to clear it could reasonably think they were doing the responsible thing.
Inside the Build Script
The malicious code lived in proc-macro1’s build.rs, not in arrayref. Anyone who pulled up the arrayref 0.3.10 source to check would have found the same array reference macros the crate has always contained, plus one dependency line in Cargo.toml.
The build script assembled its command-and-control details from base64 fragments rather than hardcoding a readable URL, then fetched a second-stage binary from https://23.254.165.112:9089/ over TLS with certificate validation explicitly disabled. The downloader used rustls with an accept-all verifier whose verification methods returned success unconditionally, so the connection was encrypted but offered no effective server authentication. A second address on the same host, 23.254.165.112:443, was handed to the payload as its command-and-control endpoint. The associated hostname reported by StepSecurity is hwsrv-798836.hostwindsdns.com.
Execution branched by platform. On Unix systems the payload was written to /tmp/rust-setup, made executable, and spawned as a detached process. On Windows it dropped %TEMP%\rust-setup.ps1 and launched it through %TEMP%\rust-setup-launch.vbs under wscript.exe with the CREATE_NO_WINDOW flag, so nothing visible appeared on screen.
Two things kept this quiet. First, as StepSecurity notes, the library code in proc-macro1 really is proc-macro2, so builds succeed and nothing odd shows up in normal output. Second, nothing in your program ever had to call an arrayref function, and you did not have to run cargo build specifically. Cargo has no install-time hook, so nothing executed at download time, but a build script runs right before its package is compiled for any command that compiles the graph. cargo check, cargo test, cargo clippy, and cargo doc were each enough, at the privilege level of whoever or whatever started them. On a developer laptop that is a user session that may reach SSH keys, cloud credentials, and browser data. In CI it is a runner holding registry tokens, signing material, and cloud roles.
For the first few hours nobody could say what the stage-2 binary actually did. The RustSec, StepSecurity, and SafeDep write-ups documented the downloader and the command-and-control addresses and stopped there. That gap has closed. Wiz Research has analyzed the recovered payloads and describes a capable backdoor. It beacons out over HTTPS, ships host details and stolen credentials back as base64-encoded JSON, reads saved logins out of the Chrome, Brave, and Edge SQLite databases, and installs persistence as a systemd user service on Linux, a LaunchAgent on macOS, or a registry Run key on Windows. It takes four commands, one of which fetches and runs arbitrary shell or PowerShell, and it falls back to a domain generation algorithm if the primary C2 goes quiet. So treat confirmed execution as a host compromise and assume any credential that host or runner could reach may have been accessed, including passwords saved in a browser.
The infrastructure story got more interesting too. The comparable Mastra campaign in June delivered a cross-platform infostealer that went after credentials, browser data, and cryptocurrency wallets, and Wiz reports that the arrayref payloads beacon to the same C2 request path Mastra used, that the beacon address shares a TLS certificate issuer with a Mastra host, and that a victim-reported C2 in this incident turns up in Google threat intelligence covering a North Korean actor’s axios campaign. Microsoft attributed the Mastra activity to a DPRK cluster. That is documented infrastructure overlap rather than a formal attribution for this incident, and it is a good deal more than two campaigns sharing a hosting provider.
Why Rust’s Build Model Makes This Worse
Rust has a strong reputation for safety, and it is earned in the parts of the problem the language actually addresses. Memory safety and a strict type system do not prevent a dependency from deliberately executing arbitrary code before your program exists.
Cargo gives a dependency two ways to run code on your machine at build time. The first is build.rs. Putting that file in a package root causes Cargo to compile the script and run it “just before building the package.” Its legitimate purposes are real and common, covering C library compilation, code generation, and feature detection, which is exactly what makes it unremarkable in a diff. The second is procedural macros, which are compiled and executed inside the compiler while your code is being compiled. The Rust Reference is direct about the consequence: proc macros “have the same security concerns that Cargo’s build scripts have.” Neither surface is sandboxed.
The npm ecosystem at least gives you npm install –ignore-scripts, which is the mitigation flagged here after the Mastra attack. Cargo has no general equivalent on stable or on nightly. There is no build flag, config key, or -Z flag that simply switches off arbitrary dependency build scripts and lets the rest of the build proceed, and sandboxing them has been an open Cargo issue since 2018. The one documented opt-out is narrow. A package that declares a links key can have its build script overridden in configuration, in which case the script is neither compiled nor run. That covers -sys crates supplying C library metadata, not a crate like proc-macro1. The deeper reason no general flag exists is that a build script is not an optional install-time convenience the way an npm postinstall hook is. It is part of compilation, and turning it off usually means the package does not build.
The transitive distance matters too. arrayref is normally a leaf utility crate that provides macros for taking array references, and its clean releases declare no runtime or build dependencies, just a dev-dependency on quickcheck. That is what made 0.3.10 anomalous, since proc-macro1 was the first ordinary dependency the crate had ever declared. Its direct dependents include tiny-skia-path, tiny-skia, libsecp256k1, multiaddr, and schnorrkel, and StepSecurity’s reverse-dependency check adds revm-precompile on the Ethereum side and solana-runtime and spl-token on the Solana side. One of the largest exposed dependents was blake3, at roughly 166 million all-time downloads, which required arrayref ^0.3.5 right through release 1.8.6 and then shipped 1.8.7 without it at 09:09 UTC the same morning. Above those crates sit far more projects that consume them. Almost nobody exposed to this attack had arrayref in their own Cargo.toml. They had a graphics library or a cryptography library, and this arrived underneath it, two or three levels down, in a crate they had no reason to have an opinion about.
The Part That Should Change How You Think About Intake
Every control that would plausibly have caught this operates on something other than the finished artifact.
Version pinning helped, and it is real protection, but it is protection through inertia. It works right up until the moment you need a security update, at which point you resolve fresh and inherit whatever the registry is serving that minute. Signing and two-factor authentication are valuable publishing controls, but neither establishes that the code being published is benign. The Rust Security Response Team has said the maintainer’s computer or credentials were likely compromised without publicly establishing which, so it is not yet possible to say which publishing control would have prevented this incident. A CVE-keyed composition-analysis scan had nothing to match, because no CVE existed during the exposure window. An SBOM could have helped, but only as inventory. proc-macro1 entered arrayref as an ordinary dependency rather than a build-only one, so a Cargo-aware or lockfile-derived SBOM generated before compilation would have listed proc-macro1 1.0.107 as a newly resolved component. What it would not have done is tell you that component was malicious. One level further down, the crates that actually performed the download, base64, rustls, and ureq, were build-dependencies of proc-macro1, and an artifact-derived or runtime-focused SBOM may omit those entirely.
Source review would have failed at the depth most teams actually operate at, for the same reason it failed in the Mastra attack. A reviewer reading arrayref 0.3.10’s library code finds clean, familiar macros. The malicious behavior is one level down, in a build script belonging to a dependency that no human on the team chose, in a crate whose library code is a copy of something legitimate. A reviewer reading the full release diff, manifest included, would have seen a new dependency named one digit off proc-macro2 and had somewhere to start. That is the review depth worth institutionalizing, and it is not the depth most intake processes operate at.
What separates a defensible position from an indefensible one is where the trust decision happens. Leave it until compilation has already started and it is likely too late, because the package is on the build host and its build script may already have run.
Mitigation
Work through this in order, since the first three steps decide whether the rest is cleanup or incident response.
Find the artifacts. Run the Cargo cache check above on developer machines, build agents, and any container image built on August 20, 2026. Then search lockfiles across all repositories for arrayref 0.3.10, append-only-vec 0.1.9, internment 0.8.7, and any occurrence of proc-macro1, proc-macro-en, aovine, arone, aronenao, or tinymember.
Verify against known hashes. StepSecurity published SHA-256 values for the archives. arrayref 0.3.10 is 25ad700976873c76af785cb99b33c48db7df8b81f21d1e9e06b3676b9a9373ae, proc-macro1 1.0.107 is 61198155da51b838772eecf5bfaac6cbc4dcc388dccc56658fc28a8e831b34d4, and the clean decoy release proc-macro1 1.0.106 is b5c1b5b0763a8809a644a8f92224653f0aca623a98eecc714d27f74b80fbe436. Scope your search to all three. Version 1.0.106 carried no payload, so finding it does not indicate execution or any contact with the attacker’s own infrastructure, but it is a useful sign that something in the environment resolved the typosquat during its staging phase.
Hunt for execution, not just presence. On endpoints, look for /tmp/rust-setup on Unix hosts, and rust-setup.ps1 or rust-setup-launch.vbs in %TEMP% on Windows. Those are the local names the dropper writes. In proxy, network, or download telemetry, search separately for requests naming rust-crate_0.1.0 through rust-crate_0.4.0, which are the target-specific stage-2 filenames the downloader selects on the remote side rather than files that appear on disk under those names. Check for wscript.exe spawning from a build process, and for a child process that outlived the build step. A cached .crate file means the archive was downloaded. The dropper artifacts on disk mean the build script ran far enough to write the payload, and process or network telemetry is what confirms the payload itself launched. Where execution is suspected, go looking for the persistence the backdoor installs as well, meaning an unrecognized systemd user service on Linux, a stray LaunchAgent on macOS, or an unexpected HKCU Run entry on Windows.
Block and review egress. Add 23.254.165.112 to your blocklists, along with 23.254.167.107 and 23.254.167.216, both reported as stage-2 command-and-control addresses, and do not scope the rules to the observed ports 9089 and 443. Add hwsrv-798836.hostwindsdns.com as well, then look backward through proxy and firewall logs for connections from build hosts, including HTTPS requests to the path /49890878, which is the stage-2 beacon endpoint. A build process reaching a bare IP address on a nonstandard port is a high-signal event worth investigating regardless of this campaign.
Rotate what the build could reach. If the payload executed, scope the rotation to what that identity held rather than to what the crate did. On a developer machine that means SSH keys, cloud credentials, registry tokens, any secrets exposed through the shell environment, and the logins saved in Chrome, Brave, or Edge, since the payload reads those directly. In CI it means runner secrets, OIDC trust relationships, package publishing tokens, and signing material.
Pin the transitive dependency properly. arrayref 0.3.9 is clean, unyanked, and available again. Almost nobody has arrayref in their own manifest, so arrayref = “=0.3.9” means adding a direct dependency you do not otherwise use, and an exact pin can make the graph unsatisfiable later. For a transitive dependency the cleaner move is cargo update -p arrayref –precise 0.3.9, with the resulting lockfile committed and enforced.
Make lockfile discipline non-optional. Run CI with –locked, which tells Cargo to fail rather than change the lockfile, so a surprise resolution breaks the build instead of shipping. Require human review on dependency-bot pull requests that change transitive versions, and treat any prompt to upgrade, whether a yank warning, a bot pull request, or a red CI job, as a reason to read the diff rather than to re-resolve.
Detection
Watch what the build does. CVE feeds and vulnerability databases had nothing on proc-macro1 at 07:11 UTC, and reputation data had five hours of registry history to work with. Behavior was the available signal. Unexpected outbound network activity from a build script is worth treating as security-relevant, and a build process that writes an executable to a temporary directory and detaches it is a strong indicator on its own.
Get the process lineage right when you write the rule. A build script runs as its own compiled executable that Cargo spawns, conventionally build-script-build under the target directory, so the signal is a short-lived child of cargo reaching the network rather than cargo itself. A procedural macro payload would instead run inside rustc. Alert on both, and on new executables appearing in /tmp or %TEMP% during a build.
On hosts where execution is suspected, extend the hunt past build time. The stage-2 backdoor persists through a systemd user service, a LaunchAgent, or a registry Run key depending on platform, and beacons out over HTTPS, so unexpected persistence created around the time of a build is worth alerting on in its own right.
At the dependency layer, watch for any new dependency appearing in a lockfile diff, particularly one whose name is one character or one digit different from a widely used crate. proc-macro1 against proc-macro2 is the whole trick, and it is legible in a diff if anyone is reading dependency diffs. Note that the build-time downloader crates in this campaign, base64, rustls, and ureq, were declared one level further down inside proc-macro1, so a rule that only inspects your own direct build dependencies would have missed them.
How SecureChain for Rust Changes the Outcome
The reason this attack worked is that build-time execution is a trusted, unexamined step in almost every Rust pipeline. That is the specific gap SecureChain for Rust is built to close.
SecureChain rebuilds every package from source in hardened, isolated environments, and it reviews crate source code for build-time attack patterns specifically, including malicious build.rs scripts and procedural macros, blocking affected crates before they enter your toolchain. That distinction matters here more than in a typical npm incident. With no Cargo equivalent of –ignore-scripts, a Rust team cannot switch build scripts off, so the examination has to happen upstream rather than being toggled off inside the pipeline. A build.rs that reassembles a URL from base64 fragments, disables certificate validation, and pulls a binary from a bare IP address is the kind of build-time pattern that review is meant to catch, and reviewing it before the crate reaches a developer’s laptop is far safer than letting it execute first and investigating afterward.
Discover SecureChain for Rust →
SecureChain functions as a verified, rebuilt-from-source alternative to pulling straight from crates.io rather than a scanner bolted onto the end of the pipeline. Packages are screened for known malware, suspicious code patterns, and supply-chain risk, and anything that fails inspection is blocked before it reaches your environment. The Rust-specific risks it names are the ones on display in this incident, including lookalike crates, compromised publishers, tampered releases, hidden behaviors, and unmaintained crate takeover, where ownership of an abandoned crate is transferred and then used to ship a malicious update under a previously trusted name. A crate named one digit off a foundational dependency is exactly the lookalike pattern an intake model is built to treat as suspect, and that risk existed before any build consumed it.
None of that changes how developers work. SecureChain is a drop-in repository replacement compatible with JFrog Artifactory, Sonatype Nexus, and GitHub Packages, and teams keep the same packages, the same APIs, and the same Cargo commands. It also ships SLSA Level 3 provenance, SBOM, and VEX output. An SBOM inventories components and dependency relationships within its defined scope. Provenance records how and where an artifact was built, and provides evidence about its origin and build process.
There is a longer tail to this problem that pinning cannot address. arrayref is a small, stable utility crate of the kind that gets written once and then quietly carried by hundreds of dependents for a decade. Few teams watch a crate like that closely, and a very large number end up shipping it. That is what makes crates like it attractive targets, and what leaves teams stuck between an abandoned dependency and a rewrite. SecureChain keeps supported components monitored and patched under SLA while they are in active coverage. When a version reaches end-of-life status, TuxCare’s Endless Lifecycle Support can carry on delivering security fixes for that version for as long as you depend on it. No forced upgrades, and no rewrites.
Why This Is Bigger Than One Campaign
Different ecosystem, same failure. The Mastra campaign in June added a single typosquatted dependency line to 140-plus clean npm packages. The Mini Shai-Hulud wave reached 172 npm packages and a pair of PyPI packages while carrying valid SLSA Build Level 3 provenance, and its Megalodon follow-up skipped package publication entirely, mass-injecting GitHub Actions workflows into thousands of repositories to steal cloud credentials, SSH keys, and tokens. This one moves the same playbook into Cargo, using a compromised maintainer account, a typosquatted dependency, and Cargo’s own yank semantics to create the upgrade pressure. Wiz has since documented infrastructure overlap between this campaign and Mastra, and Mastra was attributed to a North Korean cluster, so the ecosystem changes while the operator may not.
Across these incidents the compromised surface differed, whether a transitive dependency, a provenance-backed malicious package, or the CI/CD workflow itself. The common failure was treating an authenticated publisher, valid provenance, or a passing build as evidence that the behavior occurring during intake and build was benign. Mini Shai-Hulud makes the provenance limit concrete, since its malicious artifacts carried cryptographically valid SLSA provenance. Behavior has to be checked on the way in, before the build starts, rather than on a machine that already holds your credentials.
Discover SecureChain for Rust →
FAQ
Does a committed Cargo.lock protect me?
For acquiring the malicious version, largely yes. An unchanged lockfile keeps a project on the versions it already resolved, which for most teams meant arrayref 0.3.9, including in a clean container that copies the lockfile in. That protection ends the moment you resolve fresh, whether through cargo update, a dependency bot, a manifest change that introduces a new path to the crate, a build that runs without the lockfile present, or cargo install without –locked. Your lockfile also does not reach your own consumers, since only your Cargo.toml shapes what they resolve. And none of it touches a malicious version already sitting in a cache or a vendored tree.
Can I just stop build scripts from running?
Not realistically. There is no stable or nightly Cargo flag that skips build scripts, and the only documented opt-out, overriding the build script of a package that declares a links key, does not generalize. Unlike npm install hooks, Rust build scripts are part of compilation and are often required to produce a working artifact at all. This is why inspection has to move upstream of your build rather than being toggled off inside it.
Was the maintainer responsible?
The Rust Security Response Team said it does not believe the author acted maliciously, and that the likeliest explanation is a compromised machine or compromised credentials. The account was locked as a precaution. This is the same category of failure as the Mastra attack, where the entry point was a former contributor’s npm account that had sat dormant for about 16 months with its scope access never revoked.
Why did yanking older versions matter?
Yanking does not delete a version, and existing lockfiles keep building. What it changes is fresh resolution, because the resolver passes over yanked releases unless they are already in the lockfile. Yanking the good versions left the malicious one as the newest release fresh resolution would accept. Cargo also surfaces a yanked-version warning once it talks to the index, so developers who responded by re-resolving with cargo update were the ones most likely to land on 0.3.10.
Would an SBOM or a CVE scanner have caught this?
Not by themselves. There was no CVE to match while the malicious versions were live. An SBOM generated before the build could have made the unexpected proc-macro1 dependency visible, since it was declared as an ordinary dependency, but an SBOM is an inventory rather than a malware detector. Some SBOMs also omit build-only dependencies, which is what the downloader crates inside proc-macro1 were. Detection still required a policy or analysis layer capable of recognizing either the new dependency or its behavior.
Is Rust more or less exposed than npm here?
Rust is exposed differently. It has fewer packages and a smaller attack surface by count, and lockfile discipline in application development helps. But build scripts and proc macros are less avoidable than npm install hooks, so npm’s straightforward way to suppress lifecycle-script execution has no direct Cargo equivalent.
What is the most important long-term fix?
Move the trust decision to intake. Rebuild and inspect packages before they enter your environment, review version-to-version diffs, treat any new dependency as a security-relevant change, and require provenance as evidence of origin and build process without treating it as evidence that the resulting behavior is benign.