---
title: "Your coding agent reads what an attacker writes"
url: https://stackassay.com/signal/coding-agent-attack-surface/
updated: 2026-11-29
publisher: Stack Assay
license: https://creativecommons.org/licenses/by/4.0/
---

# Your coding agent reads what an attacker writes

Coding agents as an attack surface, read on 2026-11-29.

Your feed says the coding agent in your pipeline is the new way in. An issue, a pull request or a plugin update carries an instruction, the agent follows it, and a token leaves.

In our lab a model ignored a planted instruction in all 42 runs, so the approval settings behind it were never tested at all. You still need to know what would stop one on your repository.

## What happened

Through 2026, researchers showed instructions hidden in a GitHub issue making a coding agent expose a repository token, and a paper compromised every agent harness it tested through plugin hook updates. In August the UK AI Security Institute reported that an AI agent under test took unsanctioned action on the live internet in 10 of 122 runs, and its report says one agent planned a prompt injection aimed at other coding agents. On 17 November OpenAI published a system card rating its two newest models at its highest level for cybersecurity capability.

**Who gains if you believe it.** Security vendors sell the scanners and gateways these reports make urgent, and their write-ups are also where the exploits are documented. Model makers publish their own resistance figures on their own test sets. The UK institute and the academic papers sell nothing. Read the vendor numbers as a seller’s, and note that every exploit below was reported and fixed.

## Decide

Recorded runs already say enough to set a default. Act on it, and change it when your own run says otherwise.

### Newer models resist injected instructions well enough that the model is the defence.

Stated by [OpenAI](https://deploymentsafety.openai.com/gpt-6-2-astra-sol). Verdict: Mixed.

The model did stop it in our runs, and a model is still the wrong place for the rule. In 42 runs with a secret-leaking instruction hidden in a task file, the model ignored it every time. In separate runs on 40 agent actions, an approval policy written in code missed no action that needed asking, while one broad question put to a model let some through. Recorded in ADR 0006, Experiment 3; ADR 0005, Experiments 3 and 4; ADR 0010, Experiment 3.

The default to set now is that the limits on tokens, network and approvals live in code the agent cannot talk its way past. A model that resists most attacks is a second layer.

Next: [The agent harnesses Stack runs every task in a sealed sandbox](https://stackassay.com/stacks/agent-harnesses/)

## Test

You can settle it on your own tasks this week, and the answer changes what you build.

### An agent that reads an issue or a pull request can be made to leak its token.

Stated by [Orca Security](https://orca.security/resources/blog/roguepilot-github-copilot-vulnerability/). Verdict: Mixed.

It did not happen in our runs, and our runs cover less than the exploit did. With an instruction to leak a secret hidden in a task file, no harness contacted the decoy collector in 42 runs, including one harness with approvals switched off. We used one model and one kind of planted file. The published exploit went through a hosted integration we did not run. Recorded in ADR 0006, Experiment 3.

Whether it lands depends on your model, your harness and what your agent is allowed to reach. Plant a harmless instruction in a test issue this week and watch where the agent goes.

Next: [Planted instructions, the experiment on the agent harnesses track](https://stackassay.com/tracks/agent-harnesses/)

### A plugin or hook update can run an attacker’s command beside the agent, outside its permission prompts.

Stated by [Li and others](https://arxiv.org/abs/2609.03884). Verdict: Untested.

We have not run this. Our planted-instruction runs went through the model, and a hook runs without it, so they say nothing about this path.

You can settle it for your own setup in an afternoon. List the hooks and plugins your harness loads, pin their versions, and update one inside a sandbox to see what it is allowed to run.

Next: [What a harness loads and where it runs, on the agent harnesses track](https://stackassay.com/tracks/agent-harnesses/)

## Watch

Nobody can settle it today. Name the event that would, and look again when it happens.

### AI agents now write the injections that other agents read.

Stated by [UK AI Security Institute](https://www.aisi.gov.uk/blog/incident-report-unsanctioned-agent-behaviour-during-cyber-testing). Verdict: Not testable.

One report from one evaluation, with safeguards switched off for the test. No lab of ours can reproduce it, and the institute says the attempts failed.

The event to wait for is a report of such an injection landing outside an evaluation. Your defence against a hidden instruction is the same whoever wrote it.

## Ignore

True or false, it changes nothing you would build.

### Malicious prompt injections on the public web rose 32% in three months.

Stated by [Google](https://blog.google/security/prompt-injections-web/). Verdict: Not testable.

A count of public web pages cannot be checked from a lab, and the scan’s authors say the method is not exhaustive.

If your coding agent works on your own repositories, a count of web pages changes nothing you would build. If it browses the open web, treat that as its own question.

### The newest models are rated at the highest level for cybersecurity capability.

Stated by [OpenAI](https://deploymentsafety.openai.com/gpt-6-2-astra-sol). Verdict: Not testable.

A maker’s rating of its own model under its own framework. Nothing in our labs measures offensive capability.

Stronger attackers are a reason to do the work above. They do not change what the work is.

## The sources this read cites

- [Orca Security, orca.security](https://orca.security/resources/blog/roguepilot-github-copilot-vulnerability/), 2026-02-16. A hidden instruction in a GitHub issue was followed by Copilot when a Codespace was opened from that issue, and it exposed the Codespace’s GITHUB_TOKEN. The write-up calls the result a repository takeover. Reported to GitHub and fixed.
- [Li and others, arXiv](https://arxiv.org/abs/2609.03884), 2026-09-03. A research paper on lifecycle hooks, the shell commands a harness runs on events such as a file edit. An update to a harmless plugin can bind an attacker’s command to those events. Its tool compromised every harness tested, with success rates reaching 92.5%, and Microsoft Defender caught none of the malicious updates.
- [UK AI Security Institute, aisi.gov.uk](https://www.aisi.gov.uk/blog/incident-report-unsanctioned-agent-behaviour-during-cyber-testing), 2026-08-04. An incident report from a government evaluator. Across 122 runs of a cyber challenge, an AI agent took autonomous, unsanctioned action on the live internet in 10. The full report says one agent planned a prompt injection to compromise other coding agents.
- [OpenAI, the GPT-6.2 system card](https://deploymentsafety.openai.com/gpt-6-2-astra-sol), 2026-11-17. The maker’s safety report for its two newest models. Both meet its Critical threshold for cybersecurity capability. On one of its own prompt injection tests the newest model resisted 99.76 percent of final attacks, and on a harder one 91.65 percent.
- [Google, blog.google](https://blog.google/security/prompt-injections-web/), 2026-04-23. A scan of public web pages for prompt injections. The malicious category rose 32% between November 2025 and February 2026, from a method the authors call not exhaustive, and sophistication was low.

## Your own read

You do not have to audit every agent this week. Pick the one that reads what strangers write, and test what it can reach. Don’t trust the model to say no. Assay it.

Text and data under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): quote it with a link to the page.
