Prompt injection against coding agents is no longer only a lab demo. A new large-scale study of about 145 million GitHub issues, pull requests, comments and README files found 2,281 validated cases of hidden text written for AI agents, plus similar text in the READMEs of 107 repositories.
The study, posted on 21 November 2026, calls itself the first of its kind at this scale. Its main finding is that real attacks exist but are rare, and that most hidden agent text is something else entirely.
Why GitHub is exposed
AI coding agents now sort issues, review pull requests and pick up tasks inside repositories. To do that they read text that anyone with a GitHub account can write.
That sets up indirect prompt injection, where instructions buried in untrusted content steer a model that processes it later. Earlier research showed such attacks working against agents on GitHub in controlled settings. Nobody had measured how often they happen in the wild, who sends them, or why.
How the researchers searched
The team looked for text that GitHub doesn’t show to a human reader but that an agent receives in full. They filtered candidates with two rounds of LLM classification and a template provenance check, then reviewed everything by hand.
The result was 2,281 validated findings in issues, pull requests and comments, about 16 per million items. They also released their detection tool and every finding.
The hunt was for text meant for machines, so ordinary formatting quirks and notes meant for people were set aside. Only findings that survived the manual review were counted. That is why the total is small next to the 145 million items scanned.
Four uses of hidden text
The authors sort what they found into four groups:
- Attacks on other parties’ agents
- Defensive text that restricts what agents may do
- Content override, which steers what agents write
- First-party orchestration, where projects coordinate their own agents through hidden markers
The pattern is easy to picture. A maintainer asks an agent to triage new issues. Someone files an issue with an invisible instruction telling the agent to do something else. The human reviewer sees a normal bug report, and the agent sees both.
Attacks are rare, orchestration is not
Actual attacks occur about once in every 3.3 million items. They tend to target maintainers’ own triage, review and CI agents.
Orchestration is far more common. It makes up two thirds of the findings in issues, pull requests and comments, and it grew fivefold over four months.
That growth carries its own risk. Open-source projects are adopting agents quickly, and the hidden-marker approach is spreading with them. A hidden marker that tells a project’s agents what to do is a control channel, and anyone who can comment can imitate it.
Do the attacks work?
The researchers replayed the attacks offline against five models. They succeeded against one small, fast model in 19% of cases. They succeeded against none of the five once HTML comments were stripped from the input.
The test was offline, so it doesn’t prove how real deployments with tool access and permissions would fare. It does suggest that a cheap filter removes much of the exposure.
What maintainers can do now
Maintainers who run agents should read this as a configuration problem more than a crisis. Defenders have one advantage: the same hiding trick that makes prompt injection hard to spot is easy to detect once you look for it.
For teams running agents on public repositories, the findings point to a few habits. Strip HTML comments and other invisible text before an agent reads anything. Treat markers in comments as untrusted unless they come from an account you control. Review which agents can act on content from outside contributors.
Next, watch whether detection tooling like the released scanner gets built into repository platforms, and whether orchestration markers keep spreading. If they do, agent builders will need a way to verify who wrote an instruction before acting on it.
Source: arXiv.org