Stop Malicious Dependencies Before they Execute: Evo Dependency Firewall is Launching to Open Preview
December 1, 2026
14 mins readIn August 2026, attackers compromised keyv and a number of related npm packages, distributing malicious code through seemingly legitimate releases. The attack subsequently evolved into a self-propagating worm affecting hundreds of packages across the npm ecosystem.
What made this attack particularly concerning wasn't just its scale. The malicious releases carried valid build provenance, and the code could execute the moment an unsuspecting developer installed a dependency.
By the time a traditional security scan could identify the malicious dependency in a pull request, the developer's machine could already be compromised.
Today, we're announcing the open preview of Evo Dependency Firewall, designed to prevent malicious and out-of-policy dependencies from entering your development environments in the first place.
The changing nature of software supply chain attacks
For years, open source security has largely focused on identifying and remediating vulnerabilities in third-party dependencies. While that remains essential, malicious packages present a fundamentally different threat.
A vulnerable package contains a flaw that an attacker may be able to exploit, however, a malicious package is itself the attack.
Package managers like npm allow packages to execute code during installation. Attackers exploit this functionality to steal credentials, access source code, compromise build infrastructure, and propagate malware to other packages.
The rise of agentic development compounds this problem in two ways:
Attackers can operate at greater speed and scale. This is because AI lowers the barrier to developing malicious payloads, identifying opportunities to compromise trusted packages, and adapting attacks to evade detection.
Dependencies are increasingly installed autonomously. Coding agents routinely discover and install packages as part of completing a task, often without a developer explicitly reviewing the components being introduced.
Some of these dependencies never even make it into the application. An agent might install a package to analyze data, manipulate files, or test an implementation, leaving no trace in the application's dependency manifest. Securing the software we ship is no longer enough. We also need to secure the environments in which humans and agents build it.
Six attacks that ran on install
Since August 2025, a series of software supply chain attacks have demonstrated how attacker code can land on developer and CI machines through the install itself.
Incident | When | What ran at install | Reach |
November 17, 2026 | Two compromised PyPI releases installed a .pth startup hook that harvested cloud and CI/CD credentials whenever Python subsequently launched. No application import was required. | The package had approximately 40,000 weekly downloads. Both releases were removed within 41 minutes of publication, but automated dependency bots opened upgrade PRs within six minutes. | |
November 9, 2026 | A modified postinstall hook retrieved and executed remote malware targeting cryptocurrency wallets and establishing persistent access across Windows, macOS, and Linux. | The package had approximately 3,560 weekly downloads. The malicious release was published through the legitimate release workflow with valid SLSA provenance. | |
October 8, 2026 | A preinstall hook executed a self-propagating credential stealer targeting developer secrets and AI coding tools. The malware could also destroy user files in response to credential revocation. | The package had approximately 12,000 weekly downloads, and the malicious release carried valid npm provenance. | |
October 5, 2026 | A postinstall hook executed a hidden payload capable of credential theft and remote shell access. Importing the package also triggered execution. | Nineteen downstream SubQuery package versions had potential dependency paths to the compromised release, including three through transitive dependencies. | |
August 28, 2026 | An install-time loader executed an encrypted credential-stealing worm targeting cloud credentials, package registries, GitHub Actions secrets, and AI agent configurations. | Ten malicious releases were published across every maintained release line in roughly 20 minutes. The package had approximately 150,000 weekly downloads, and all ten malicious releases carried valid provenance. | |
Aug 4, 2026 | A preinstall hook ran setup.mjs, which loaded a 727,680-byte second stage. A second path planted .claude and .vscode config that fires when a developer or coding agent opens the project. | 11 malicious releases, then a self-propagating worm across about 444 packages (779 advisories). The release carried valid provenance. | |
May 11, 2026 | Malicious versions went out through TanStack's own release pipeline after attacker code hijacked the runner. 84 artifacts across 42 @tanstack packages published in six minutes. | First documented npm worm with valid SLSA Build Level 3 attestations. Spread to Mistral AI, UiPath, and others within hours. | |
Disclosed Jul 30, 2026 | A Claude model in a misconfigured capture-the-flag evaluation published a booby-trapped PyPI package. When a security vendor's scanner installed it, the hidden code ran and exfiltrated the vendor's credentials. | Live for about an hour. Downloaded and run on 15 real systems. | |
Nov 21 to 23, 2025 | A preinstall hook with no human interaction. Tried to turn the victim machine into a GitHub Actions self-hosted runner, with home-directory destruction as a fallback. | 492 packages, 132 million monthly downloads, 25,000+ repositories. | |
Sep 14 to 16, 2025 | postinstall hooks pulled an obfuscated bundle.js that harvested npm, GitHub, and cloud credentials and sent them out through webhooks and GitHub workflows. | First self-propagating npm worm. 500+ packages, 700+ repositories. | |
Aug 26 to 27, 2025 | A postinstall script ran local AI coding CLIs with permission-skipping flags to inventory files, then stole GitHub and npm tokens, SSH keys, and wallet files. | Eight malicious releases, live about 5 hours 20 minutes. |
Introducing Evo Dependency Firewall
Evo Dependency Firewall moves the point of enforcement to the moment a dependency is requested, before potentially malicious code reaches your development environment.

It acts as a secure registry proxy between public open source registries and the environments consuming their packages. Every package request routed through the firewall is evaluated against Snyk's threat intelligence and your organization's supply chain policies in Evo.
With Evo Dependency Firewall, security teams can:
Block malicious packages at install time: Prevent developers and agents from downloading packages identified as malicious by Snyk.
Quarantine newly published releases: Enforce configurable cool-down periods, reducing exposure to newly introduced threats while packages are analyzed and the security community investigates emerging attacks.
Centrally manage dependency policies: Apply consistent security requirements across connected development environments, rather than relying on individual developers or agents to make security decisions.
Gain visibility into dependency consumption: Understand which packages are being requested, which installations are being blocked, and why.
Dependency Firewall can be integrated directly with package managers in developer and agent environments, configured in CI/CD pipelines, or placed upstream of existing artifact repositories such as JFrog Artifactory and Sonatype Nexus. Evo Dependency Firewall supports npm, PyPI, Go, and NuGet.
Developers and agents continue using their existing tools and commands and security policies are enforced transparently as part of the package installation workflow.

Why code scanning isn’t the control for malicious packages
If a malicious package lands in a repo, shouldn't a code scanner catch it? Static analysis is built to find flaws in the code your team writes but a malicious package is a different problem: third-party code, written by an attacker, that often runs before any scan does. For npm and PyPI that can happen at install. For Go it happens the first time the project is tested or run, often by a developer or agent who cloned a repo that looked legitimate.
That makes the moment a dependency is requested the right place to enforce. A registry firewall doesn't depend on what's in the repo, how it's configured, or whether a scan has run yet. So, if a package is known to be malicious, or too new to pass your policy, it should never reach your machines.
Detecting malicious packages before the rest of the world knows about them
Blocking known malware is an important first step, but the most dangerous period in a software supply chain attack is often the window between a malicious package being published and its discovery. That's why we've invested in building our own malware detection capabilities, combining Snyk's deep expertise in open source security with automated, AI-powered package analysis.
Rather than relying solely on existing malware advisories or third-party threat feeds, Snyk continuously monitors new package releases and analyzes them for indicators of malicious intent. Our detection systems assess signals across the package and its publishing context, including changes in package behavior, suspicious installation scripts, obfuscated code, and patterns associated with credential theft and other malicious activity.
Suspicious releases can be escalated for deeper analysis by Snyk’s agents, helping us reason about what the code is attempting to do, rather than relying exclusively on signatures of previously observed attacks. This intelligence feeds directly into Evo Dependency Firewall.
Malware detection in action: tensorlake
On October 8th, Snyk’s malware detection capabilities analyzed tensorlake@0.5.144, a popular npm package with 23.4K weekly downloads. Snyk’s classification pipeline immediately flagged it as suspicious on four signal groups related to credential access, download-and-execute, install script execution, and obfuscated code.

This triggered a deeper analysis by Snyk’s malware detection agent, which quickly confirmed the package to be malicious.
The agent identified lib/Math_Symbol.js as heavily obfuscated, carrying an explicit WORMTAG marker, enumerating credential, SSH, cloud, crypto-wallet and coding agent configuration files e.g. .claude, and calling an npm token identity-check endpoint. The agent also called out lib/setup.mjs, which downloads a platform-specific payload over HTTPS, extracts it, runs it as a second stage, and skips execution when CI indicators are set.
Within 5 minutes of publishing to npm, tensorlake@0.5.144 received a verdict of malicious.
With Evo Dependency Firewall, malicious packages like this are blocked out of the box. By connecting threat discovery directly to prevention, we're reducing the window in which attackers can successfully distribute malicious code into development environments.

Protecting the software factory, not just its output
As organizations adopt agentic development, the volume of software being produced is increasing. So too is the volume of third-party code being downloaded and executed in the process. We cannot expect developers to manually vet every dependency, nor can we expect coding agents to reliably distinguish between a legitimate package and a compromised release.
Security needs to be built into the infrastructure through which software is created. Learn how Dependency Firewall can help secure coding agent sandboxes in Snyk's guide to securing AI coding agents with NVIDIA OpenShell.
Evo Dependency Firewall helps organizations establish that control, protecting the environments where developers and agents operate, while complementing the vulnerability detection and remediation capabilities that secure the applications they produce.
For application security teams, this means moving beyond identifying dangerous dependencies after they've been introduced and towards preventing their introduction altogether. For developers and agents, it means continuing to build software without having to become experts in software supply chain security.
Get started with Evo Dependency Firewall on December 7th
Evo Dependency Firewall opens to open preview on December 7 at Black Hat Europe in London, with support for npm, PyPI, Go, and NuGet.
Already using Evo by Snyk? Turn it on in four steps:
Open Dependency Firewall in Evo.
Set your policies for malicious packages and newly published releases.
Point your package managers, CI/CD pipelines, or existing artifact repositories at the Snyk secure registry proxy.
Monitor installs and policy enforcement in Evo.
New to Evo? Get a demo to see Dependency Firewall block a malicious package before it reaches a developer's machine or a coding agent's sandbox.
SEE EVO IN ACTION
Secure AI adoption at scale with Evo
Get a suite of agent-native security solutions that secure, protect, and govern AI-driven development across three loops: the code artifact, the AI workforce, and the AI applications teams build.



