<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/your-ai-coding-assistant-can-install-malware-without-asking-you-first-0gyku3zkp" -->

---
title: Your AI coding assistant can install malware without...
description: AI coding assistants that autonomously choose and install dependencies can be tricked into pulling malicious packages. Attackers pre-register package names...
canonical: https://daily.dev/posts/your-ai-coding-assistant-can-install-malware-without-asking-you-first-0gyku3zkp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Your AI coding assistant can install malware without asking you first | daily.dev
og:description: AI coding assistants that autonomously choose and install dependencies can be tricked into pulling malicious packages. Attackers pre-register package names...
og:url: https://daily.dev/posts/your-ai-coding-assistant-can-install-malware-without-asking-you-first-0gyku3zkp
og:image: https://api.daily.dev/og/posts/0Gyku3ZkP.png
og:image:alt: Your AI coding assistant can install malware without asking you first
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Your AI coding assistant can install malware without asking you first

**[Cyber Security](https://daily.dev/sources/cybersecurityinfo)** · [@julia7](https://daily.dev/julia7) · 2 min read · 0 upvotes · 0 comments

## Summary

AI coding assistants that autonomously choose and install dependencies can be tricked into pulling malicious packages. Attackers pre-register package names that LLMs commonly hallucinate, then plant malware inside them, so an agent can install malicious code without the developer ever typing or seeing the package name. Research across 16 LLMs found nearly 1 in 5 recommended packages don't exist, and these hallucinated names repeat predictably across prompts, making them easy to weaponize. Separately, a critical remote-code-execution vulnerability was found in a widely used AI tool bridge, exploitable the moment an autonomous agent connects to it.

## Content

𝐌𝐨𝐬𝐭 𝐩𝐞𝐨𝐩𝐥𝐞 𝐭𝐡𝐢𝐧𝐤 𝐦𝐚𝐥𝐢𝐜𝐢𝐨𝐮𝐬 𝐩𝐚𝐜𝐤𝐚𝐠𝐞𝐬 𝐚𝐫𝐞 𝐬𝐨𝐦𝐞𝐭𝐡𝐢𝐧𝐠 𝐲𝐨𝐮 𝐚𝐜𝐜𝐢𝐝𝐞𝐧𝐭𝐚𝐥𝐥𝐲 𝐝𝐨𝐰𝐧𝐥𝐨𝐚𝐝.

Increasingly, your AI coding assistant downloads them for you, automatically, mid-task, with no prompt.

Here is how it happens. AI coding assistants now choose dependencies and run installs on their own. When they do, they sometimes recommend packages that don't exist. Attackers know which names AI models are likely to hallucinate, register them in advance, and put malicious code inside. You never typed the name. You never saw it. It installed anyway.

This is not theoretical. Research across 16 large language models found nearly 1 in 5 recommended packages didn't exist, and many of the same hallucinated names came up repeatedly across different prompts, making them predictable enough to weaponize in advance.

On top of that, a critical vulnerability in a widely used AI tool bridge allowed full remote code execution the moment a connection was made. The kind of connection an autonomous agent makes on its own, silently, in the background.

The awareness takeaway: if your team uses AI coding tools, the question is no longer just "what did we download?" It is "what did our AI download, and did anyone check?"

Full breakdown: [𝐧𝐩𝐦 𝐏𝐚𝐜𝐤𝐚𝐠𝐞 𝐒𝐞𝐜𝐮𝐫𝐢𝐭𝐲: 𝐖𝐡𝐚𝐭 𝐂𝐡𝐚𝐧𝐠𝐞𝐬 𝐖𝐡𝐞𝐧 𝐘𝐨𝐮𝐫 𝐀𝐈 𝐀𝐠𝐞𝐧𝐭 𝐑𝐮𝐧𝐬 𝐭𝐡𝐞 𝐈𝐧𝐬𝐭𝐚𝐥𝐥.](https://xygeni.io/blog/npm-package-security-for-the-age-of-ai-agents/?utm_source=dailydev&utm_medium=post&utm_campaign=cybersecurity-squad)

𝐁𝐮𝐢𝐥𝐝 𝐟𝐚𝐬𝐭. 𝐒𝐭𝐚𝐲 𝐬𝐞𝐜𝐮𝐫𝐞.

## Similar posts on daily.dev

- [Slopsquatting: Your AI Invented a Package, and an Attacker Was Waiting](https://daily.dev/posts/slopsquatting-your-ai-invented-a-package-and-an-attacker-was-waiting-pz8bcrd9w) · DEV · 4 upvotes · 0 comments
- [When AI Coding Agents Become Malware Delivery Systems](https://daily.dev/posts/when-ai-coding-agents-become-malware-delivery-systems-vbuml87gw) · DevOps.com · 0 upvotes · 0 comments
- [Hackers can use 9 of the most popular AI tools to assemble massive botnets](https://daily.dev/posts/hackers-can-use-9-of-the-most-popular-ai-tools-to-assemble-massive-botnets-j8cybjfqg) · Ars Technica · 13 upvotes · 4 comments
- [Supply-chain attacks take aim at your AI coding agents](https://daily.dev/posts/supply-chain-attacks-take-aim-at-your-ai-coding-agents-o8vsjrfrt) · CSO Online · 0 upvotes · 0 comments

---

Tags: [#cyber](https://daily.dev/tags/cyber), [#mcp](https://daily.dev/tags/mcp), [#npm](https://daily.dev/tags/npm)

[View this post on daily.dev](https://daily.dev/posts/your-ai-coding-assistant-can-install-malware-without-asking-you-first-0gyku3zkp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/your-ai-coding-assistant-can-install-malware-without-asking-you-first-0gyku3zkp","headline":"Your AI coding assistant can install malware without asking you first","text":"AI coding assistants that autonomously choose and install dependencies can be tricked into pulling malicious packages. Attackers pre-register package names that LLMs commonly hallucinate, then plant malware inside them, so an agent can install malicious code without the developer ever typing or seeing the package name. Research across 16 LLMs found nearly 1 in 5 recommended packages don't exist, and these hallucinated names repeat predictably across prompts, making them easy to weaponize. Separately, a critical remote-code-execution vulnerability was found in a widely used AI tool bridge, exploitable the moment an autonomous agent connects to it.","url":"https://daily.dev/posts/your-ai-coding-assistant-can-install-malware-without-asking-you-first-0gyku3zkp","datePublished":"2026-09-07T04:04:49.154Z","dateModified":"2026-09-13T20:46:58.968Z","author":{"@type":"Person","name":"Julia","url":"https://daily.dev/julia7","image":"https://media.daily.dev/image/upload/s--Vye82kCe--/f_auto/v1752235114/avatars/avatar_JI6NHO2CHs2BU4FFm4NUw?_a=BAMClqZW0","description":"DevSecOps Lover and Software Supply Chain Security Advocate | Solutions Manager at Xygeni","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":290}},"image":"https://media.daily.dev/image/upload/s--kgCtJn8t--/f_auto/v1788422164/posts/u0tfboBZr?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/cybersecurityinfo","name":"Cyber Security"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Cyber Security","item":"https://daily.dev/squads/cybersecurityinfo"},{"@type":"ListItem","position":3,"name":"Your AI coding assistant can install malware without asking you first"}]}
```

