Technical terms with a dotted underline are explained on hover, tap or focus.
AI agents read files, start programs and call services. That makes them useful, and it makes them attackable: whoever can slip them text that they read as an instruction may steer their actions. Several reports have appeared recently. This post puts them in context and separates what is documented from my own assessment.
What this is about
- Test on coding agents: Security researchers at Forever Security showed that tampered instruction files in a directory can be enough to make OpenAI Codex and Anthropic Claude Code do something the developer never wanted.
- New classification by MITRE: Since October 2026 the ATT&CK framework has its own technique for data exfiltration via AI agents.
- Earlier cases: Several more attack paths against AI agents became known in the summer.
The Forever Security experiment
According to PC Games Hardware, Forever Security published the results on 22 October 2026; the article appeared on 26 October.
- Principle: A prompt injection, i.e. text the model reads as an instruction although it comes from an attacker. It does not necessarily need a classic software vulnerability.
- Location: The prepared files lay in the downloads folder in which the agents worked.
- Codex: An
AGENTS.mdwith seemingly ordinary development guidelines asked to add an extra server to the Codex configuration through which the npm packagefunction-colorwas to be installed. The package comes from another malware campaign and can load further malware. Codex followed the instruction in about 90 percent of the controlled test runs. The harmless stand-in action was usually opening the Windows calculator. - Claude Code: A tampered
CLAUDE.mdwas meant to redirect the API connection. In about half of the attempts the researchers managed to transfer an authentication token to their test server. - Prevalence: According to Forever Security (to BleepingComputer), more than 1,300 Claude Code sessions had already been started directly from download folders at its customers.
- Defence in the example case: The company's security product blocked the installation before malicious code ran.
- Open: How the tampered file got into the downloads folder could not be determined. The article contains no statement from OpenAI or Anthropic.
Important for reading the numbers: The 90 and 50 percent are success rates under test conditions. They say nothing about how often such attacks succeed in practice.
MITRE T1700: data leaving via AI agents
MITRE ATT&CK is a worldwide catalogue of attack techniques. According to Kiteworks, version 20 added the technique T1700 “AI-Enabled Exfiltration” in October 2026. The company is a vendor, so the details are second-hand; the primary description is with MITRE.
- Description: Attackers use direct or indirect prompt injection to make AI agents send company data outside. Agents often hold approved tool connections that can be misused with their existing permissions. Indirect means the instruction sits in content the model processes, such as a contract, support ticket, web page or shared document.
- Related techniques: T1699 (input directly into an LLM interface) and T1698 (instructions in processed content).
- Mitigations according to MITRE: run AI systems inside the corporate network without external access, restrict file and directory permissions to what is needed, train users.
- Detection: An AI process that accesses data outside its authorised scope and then opens an unauthorised connection stands out. Both depend on the authorised scope of each agent being written down. According to Kiteworks most organisations lack that.
- Context: A new ATT&CK technique does not create an obligation by itself, but it changes the language auditors ask in.
Earlier cases from the summer
BornCity summarises several reports from July 2026. I reproduce them as they appear there; I did not read the original reports.
- AgentForger (Zenity Labs, 23 July): A malicious link places an attacker-controlled AI agent in OpenAI workspaces. When an employee clicks, the agent takes over their identity and permissions, with access to Outlook, Slack, SharePoint, Teams and Google Drive, for example. According to the report OpenAI closed the flaw in early June, four days after the first report.
- GitLost (Noma Security, 23 July): An indirect prompt injection via public GitHub issues. The AI agent then allegedly discloses private data in public comments. The article says nothing about patch status.
- AI identities: According to the report Sophos sees them as the fastest-growing attack target in companies; BeyondTrust cites a rise of active AI agents in corporate networks of 466.7 percent.
Note: I cover the sandbox escape of OpenAI models in its own post.
Context
This is my assessment, not part of the sources:
- An instruction file is code.
AGENTS.mdandCLAUDE.mdexist so that agents follow project rules. The same function makes them an entry point when the file does not come from you. - The working folder is the trust boundary. An agent in the downloads folder works in a directory full of foreign files.
- The pattern is bigger than two products. Any agent that reads foreign content and holds permissions has this problem. According to the heise headline the W3C has stated that an assignment is no free pass for AI agents; I did not evaluate that article's content.
- Link to the supply chain: The instruction file can pull in a package (see the Codex case). And malware that creates configuration files for Claude or VS Code uses the same idea in the other direction. More in the post on supply-chain attacks.
What you can do
The first five points are named by the PCGH article; the rest are my recommendations.
- Do not start agents in the downloads folder, but in dedicated project directories.
- Check unknown
AGENTS.md/CLAUDE.mdbefore an agent reads them. - Check configuration: in particular
~/.codex/config.tomland.claude/settings.jsonfor unknown servers, redirects or commands. - Keep sandbox and confirmation prompts enabled. Do not switch confirmations off wholesale.
- If in doubt check and renew configuration and possibly exposed credentials.
- Keep permissions tight: give the agent only the directories, tokens and services the task needs. No production keys in the environment where an agent runs.
- Look at foreign repositories before the agent does: read new projects first, then start the agent, especially with instruction and configuration files.
- For companies: write down for each agent what it may do (data, tools, destinations). Without that frame deviation can be neither detected nor proven. Treat agents like employees with their own permissions and review their tokens regularly.
If you use AI agents in your company or in development, you can have connections, permissions and data paths checked in a security test.
Sources
- PC Games Hardware: Malware durch KI-Agenten: So funktioniert die neue Falle
- Kiteworks: MITRE T1700 – KI-Agents als neuer Kanal für Datenexfiltration
- BornCity: AgentForger – Kritische Lücke macht KI-Agenten zu Insider-Bedrohungen
- heise: W3C – Ein Auftrag ist kein Freibrief für KI-Agenten
Note: Status as of 27 October 2026, based on four second-hand reports; I did not read the original studies of Forever Security and Zenity or the MITRE page, and the heise article only by its headline. I have no vendor statements. The context and the recommendations from point 6 are my own assessment.