AI Agents Trust llms.txt as Gospel—Attackers Just Proved It
Researchers found 237 unclaimed package names in Fortune 500 companies' llms.txt files and registered several, proving that sanctioned AI coding agents would install their code within minutes.
The llms.txt file format was proposed in 2024 as a courtesy to AI agents: a short markdown guide at a website's root explaining what the site does and where models can find more detail. Two years on, security researchers have demonstrated that the same file has quietly become an attack surface — one that sits outside every conventional security control, because the victim never has to be breached at all.
In late August 2026, Israeli security startup Pandex — led by Alon Hertz, a former Unit 8200 member — published research showing how the machine-readable files published by major companies can be weaponized against the AI agents that consume them. The findings, covered by Ars Technica and Cybernews, center on a structural weakness: llms.txt files frequently reference package names and domains that simply do not exist. Those references are not typosquats or lookalikes; they are correctly spelled, first-party names that were never registered in the first place.
The scale of the problem is concrete. In a separate investigation reported by Cybernews, researchers who scanned llms.txt files published by major companies — tech giants, fintechs, and defense contractors — found 237 references to packages and domains that do not exist. Because AI agents treat llms.txt as operational input rather than passive text, an attacker who registers one of these unclaimed names can trick an agent into installing malicious code from what appears to be an official source.
Four minutes from file to code execution
Pandex scanned llms.txt and llms-full.txt files served by large organizations and found hundreds of dangling references — install commands pointing at packages on PyPI, npm, RubyGems, NuGet, crates.io and Packagist that nobody owns, alongside expired domains and abandoned deployment subdomains. The researchers then did what any attacker would: they registered several of the unclaimed names and attached phone-home beacons.
The result was stark. The first Fortune 500 company to call back did so in under four minutes; others followed within the hour. Parent-process tracing showed the code was being executed not by careless humans but by sanctioned AI coding agents — Anthropic Claude, OpenAI Codex and Nous Research Hermes — which treated the llms.txt guidance as operational instructions rather than untrusted text. As the Pandex report puts it, "an agent doesn't distinguish between a page and a command. Everything it reads is input, and every input is a potential instruction."
Hertz summarized the underlying problem bluntly: "The trust model is broken. Agents treat vendor docs as ground truth and don't question them — and neither do the humans supervising them."
The live case: a real malware payload in a slot named by Clerk's own docs
The attack class is not merely theoretical. In July 2026, the open-source security ecosystem catalogued a real-world example. Clerk, an authentication provider, shipped agent-facing documentation containing the bare command npx clerk-next-fix-auth-protection — a helper bundled inside the scoped package @clerk/eslint-plugin. Because that name resolves against the public npm registry, a third party had quietly claimed it. The resulting malicious package, catalogued as MAL-2026-11069, was published on July 24, 2026 with malicious versions 7.7.7 and 8.8.8, flagged by OpenSSF Package Analysis and OSV.dev, and designed to exfiltrate the username, machine name, working directory and timestamp from any machine that ran it. No target server was compromised; the vulnerability lived entirely in a documentation file pointing at an unregistered name.
Plugin layer: the WordPress front
The ecosystem around llms.txt is adding its own exposures. In April 2026, two CVEs were published for the Website LLMs.txt plugin for WordPress: CVE-2026-6711, a reflected cross-site scripting flaw in the tab parameter affecting versions up to 8.2.6 with a CVSS score of 6.1, and CVE-2026-6712, a stored XSS variant with a CVSS score of 4.4. Both were assigned by Wordfence as the CNA. Individually they are modest vulnerabilities; collectively they illustrate that the llms.txt supply chain now includes a generator-plugin layer that most site owners never audit.
A separate census of the hosting industry, published by webhosting.today in June 2026, reinforces the point. Of 736 hosting-industry domains surveyed, 110 served an llms.txt file — and not one of them signed or checksummed it, and not one monitored it for tampering. Twenty-eight of the 110 files were auto-generated by SEO plugins, meaning file integrity is now effectively plugin-update-channel integrity: compromise the generator, and malicious guidance propagates to every site using it. The specification itself, meanwhile, contains no security provisions — no authentication, no signing, no verification mechanism.
NameOcean's analysis of the same audit data distilled the exposure into three attack classes. Information disclosure: the file's structure and content can leak infrastructure details, plugin configurations, and internal naming conventions. AI manipulation: because agents consume llms.txt verbatim, a compromised file can inject instructions that subtly steer how the AI interprets the site, its services, or its customers. Supply-chain poisoning: the 28 plugin-generated files create a propagation path — compromise the plugin update channel, and malicious instructions spread to every site using it.
The adoption paradox
The situation is made worse by a paradox. Adoption of llms.txt has grown steadily — Originality.ai tracked the format across 3 million sites and counted 4,088 files in June 2025 growing to 36,120 by May 2026, an 8.8x increase, while Google's Lighthouse 13.3 began auditing for the file by default under a new "Agentic Browsing" category, effectively rewarding sites for publishing it. Yet Google Search has been equally clear that the file has no effect on rankings or AI Overviews, and John Mueller of Google noted as far back as June 2025 that "FWIW no AI system currently uses llms.txt." Ahrefs' analysis of server logs across 137,210 domains found that 97% of published files received zero requests from AI crawlers.
That combination — strong incentive to publish, weak incentive to maintain — produces files that rot in silence. Links go dead, descriptions describe renamed features, and no human, uptime monitor or search engine notices. When an attacker finally manipulates such a file, the organization has no baseline against which to detect the change and no legitimate traffic to surface the anomaly. It is, in effect, a defacement with no witnesses.
The broader context: an unguarded trust anchor
The risk extends beyond llms.txt itself. OWASP published the third version of its Top 10 for LLM Applications on August 4, 2026, with prompt injection ranked as the number-one threat for the third consecutive year. llms.txt is not prompt injection in the classic sense, but it is an adjacent attack surface: it is untrusted content that AI agents treat as trusted instructions. The file sits at the intersection of supply-chain security and prompt injection — a domain where traditional application security frameworks were never designed to operate.
The exposure compounds both ways. The hosting-industry census found that none of the 110 deployed files carried a control that would detect tampering — no file integrity monitoring, no version pinning, no change alerts. Meanwhile, agents treat the files they read as authoritative instructions, so the attack is invisible to conventional controls: an HTTPS fetch from an official domain, followed by a package install from an official registry, executed by a sanctioned agent, produces no anomaly for endpoint detection or proxy monitoring to flag. Content that a trusted company publishes is interpreted by AI agents as instruction — and the vulnerability is not an injection into the file, but the file's own existence as an unverified trust anchor.
What needs to change
Security researchers are converging on a set of mitigations: treat llms.txt as a security-sensitive asset with file-integrity monitoring (hash it, alert on changes, log access); review every external reference before publishing, since the 237 unclaimed package references were avoidable errors and dangling references are the easiest path to close; pre-register the names an organization's own documentation points to; require ownership verification or human approval gates before agents execute shell commands derived from web content; and harden the specification itself — llms.txt v2, released in August 2026, added better machine-readable linking but no trust model of its own, leaving the question of who verifies the file that agents trust, still unanswered.
The file was built to make companies legible to machines. It has succeeded. The problem is that it has also made them vulnerable.
- Dan Goodin / Ars Technica (2026) Claude, Codex, and Hermes installed unowned code inside corporate networks. Ars Technica. https://arstechnica.com/security/2026/08/claude-codex-and-hermes-installed-unowned-code-inside-corporate-networks
- Jeremy Howard / Answer.AI (2024) /llms.txt — a proposal to provide information to help LLMs use websites. Answer.AI. https://www.answer.ai/posts/2024-09-03-llmstxt.html
- Cybernews (2026) llms.txt files let hackers trick AI agents into malware. Cybernews. https://cybernews.com/security/fortune500-security-gap-ai-agents-install-malware/
- OpenSSF Package Analysis / OSV.dev (2026) MAL-2026-11069: Malicious code in clerk-next-fix-auth-protection (npm). OSV.dev. https://osv.dev/vulnerability/MAL-2026-11069
- Wordfence (CNA) (2026) CVE-2026-6711: Website LLMs.txt plugin Reflected XSS. NVD / NIST. https://nvd.nist.gov/vuln/detail/cve-2026-6711
- Lukasz Nowak (2026) The File Nobody Watches: llms.txt Is the Hosting Industry's Newest Attack Surface. webhosting.today. https://webhosting.today/2026/06/22/the-file-nobody-watches-llms-txt-is-the-hosting-industrys-newest-attack-surface
- NameOcean (2026) Why Your llms.txt File Could Be the Weakest Link in Your Security Stack. NameOcean. https://nameocean.net/article/why-your-llmstxt-file-could-be-the-weakest-link-in-your-security-stack/
- SC Media (2026) Prompt injection remains top LLM threat, OWASP report finds. SC Media. https://www.scworld.com/brief/prompt-injection-remains-top-llm-threat-owasp-report-finds