arXiv Study: 145 Million GitHub Items Analysed, Hidden Text for Injecting Prompts into AI Coding Agents Found
An arXiv paper analysed about 145 million GitHub items and found hidden text aimed at AI agents. Attacks are rare but real, and they target agents that maintain projects.
This article was prepared with AI assistance from the official sources listed below, and checked automatically before publication.
A paper uploaded to arXiv on 21 November 2026 reports the first large-scale empirical study of hidden text aimed at AI agents on GitHub. The authors, Gabi Nakibly and Zvika Babo, analysed about 145 million issues, pull requests, comments and README files. The results show that indirect prompt injection against coding agents genuinely occurs in the real world, not only in controlled experiments.
What was studied and how
AI coding agents are now used to triage issues, review pull requests and pick up tasks in GitHub repositories. To do this, agents read text that anyone with a GitHub account can write. This makes GitHub an attractive attack surface for indirect prompt injection, that is, instructions embedded in untrusted content to steer the model that subsequently processes it.
The researchers looked for text that GitHub does not display to human readers but that agents receive in full. Candidate findings were filtered through three steps:
- two-stage LLM classification;
- template origin checks;
- thorough manual review.
Key findings
According to the paper, there were 2,281 validated findings in issues, pull requests and comments, or about 16 per million items. In addition, hidden text aimed at AI was found in the READMEs of 107 repositories.
The authors group its uses into four categories:
- attacks against agents belonging to other parties;
- defensive text that restricts agent behaviour;
- content override that steers what the agent writes;
- first-party orchestration, where a project coordinates its own agents through hidden markers.
Attacks are relatively rare, about one in 3.3 million items, but they are directed at the triage, review and CI agents of maintainers. Orchestration, meanwhile, accounts for two-thirds of the findings in issues, pull requests and comments, grew fivefold in four months, and forms a control channel that anyone who can comment could imitate.
How effective the attacks are
The attacks found were replayed offline against five models under test. The attack succeeded on one small, fast model in 19% of cases, and did not succeed on any model once HTML comments were removed. The authors also released a detection tool and all of their findings.
Implications for teams in Indonesia
For software houses, in-house teams and agencies that use AI agents on GitHub, this study confirms that text in repositories must be treated as untrusted input. This applies especially when agents read issues or comments from external contributors. The findings on orchestration are also relevant: if agents are controlled through hidden markers in comments, anyone else who can comment could potentially imitate those markers.
Practical steps
Based on the paper's findings, here are several steps worth considering:
- Limit agent permissions to the minimum needed, and require human approval for sensitive actions.
- Filter out text that is not visible to humans, such as HTML comments, before content is given to the agent. In testing, removing HTML comments defeated the attack on every model tried.
- Do not rely on hidden markers in comments as the sole mechanism for controlling agent orchestration.
- Consider a model's resistance to injection when choosing a model for an agent, because test results differ between models.
- Review the detection tool and data released by the researchers to check your own repositories.
It should be noted that the paper has only just been uploaded to arXiv and its abstract page does not mention any peer review. The attack success results also come from offline replay on five models, so they do not automatically reflect every agent configuration in the field.
Sources & references
This article is a summary and interpretation by the Oemah Solution team of the sources below. Refer to the original sources for full details and context.

