Malicious package
Also called: supply chain malware
A malicious package is a library, plugin, extension, skill or model file published to look useful while carrying code that steals data, opens a backdoor or attacks its user. AI tooling has made registries like npm, PyPI, Hugging Face and skill and MCP marketplaces frequent targets.
How it works
Malicious packages run code at install, import or load time, or wait for a trigger. They arrive through typosquatting, compromised maintainer accounts, takeovers of abandoned names, or agents that install dependencies automatically.
How to defend
Pin and review dependencies, use registry scanners, restrict which sources agents may install from, and isolate build and agent environments from long-lived secrets.
Real cases 15 stories
CRIT
Supply chain · AIR Security
TrojanPony: fake skill forks ship a Windows trojan to agent foldersTrojanPony is a live campaign that publishes fake improved copies of popular coding-agent skills and plugins. AIR Security counts 487 public repositories carrying the kit, which drops the MopsStealer trojan on Windows machines.
HIGH
Supply chain · Wiz
agent-framework: two PyPI releases shipped an Azure credential stealerVersions 1.26.1 and 1.26.2 of the agent-framework PyPI package, the Python build of Microsoft Agent Framework, carried a credential stealer that collected Azure and CI tokens. PyPI quarantined both about an hour after release.
MED
Supply chain · OSV
mcp-aevo-server: a fake MCP package takes trading keys and walletsA malicious PyPI package named mcp-aevo-server collects Aevo trading credentials and wallet private keys from environment variables, then listens for remote commands. Six releases used a name the real project never claimed.
HIGH
Supply chain · GitGuardian
wfx-loot: an npm hook runs the CI secret stealer GitHub's holds missedwfx-loot is a credential-theft campaign that pushes a CI secret stealer into public repositories with stolen GitHub credentials. GitGuardian counted 28,500 payload patches from 2,367 accounts across 17,715 repositories.
MED
Supply chain · Socket
strutil-core: a RubyGems worm writes itself into AI agent configsstrutil-core 1.0.1 is a malicious RubyGems package that steals credentials during install and edits AI coding tool config files so agents run it again. Socket reports RubyGems removed both published versions.
HIGH
Supply chain · Cursor
Cursor: a backdoored Claude Code extension opened SSH tunnelsCursor served tampered builds of the Anthropic.claude-code extension, versions 2.1.312 and 2.1.313, from its own extension marketplace for part of October 29, 2026. Cursor said at most 5,000 users were affected.
HIGH
Supply chain · AIR Security
SolanaCry: a poisoned starter kit turns coding agents into RAT installersSolanaCry is malware AIR Research Lab found in the wild that reaches developers through their coding agents: the agent searches for a Solana starter kit, picks a poisoned GitHub repo, and runs the README's one-line PowerShell install.
HIGH
Supply chain · JFrog Security Research
testmetest: 42 armed repos run a payload when an agent opens themJFrog found 42 armed GitHub repositories across 11 legitimate owners in the testmetest npm campaign. Each carries startup hooks for Claude Code, Gemini CLI, Cursor and VS Code, so opening the workspace starts a credential stealer.
HIGH
Attack · Forever Security
Markdown in Downloads: a planted AGENTS.md hijacks Codex and Claude CodeA planted AGENTS.md file in a user's Downloads folder makes OpenAI Codex install malware, Forever Security reports, and a matching CLAUDE.md reroutes Claude Code's traffic to an attacker server that captures its OAuth token.
CRIT
Supply chain · Socket
LiteLLM 1.107.0: backdoored wheels steal cloud and AI keysLiteLLM 1.107.0 shipped a credential stealer in all seven PyPI wheels and the v1.107.0 container images, Socket and JFrog report. LiteLLM now traces the release to a master key left in a public repository since May 2026.
MED
Supply chain · Bloom Security
SlugFest: npm Trusted Publishing bound packages to a name, not an idnpm Trusted Publishing bound a package to a GitHub repository name, not its permanent id, so anyone reclaiming a renamed or deleted repository's slug could publish new versions. Bloom Security found 1,500+ exposed packages.
MED
Supply chain · Elastic Security Labs
Apex Accelerator: a fake npm coding agent plants an attacker MCP serverApex Accelerator is a fake Web3 accelerator that shipped two malicious npm packages. Elastic Security Labs found that the operation's AI coding assistant repackages Oh My Pi, reroutes model traffic and registers an attacker MCP server.
HIGH
Supply chain · CloudSEK
NEBULA: seven fake AI SDK packages on npm drop a Windows RATNEBULA is a malicious npm campaign that ships seven packages posing as a NebulaAI SDK and installs a Windows remote access trojan at install time. CloudSEK reports two of them were still downloadable on October 8.
HIGH
Supply chain · Socket
TensorLake npm SDK published a credential stealer in 0.5.144tensorlake 0.5.144 on npm carried a credential-stealing worm that runs from a preinstall hook, Socket reports. The package is the SDK for a sandbox runtime used to run AI agents, with about 12,000 weekly downloads.
HIGH
Supply chain · Socket
MemTensor MemOS packages compromised with a credential stealerMalicious releases of MemTensor's MemOS packages on npm and PyPI shipped sckit, a Go credential stealer that runs on import and sends npm, PyPI, GitHub, cloud and SSH secrets to skyleen[.]fr. Safe versions: npm 0.1.20, PyPI 2.0.33.