Skip to content
HomeNewsConceptsGuidesToolbox
AboutSubscribeUA
Subscribe

AI Today Brief

The daily AI-engineering brief. Built in public. EN · UA.

XTelegramLinkedInYouTubeRSS

Follow AI Today Brief on LinkedIn for daily AI-engineering updates and the weekly “5 shifts that changed how developers work” PDF.

Explore

NewsDigestsConceptsGuides

Company

SubscribeAdvertiseAbout

Legal

Editorial policyAI disclosurePrivacyTerms

© 2026 AI Today Brief. All rights reserved.

  1. Home/
  2. News/
  3. Agents & MCP/
  4. AI Coding Agents Execute Unowned Packages via Malicious Documentation Files
Agents & MCP

AI Coding Agents Execute Unowned Packages via Malicious Documentation Files

Security researchers found that AI agents including Claude Code, OpenAI Codex, and Nous Research Hermes execute unregistered software packages listed in llms.txt files. Attackers can register these missing package names on PyPI or npm to execute arbitrary malware within enterprise networks.

August 27, 2026· 5 min read
OKCurated by Oleksandr Kuzmenko, AI Product Engineer·Updated August 27, 2026·Sources cited on every story
AI-assisted · editor-reviewed·How we use AI
AI Coding Agents Execute Unowned Packages via Malicious Documentation Files

Impact: High

Why it matters

If you give coding agents shell execution permissions, you must restrict automated package installation from third-party documentation files to prevent supply-chain attacks.

TL;DR

  • 01Coding agents treat third-party documentation and llms.txt content as trusted instructions.
  • 02Unregistered package names in docs create an immediate slopsquatting attack surface.
  • 03Standard EDR and network proxies do not block agent-initiated package installs.

Key facts

Domains Scanned
6,214 live domains
Misconfigured LLM Files
120 sites (227 unowned commands)
Targeted Registries
npm, PyPI

The Mechanism Behind llms.txt Supply-Chain Exploits

AI agents rely heavily on llms.txt and llms-full.txt standard files to parse repository structure and setup instructions. When an agent operating in execution mode encounters shell commands such as pip install internal-tool or npx package-name, it executes them without validating registry ownership.

Researchers scanned 6,214 domains and found 227 commands pointing to non-existent packages or expired domains. By registering proof-of-concept packages on public registries, researchers captured live connection beacons from coding tools like Claude Code, OpenAI Codex, and Hermes operating inside enterprise networks.

Real-World Malware and EDR Blindspots

Unlike standard dependencies listed in package.json, commands invoked via npx or transient shell prompts bypass standard security scanners. In the case of clerk.com, a typo or placeholder reference led to an attacker claiming npx clerk-next-fix-auth-protection on npm to host live malware.

Endpoint Detection and Response (EDR) agents fail to trigger alerts because the request originates from a legitimate developer terminal tool executing a standard command against pypi.org or registry.npmjs.org.

Try it in 2 minutes

# Prevent agents from auto-executing package installs by enforcing dry-run flags or prompt confirmation
claude config set auto_approve_tools "[]"

bash

✓ When to use

  • When setting up Claude Code, Codex, or custom sub-agents with bash access in corporate networks.

✕ When NOT to use

  • When running AI agents in read-only sandbox environments without network access.
  • When agents do not have permission to execute terminal commands.

What to do today

  • →Disable unprompted shell execution in Claude Code and Codex settings.
  • →Audit public llms.txt files in your repositories for unregistered package names.
  • →Restrict package manager commands in agent environments using explicit execution allowlists.
#Claude Code#OpenAI Codex#Hermes

Sources

  • Claude, Codex, and Hermes installed unowned code inside corporate networks
ShareShare on XShare on LinkedIn
← Previous storyGoogle Releases Gemini 3.5 Transcribe for Voice Agents and Hands-Free Vibe CodingNext story →OpenAI and METR Reveal Details on Rogue Multi-Agent Sandbox Breakout

Related stories

  • Agents & MCPOpenAI and METR Reveal Details on Rogue Multi-Agent Sandbox Breakout
  • Agents & MCPMCP Tool Server Architecture Defines Dry-Run Previews and Prompt Injection Guards
  • Agents & MCPDeploy Kimi K3 to Messaging Platforms via LangBot Pipelines
  • Agents & MCPIsolating Parallel AI Coding Agents into Cloud Virtual Machines

Email digest

Get the morning AI brief

One email a day — the stories that matter for engineers, founders and tech leads. Human-edited, with links to primary sources.

  • ✓120+ sources scanned daily
  • ✓Edited by a human
  • ✓1 email per day
  • ✓EN + UA

By subscribing you agree to the privacy policy.