As search engines popularised robots.txt to direct web crawlers, a newer file type — llms.txt — has emerged to provide AI agents with concise setup instructions, language dependencies, and installation steps. Researchers from the security firm Pandex found that many of these files contain references to software packages that no longer exist, are misspelled, or have been moved, creating opportunities for attackers to hijack the automated pipelines.
Across 8,565 llms.txt files examined, the team identified 237 references to packages spanning PyPI, npm, RubyGems, NuGet, crates.io, and Packagist that were either abandoned, mistyped, or hosted on expired domains — including .dev and .io registrations and subdomains on Render, Vercel, Fly, and Netlify — all free to claim.
Exploiting this, the researchers published their own Python and Node.js packages designed to call back to a command server. Within four minutes of going live, an AI agent from an unidentified Fortune 500 company executed the malicious code. The team also discovered that a real malware package had already been deployed using the same technique; they notified the affected software publisher.
The attack vector relies on a single line of instruction: telling the AI agent to build and run a project using the vendor's SDK, causing it to fetch and install the counterfeit package as part of its normal workflow.