Photo by Wes Hicks on Unsplash. Source: https://unsplash.com/photos/man-wearing-headphones-while-sitting-on-chair-in-front-of-macbook-4-EeTnaC1S4 (Unsplash License).

A coding agent obeys the markdown file it finds in the folder it opens. The web can write to exactly one folder on your machine without asking. Put those two facts together and a page visit is enough to run code with your agent’s permissions.

  • Forever Security found a malicious AGENTS.md in a customer’s Downloads folder and reproduced it against OpenAI Codex, which installed the attacker’s npm package in more than 90 percent of attempts.
  • The file edits ~/.codex/config.toml, and that config is machine-wide, so every later session in any folder loads the attacker’s server at startup.
  • The network sandbox blocked the package fetch, so the payload told the agent to pass --dangerously-bypass-approvals-and-sandbox. The model wrote its own bypass.
  • Against Claude Code the technique runs no code at all. It reroutes the agent’s API traffic to a server with a valid certificate and leaks its OAuth token. About half of attempts landed.
  • Nothing here gets patched, because nothing is broken. Keep agents out of Downloads, check the config for servers nobody added, and rotate any token the agent held.

Read the full breakdown at techthoughtleaders.io.

By Ivan Tarin

Ivan Tarin is a Principal Product Marketing Manager at SUSE, where he owns go-to-market strategy and positioning for a seven-product cloud-native portfolio spanning Kubernetes, virtualization, storage, security, and observability. A former full-stack developer who shipped production code for enterprise and public-sector clients including U.S. national laboratories, Ivan translates complex infrastructure and AI technology into messaging that lands with developers, platform teams, and enterprise buyers. He has presented at KubeCon, SUSECON, and AWS Developer Week, and is currently pursuing an MS in Artificial Intelligence at the University of Colorado Boulder.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the next one before it is old news

Independent analysis of cloud-native infrastructure, Kubernetes and data center economics. No vendor spin.