Hidden AI text: Radware counts prompt injections across GitHub
Hidden AI-directed text is common on GitHub, but Radware reports that attacks on other people's agents are rare: about one item in 3.3 million.
· Radware · Research by Gabi Nakibly, Zvika Babo
Radware scanned about 145 million GitHub issues, pull requests, comments and README files for text hidden from readers but visible to AI coding agents, and validated 2,281 cases. Only 43 attack other people's agents.
01What happened
Gabi Nakibly and Zvika Babo of Radware published a census of hidden AI-directed text on GitHub on November 21, 2026. The two researchers analyzed roughly 145 million issues, pull requests, comments and README files, and validated 2,281 findings, about 16 per million items. They released their detection tool and the full findings dataset alongside the paper.
02How it works
Indirect prompt injection on GitHub works because an AI coding agent reads the raw Markdown while a person reads GitHub's rendered page. The Radware scanner looks for that gap: HTML comments, which GitHub never renders and which carried almost all of the hidden text, plus invisible Unicode, LaTeX colored to match the background, and CSS rules such as display:none. A two-stage model classification and a template check then separate real findings from issue and pull request boilerplate.
03Who is affected
Any project whose triage, review or CI agent reads issues, pull requests and comments written by people outside the project is in scope. Radware also found hidden AI-directed text in the READMEs of 107 repositories. The paper counts 43 findings that try to make another party's agent act against that party, such as stealing secrets or forging a review verdict.
04What to do
Strip HTML comments from GitHub content before an agent reads it: Radware reports that none of the five models it tested complied with any of the 43 in-the-wild attacks once comments were removed. The authors note that stripping also disables the hidden markers projects use to steer their own agents.
Measured results
In-the-wild attacks complied with, of 43
Higher is worse for defenders. Measured on raw Markdown, before HTML comments are stripped.
| Result | Score |
|---|---|
| claude-haiku-5-5 | 0attacks |
| claude-sonnet-5-5 | 0attacks |
| claude-opus-5-5 | 0attacks |
| gpt-5.6-luna | 8attacks |
| gpt-5.6-terra | 0attacks |
Scale 0 to 43attacks · Source: arxiv.org, as published
Questions people ask
- How many of the hidden GitHub prompt injections actually worked?
- Radware replayed the 43 in-the-wild attacks offline against five models and reports that only gpt-5.6-luna complied, on 8 of the 43 attacks, about 19 percent. Claude Haiku 5.5, Claude Sonnet 5.5, Claude Opus 5.5 and gpt-5.6-terra complied with none of them. Once HTML comments were stripped from the input, no model in the test complied with any attack.
- What is most of the hidden AI text on GitHub actually for?
- Most hidden AI-directed text on GitHub is projects steering their own agents, not attacking anyone. Radware classes 1,519 of the 2,281 findings as first-party orchestration, where maintainers leave hidden markers so their own triage or review bots behave a certain way. The authors report that this category grew fivefold over four months, far outpacing the 43 validated attacks.
- Can I run Radware's detector against my own repository?
- Yes. Radware released ipi-scan, the tool behind the study, under the MIT license, together with the JSONL findings files and a script that recomputes the published numbers. The scanner runs against a repository, search results, GH Archive data or a local file. Radware warns that the published dataset holds live attack payloads and should never be fed to an action-capable agent.
Sources 3 links, all fetched
- 1arxiv.orgarXiv Paper
- 2github.comDetector And Data
- 3arxiv.orgPaper Full Text