Calm down. · Builders
Calm down: attackers are hiding prompts in GitHub issues, but it's rare, and one fix stopped every replay
Attackers really are planting hidden instructions for AI coding agents in GitHub issues and pull requests. They're just doing it very rarely. That's the finding of an arXiv study posted Nov 21 by Gabi Nakibly of Radware and the Technion and Zvika Babo of Radware. Radware is a security vendor that sells web application and DDoS protection. The paper doesn't pitch a product, and the authors released their detection tool and every finding on GitHub.
What they found
They scanned about 145 million issues, pull requests, comments and README files for text that GitHub doesn't show a human reader but an agent receives in full, mostly HTML comments. Across 142.7 million issues, pull requests and comments, they found 2,281 validated cases of hidden text aimed at AI, in 435 repositories. That's about 16 per million items, close to the roughly 13 per million pages an earlier study found on the open web. They also found hidden AI-directed text in the READMEs of 107 repositories.
Most of it isn't hostile. Two thirds of the findings are projects steering their own agents with hidden markers, and the rest is mostly defensive notices and instructions about what an agent should write. Attacks on someone else's agent made up 43 findings, about one in 3.3 million items, plus four in READMEs.
The part that isn't calm
The few attacks are aimed carefully. 44% of them target repositories of Microsoft, Google, OpenAI, Anthropic, GitHub or Elastic, the projects that adopted AI triage and review early. Of the 43, 44% try to steal the agent's secrets, such as its environment variables or its GitHub token, 37% try to hijack the agent for a side job, and 19% try to forge the agent's verdict, such as a triage label. 34 of the 43 were still in place when the authors checked again on Nov 10.
The authors also replayed the 43 attacks offline against five models acting as the targeted agent, with mock tools and one response each. Four of the five never carried out an injected instruction. The fifth, gpt-5.6-luna, which the paper calls "the smallest and fastest model we tested," complied with 8 of the 43 (19%). Seven of those eight targeted an issue triage agent. As the authors point out, small, fast models are the natural choice for an agent that runs on every new issue. Stripping HTML comments brought compliance down to zero, but it also removed the hidden instructions projects use for their own agents.
The other warning is about those friendly markers. Projects that coordinate their own agents through hidden comments grew fivefold in four months, and, in the paper's words, they form "a control channel that anyone who can comment can imitate."
So: real, rare, and concentrated on the agents that read outsiders' text. If you run one of those, the fixes are cheap.
What to do
-
Give issue-reading agents no secrets and no write access they don't need.
- Why: The most common attack goal was the agent's secrets, and the paper's first recommendation is to keep them out of reach.
- How: Set workflow token permissions explicitly, keep repository secrets and cloud credentials away from jobs an outsider's issue or comment can trigger, and don't give a triage agent a shell. Assume everything the agent reads is hostile (item 10 of the Builder's Checklist).
-
Don't let a model's verdict open a gate on its own.
- Why: One in five attacks tried to forge the agent's verdict, and four of the eight successful replays applied the attacker's labels.
- How: Treat a label or "approved" from a triage agent as untrusted output (item 11), and require a maintainer-set signal, such as a label only maintainers can apply or a check status, before anything merges or skips a check.
-
Check who wrote a marker, not just the marker.
- Why: Anyone who can comment can post the same hidden marker your own bot uses.
- How: Before an agent or script acts on a marker, check the author against your own bots and trusted accounts. Treat those markers as code, like your agent config files (item 19; see agent config files are code).
-
Strip hidden text from outsiders, not from everyone.
- Why: Removing HTML comments stopped every replayed attack, but it also breaks your own workflows and notices.
- How: The paper's advice is to filter by author: strip hidden text written by outsiders and keep what your own members and bots write. Its ipi-scan tool can list which hidden markers your repository already relies on. More on how hidden instructions work in my earlier brief.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.