AI coding tools can add risks to your projects
AI coding assistants can now pick, install, and run outside code on their own, often without a person checking it first. Attackers are starting to target those automated decisions to slip malicious code into software projects.
- Report priority
- Medium
- Targets
- MCP servers+4 more
How it works
Attackers compromise trusted package maintainer accounts, hide malicious code inside indirect dependencies a project pulls in automatically, or plant hidden instructions in files and web content that trick an AI coding agent into installing or running unsafe code using the developer's own access.
What to do
The risk applies to any team using AI coding tools that install dependencies, connect to MCP servers, or add IDE extensions without a human reviewing each one first.
Require human review before an AI coding agent installs or runs a new package, MCP server, or extension, and use a dependency scanning tool that flags known malicious packages before they reach your project.
Technical details
Affected software: MCP servers, Axios, TanStack, Trivy, IDE extensions
At AI Council 2026, Socket founder Feross Aboukhadijeh described how coding agents can autonomously select, install, and execute third party npm packages, MCP servers, and IDE extensions using a developer's own credentials, often with no human review step. He referenced 2026 supply chain incidents tied to Axios, TanStack, and Trivy, where compromised maintainer accounts, malicious transitive dependencies, and prompt injection let attackers reach both developers and their agents. Traditional supply chain security tooling assumes a human vets each dependency; that assumption breaks down once agents make these trust decisions at machine speed.
References
- aicouncil.com · the-agent-attack-surface-why-ai-is-breaking-software-security-as-we-know-it Socket
- thehackernews.com · kimsuky-builds-offline-ai-stack-that.html TheHackerNews
- infosecurity-magazine.com · anthropic-claude-breached-three Infosecurity Magazine
- infosecurity-magazine.com · hugging-face-diffusers-trust Infosecurity Magazine
- openwall.com · 1 Openwall oss-security
- openwall.com · 6 Openwall oss-security
- openwall.com · 3 Openwall oss-security
- safedep.io · joyfill-npm-blockchain-c2-supply-chain SafeDep
- thehackernews.com · ai-assisted-http-terminator-finds-novel.html TheHackerNews
- thehackernews.com · how-mcp-servers-can-expose-enterprise.html TheHackerNews
- snyk.io · why-we-rebuilt-evo-ai-model-risk-scoring Snyk
- snyk.io · remediation-agent-malicious-code-defense Snyk
- securitylabs.datadoghq.com · npm-worm-compromises-popular-npm-packages Datadog Security Labs
- gbhackers.com · chaindrop-exploits-npm GBHackers
- neuracybintel.com · chaindrop-npm-worm-poisons-2200-releases-and-turns-valid-provenance-into-cover NeuraCybIntel
- aikido.dev · keyv-and-friends-compromised-in-npm-supply-chain-attack NeuraCybIntel
- safedep.io · keyv-npm-supply-chain-compromise NeuraCybIntel
- bleepingcomputer.com · massive-chaindrop-npm-supply-chain-attack-infects-hundreds-of-packages NeuraCybIntel
- stepsecurity.io · anthropic-incident-ai-agent-malicious-package-pypi StepSecurity
- stepsecurity.io · joyfill-npm-supply-chain-compromise StepSecurity
- sygnia.co · shai-hulud-returns-software-supply-chain-attack-npm-keyv Sygnia
- snyk.io · snyk-agent-fix-remediation-benchmark Snyk
- openwall.com · 2 Openwall oss-security
- thehackernews.com · microsoft-links-30-rotating-domains-to.html TheHackerNews