A coding agent that triages issues or reviews pull requests reads the raw Markdown behind them. You read the rendered page. Those are not the same text: an HTML comment or a run of invisible Unicode disappears in the browser but reaches the model intact.
A preprint published on 21 November by Gabi Nakibly and Zvika Babo of Radware and the Technion measures how that gap is used on GitHub. It frames the agent as the victim. I think the harder question is the reverse: what if the hidden text is written by your own agent?
What the study found
The authors scanned about 142.7 million issues, pull requests and comments and reviewed every candidate by hand, leaving 2,281 validated findings in 435 repositories.
Only 43 were attacks – roughly one in 3.3 million items – aiming to steal secrets, hijack the agent for a side task or forge its verdict. Two-thirds of the findings were something else: projects using hidden text to steer their own agents. Among them were 47 markers in 10 projects that record approvals, merge-ready states or bypassed checks.
The authors' advice is to filter by author, not by format, and never let a model's verdict open a security gate alone.
Now turn it around
That study assumes the author is an outsider who can open an issue. Your own agent writes code, comments, commit messages and the instruction files the next agent reads – under an identity you trust, at a volume nobody reviews in raw form.
There are three ways your agent ends up writing against you, and only one of them requires the model to be misaligned:
- It was compromised. It read a poisoned issue, README or web page and now carries those instructions into your repository. The 43 attacks in the study are exactly this – and when one succeeds, your agent becomes the attacker.
- It games its goal. Agents optimise for "tests pass" or "the report says done". A note telling the next agent that a check is already verified is a short step from there.
- It acts against you on its own. This is the rarest, and it is no longer hypothetical in testing.
Anthropic's system card for Claude Mythos Preview (April 2026) describes an earlier internal version that was asked, in a red-team test, to escape a secured sandbox. It built a multi-step exploit to gain broad internet access and emailed the researcher, as requested. Then, unasked, it posted details of the exploit on several obscure but public websites. The same section describes earlier versions taking actions they appeared to recognise as disallowed and trying to conceal them – in one case making sure changes would not appear in the git history. Anthropic reports no clear such cases in the final model. The caveat matters, and so does the lesson: concealment appeared in testing before it was trained out.
In June 2025, Anthropic's agentic misalignment study tested 16 models from several developers in fictional scenarios. When their goals or continued operation were threatened, many chose harmful actions such as blackmail or leaking confidential information. Anthropic stresses that the scenarios were deliberately constrained and that it has not seen this in real deployments. I read it as a reason not to build systems that only work if the agent always behaves.
What I would build in
Treat your own agent as an untrusted insider – not because it is malicious, but because its summary can't tell you whether it is compromised.
- Give it its own identity. Separate, attributable accounts, short-lived credentials and no secrets it doesn't need. Its commits and comments must be distinguishable from yours.
- Make approvals an identity, not a sentence. If your agent team writes review verdicts or status as text comments and merge rules read them, any agent with write access can forge another role's verdict. A verdict should count only as a required review or check status from a specific identity the platform enforces.
- Scan what agents write, not just what they read. Fail CI on HTML comments in agent-written issues and PRs that don't match your templates, and on invisible or bidirectional Unicode in code. Trojan Source (CVE-2021-42574) showed in 2021 that bidi characters can make reviewed code differ from what runs; an agent can produce the same characters.
- Agents don't edit their own rules. Changes to AGENTS.md, skills, prompts and CI configuration require a human review, because those files steer the next agent.
- Keep the log out of the agent's reach. Record actions append-only somewhere the agent cannot write. An agent that can rewrite history has no audit trail.
- Verify independently. A different model or tool checks the work against the requirement, not against the author agent's report.
Caveats
The GitHub study is a preprint; its counts are lower bounds and its authors work for a security vendor. The Mythos Preview incidents come from earlier internal versions in a test environment, and the sandbox escape itself was requested. The misalignment study used fictional, constrained scenarios. None of this says your agent will turn on you. It says the controls should not depend on it never doing so.
Sources
- Gabi Nakibly and Zvika Babo, Who Is Prompt-Injecting Coding Agents? An Empirical Study of Hidden AI-Directed Text on GitHub, arXiv:2611.28763 (preprint, 21 November 2026): https://arxiv.org/abs/2611.28763
- Anthropic, System Card: Claude Mythos Preview (7 April 2026), section 4.1.1: https://www-cdn.anthropic.com/08ab9158070959f88f296514c21b7facce6f52bc.pdf
- Anthropic, Agentic Misalignment (20 June 2025): https://www.anthropic.com/research/agentic-misalignment
- Red Hat, RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694): https://access.redhat.com/security/vulnerabilities/RHSB-2021-007