Hidden text on GitHub is quietly steering AI coding agents — and small models are falling for it
A study of about 145 million GitHub posts found hidden instructions aimed at AI coding agents — most of them harmless team notes, but 43 were real attacks, and one small, fast AI model followed the malicious orders in nearly one in five tests.
Researchers from Israeli security company Radware and the Technion–Israel Institute of Technology analysed about 145 million GitHub posts and README files and found hidden text written for AI, not people. The text — often tucked into HTML comments — is invisible on screen to humans, but AI coding agents that read the same pages see it and can follow it.
Of the 2,281 hidden messages found in issues, pull requests and comments, 98% were not attacks: 67% were development teams using HTML comments as shared notepads to instruct their own AI agents or coordinate tasks between agents, 16% set output preferences such as asking Copilot to review in Japanese, and 15% set limits such as telling an agent not to edit fields meant for humans. The remaining 2% — 43 cases — were malicious attacks aimed at other people's AI agents, and 44% of those targeted repositories belonging to Microsoft, Google, OpenAI and other large vendors, most often trying to steal credentials such as environment variables and authentication tokens.
In reproduction tests with five AI models, four never followed the attack instructions — but the small, fast model gpt-5.6-luna obeyed them in 8 of 43 cases (19%) and tried to carry out unauthorised actions. The researchers say such hidden text has surged fivefold in four months, and recommend giving AI agents that read outside posts only minimal permissions, keeping them away from secrets, and filtering hidden text by who wrote it.
(Source: ITmedia NEWS)