Hidden prompts surge on GitHub: readable by AI, hard for human eyes to discern, raising security risks
Radware and the Technion team at the Israel Institute of Technology published research on arXiv, analyzing about 145 million GitHub Issues, Pull Requests, comments and other content, and found 2,281 hidden prompts that are hard for human eyes to discern and are meant for AI to read, of which 43 are samples of indirect prompt injection attacks attempting to manipulate others' AI agents. Of these hidden prompts, 67% were used for internal team AI agent collaboration, 16% for setting AI output, and 15% for restricting AI behavior; among the attack samples, 44% targeted code repositories of companies such as Microsoft, Google and OpenAI, and 44% were intended to steal credentials. In simulated tests with 5 AI models, 4 models did not execute the malicious instructions; OpenAI's GPT-5.6 Luna fully or partially followed the attack instructions for 8 of the 43 samples, accounting for 18.6%. From June to September this year, hidden prompts per 1 million newly added Issues and Pull Requests on GitHub rose from 7 to 15.4; when the research team rechecked on the 10th of this month, 34 of the 43 malicious instructions had still not been removed.