Skip to content

Blog & news

AI researchCisent

A study finds more than 2,000 hidden texts for AI agents on GitHub

Two researchers searched GitHub for text that people don’t see but AI agents read in full, and found 2,281 cases in issues, pull requests and comments; 43 were attacks.

On November 21, two researchers from Radware, in Israel, published on arXiv what they describe as the first large-scale study of text on GitHub that is hidden from people but reaches AI agents in full. They analyzed roughly 145 million issues, pull requests, comments and README files.1

Why it matters

  • Agents already work inside repositories: they triage issues, review pull requests and make changes, and to do so they read text that anyone with a GitHub account can write.1
  • What people don’t see: GitHub doesn’t display some parts of the text to a person, such as HTML comments, but the agent receives them in full. That is where instructions for the agent can hide: it is indirect prompt injection.1
  • What is at stake: many of these agents hold elevated privileges, such as a token that can write to the repository, a shell on the continuous integration server or access to the workflow’s secrets.1

What they found

  • How many: 2,281 validated findings in issues, pull requests and comments across 435 repositories, about 16 per million items. They also found text hidden for agents in the READMEs of 107 repositories.1
  • How fast it grows: in four months, the rate in new issues and pull requests went from 7.0 to 15.4 per million, while GitHub grew 55%.1
  • What it’s used for: they found four uses. Attacks on other people’s agents, defensive text that restricts agents, text that sets how a team’s AI reviewer writes, and projects that coordinate their own agents through hidden markers.1
  • Attacks are rare, but not random: there are 47, and 43 of them are in issues, pull requests and comments, roughly one in 3.3 million items. More than half target the project’s own agent, the one that triages issues, reviews code or runs in continuous integration. One in five names real tools or fields of that agent, which shows the attacker read the project’s configuration first.1
  • What they go after: the most common goal, in 19 of the 43, is stealing the agent’s secrets: getting it to print its environment variables, read .env files or send the GitHub token out.1
  • An example: in July 2026, an issue in the repository of one of Google’s AI coding tools looked like an ordinary bug report. Hidden in an HTML comment, it told the agent that looks for duplicate issues to copy the workflow’s token into a variable with an innocuous name, encoded so that GitHub would not mask it in the logs. The person and the agent were reading two different texts, and only the agent’s carried the attack.1
  • The biggest use is not an attack: two thirds of the findings are projects that coordinate their own agents through hidden markers, like a shared notepad. That use grew fivefold in four months. Because every marker is plain text in a public thread, anyone who can comment can imitate it: they found 47 markers, in 10 projects, that record approvals or bypassed checks.1

How well the attacks work

  • The test: they replayed the 43 attacks offline against five models acting as the targeted agent. Four never carried out an injected instruction. The fifth, the smallest and fastest they tested, complied with 8 of the 43, or 19%.1
  • Where they worked: seven of those eight targeted an issue triage agent. The authors warn that small, fast models are the natural choice for an agent that runs on every new issue.1
  • The filter: stripping HTML comments eliminated compliance entirely, but it also removes the projects’ legitimate hidden instructions.1

What they recommend

  • Fewer privileges: don’t give an issue-reading agent secrets or write access it doesn’t need, and don’t let a model’s verdict open a security gate on its own.1
  • Check the author: before acting on a marker, verify who wrote it and accept it only from the project’s own bots and trusted accounts.1
  • Filter by author, not by format: strip the hidden text written by outsiders and keep what the project and its bots write.1
  • Their tool: they released ipi-scan, the detection tool they used, along with every finding.1

What we don’t know yet

  • What they didn’t measure: they only counted hidden text. Injections in plain sight, or in commits, code or agent instruction files, were left out, so their numbers are a floor.1
  • Comments: their crawl of comments and reviews is a sample, so coordination between agents, which happens mostly in comments, is the most undercounted.1
  • Whether they work for real: the model test was an approximation, with a single response per model, mock tools and instructions similar to each project’s, not the same ones. According to the authors, it shows the attacks are not merely theoretical, not how often they succeed in practice.1
  • Peer review: it is a preprint on arXiv. The text doesn’t say whether it has been through review at a conference or a journal.

Sources

  1. Gabi Nakibly and Zvika Babo, “Who Is Prompt-Injecting Coding Agents? An Empirical Study of Hidden AI-Directed Text on GitHub”, arXiv:2611.28763, November 21, 2026. https://arxiv.org/abs/2611.28763↩︎