Monday, September 7, 2026

Researchers Execute Code Inside Fortune 500 Companies via AI Agent llms.txt Files

Security researchers have shown that AI coding agents can be manipulated into installing attacker-controlled packages by following instructions found in organizations’ own llms.txt files.

This research emphasizes how agent-readable documentation can transform unverified package references, expired domains, and abandoned cloud subdomains into execution paths within enterprise environments.

Researchers Execute Code Inside Fortune 500 Companies

The issue revolves around llms.txt and llms-full.txt files, a growing convention designed to provide large language model (LLM) agents with structured guidance regarding a company’s products, documentation, APIs, software development kits, and installation workflows.

Unlike conventional web pages meant primarily for human readers, these files can contain direct operational guidance, including commands such as `pip install`, `npm install`, `npx`, API endpoints, package names, and links to relevant resources.

When an autonomous coding agent retrieves the file while working on a development task, it may treat those instructions as authoritative since they are obtained from the vendor’s official HTTPS domain.

Google’s own tooling, telling sites to publish the file
Google’s own tooling, telling sites to publish the file (Source: Medium)

Researchers analyzed 8,565 llms.txt files across 6,214 active domains from a catalog of approximately 15,000 organizations. The dataset notably included Fortune 500 companies, major technology firms, fintech providers, and defense contractors.

During their review, researchers identified more than 237 unclaimed artifacts referenced in agent-facing instructions.

These artifacts included package names from PyPI, npm, RubyGems, NuGet, crates.io, and Packagist, as well as expired domains and unclaimed deployments on platforms like Vercel, Render, Fly, and Netlify.

This issue is not typical typosquatting; in these cases, the package or destination name was correctly spelled in the official documentation but had never been registered or retained by the organization that referenced it.

To validate the risk, the researchers registered a limited number of unclaimed package names and embedded a benign callback beacon.

They reported receiving their first installation callback from a Fortune 500 environment in less than four minutes, followed by another within an hour. The packages did not deploy persistence or collect sensitive data, as per the disclosure.

These findings indicate that an AI agent can autonomously discover a vendor’s documentation, locate the llms.txt file, identify an installation command, and retrieve an attacker-controlled package without needing a phishing lure, exploited vulnerability, or direct interaction from the attacker.

Execute Code Inside Fortune 500 Companies (Source: Medium)
Execute Code Inside Fortune 500 Companies (Source: Medium)

The researchers also identified a real-world example involving Clerk documentation. Clerk’s agent-oriented guidance instructed users to execute `npx clerk-next-fix-auth-protection`, a command associated with functionality in the vendor’s `@clerk/eslint-plugin` package.

However, if the relevant package is not installed locally, `npx` may attempt to resolve the bare command name through the public npm registry.

Researchers AlonHertz1 noted that Clerk had not published a standalone package under that name, leaving it available for third-party registration.

A malicious package using that name was registered and tracked as MAL-2026-11069. This package allegedly executed install hooks that transmitted the installer’s username, hostname, working directory, and timestamp to an external server. Clerk was notified and responded promptly, according to the researchers.

Traditional endpoint controls may struggle to identify this activity because the execution chain resembles typical developer behavior: an approved AI coding tool invokes a standard package manager, which connects to trusted registries such as PyPI or npm.

The critical failure occurs before endpoint telemetry can be helpful. An agent accepts first-party documentation as trustworthy but does not necessarily verify whether a referenced package, namespace, domain, or cloud deployment is actually under the vendor’s control.

This research highlights a broader security concern related to AI agents: the content they consume increasingly functions as executable operational input.

Organizations that publish AI-readable documentation should inventory every referenced artifact, reserve package and domain names, validate command examples, and continuously monitor for abandoned or hijacked dependencies.

Prevent incidents due to slow investigations. Power your Tier 1 with threat intelligence from 15K SOCs: Integrate TI Lookup in your SOC

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Chainguard Hits 1 Billion Build Manifests With AI-Powered Software Supply Chain Security

Chainguard has surpassed 1 billion container build manifests, doubling...

Russian Hackers Deploy New HOOKEDGE Backdoor in Espionage Attacks Across Europe

Russian state-sponsored threat actor BlueDelta, also tracked as APT28,...

New Panzer Ransomware Hits 16 Victims Across 11 Countries With Data Theft and Encryption

Panzer ransomware has emerged as a new Ransomware-as-a-Service (RaaS)...

12-Year-Old PostgreSQL Flaw Lets Attackers Execute Code and Take Over Database Servers

A critical PostgreSQL vulnerability dubbed PostGREShell could allow low-privileged...

Hackers Use Frontier AI Agents to Breach Enterprise Network in Under 10 Hours

A threat actor used frontier artificial-intelligence models and attack-specific...

CARS24 Data Breach Exposes 3,100 Customer Records, Leads Allegedly Sold for ₹1,000 Each

Used-car platform CARS24 has alleged that confidential information belonging...

Hackers Turn HiveMQ and Element Messenger Into Control Channels for Windows Backdoors

The financially motivated threat actor Toy Ghouls has expanded...

Related Articles

Recent News