Hidden text on GitHub is aimed at AI coding agents, study finds
Researchers scanned 145 million GitHub items for text humans can't see but AI agents read. Most is harmless team notes, but 43 cases were attacks.

Open a GitHub issue and you see what the author wants you to see. An AI agent reading the same issue may get more. Researchers have now counted how often hidden text aimed at GitHub AI coding agents shows up, and who puts it there.
The paper, "Who Is Prompt-Injecting Coding Agents? An Empirical Study of Hidden AI-Directed Text on GitHub", comes from researchers at the Israeli security firm Radware and the Technion, Israel Institute of Technology. They analysed about 145 million posts and README files, looking for text such as HTML comments that doesn't render on screen but still reaches an AI.
What is hidden prompt injection on GitHub?
Many teams now let AI agents sort issues and review pull requests on their own. Those agents read text that anyone can write. That opens the door to indirect prompt injection: slipping in instructions that the AI follows without the human noticing.
The team found 2,281 cases in issues, pull requests and comments. Most were innocent. 67% were developers using HTML comments as a shared notepad, giving instructions to their own agents or coordinating tasks between them. 16% were output settings, such as telling Copilot to review in Japanese, and 15% were restrictions, such as telling the AI not to edit fields meant for humans. So 98% weren't attacks.
How many were real attacks?
The other 2%, or 43 cases, targeted other people's AI agents. 44% of those aimed at repositories of big vendors including Microsoft, Google and OpenAI. The most common goal, also 44%, was stealing credentials such as environment variables and authentication tokens. And 21% of the attacks named real tool or output field names of the target agent, which suggests the attackers had read its workflow definition first.
In a replication test with five AI models, four never followed the attack instructions. The exception was a small, fast model, gpt-5.6-luna, the kind that tends to be picked for processing large volumes of issues. It followed the attack in 8 of 43 cases, or 19%, and tried to carry out unauthorised actions.
What should teams do?
The researchers say these hidden markers grew fivefold in four months. Because they are plain text in a public thread, anyone can write the same marker. An AI or script that doesn't check the author could obey a forged "approved" or "skip checks" note from an outsider.
Their advice: give AI that reads outside posts only minimal permissions and keep it away from secrets. And filter hidden text by author, separating what insiders wrote from what outsiders wrote.
Apps worth a look
Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.
Talk to an AI conversation partner; every sentence comes back corrected and explained in your language. 9 languages, A1 to C2.
Open EDIFACT and X12 messages, see every segment explained, convert to JSON/XML, export PDF and Excel. Runs locally, no upload.
Pick who it is for, the occasion and their personality. The search engine reads product descriptions from local shops and ranks what fits. Free, no sign-up.
More from this day
See all →
Apple Intelligence ad case: Korea's FTC weighs fine over Siri

Riemann hypothesis proof found with Claude: 17 million lines of code

Suno lawsuit: Elvis and Eminem rights holders sue over 1,128 songs



