WED, OCTOBER 28, 2026
Independent · In‑Depth · Practitioner‑Tested
✎ News

Researchers Turned AGENTS.md Into an Attack on Codex and Claude Code

Researchers demonstrated prompt injection against OpenAI Codex and Claude Code using AGENTS.md, the instruction file both agents read from a repository. A harmless Codex demonstration reported a 90% success rate under controlled lab conditions.

By AIToolsRecap October 27, 2026 5 min read 122 views
Home › Articles › News › AGENTS.md Prompt Injection Hits Codex and Claud...
● Targets: OpenAI Codex and Claude Code
● Vector: AGENTS.md, read from the repository
● Reported success: 90% in a harmless Codex demo, controlled conditions
● Practical read: a PR touching AGENTS.md is a code path, not documentation

Researchers demonstrated prompt injection against OpenAI Codex and Claude Code using AGENTS.md - the instruction file both agents read out of a repository. In a harmless demonstration against Codex they reported a 90% success rate, under controlled laboratory conditions.

The mechanism is the obvious one once stated: an agent that reads a file from the repository it is working in will follow instructions in that file. A pull request that adds or edits AGENTS.md is therefore a code path, not documentation, and it reaches the agent before any human reviews the diff.

The 90% figure is a lab number and should be read as such. The structural point survives it: if your agent trusts repository files, then anyone who can open a pull request can address your agent directly.

Sources

Tech Startups daily brief.

Tags
AI NewsCoding AIAI agents2026
⚑

Spot an inaccuracy?

We verify facts before publishing and correct errors promptly. If something in this article is wrong or outdated, let us know.

Report an error →