'Ghostcommit' hides prompt injection in images to fool AI agents, steal secrets
研究人员证明隐藏 prompt injection 的 PNG 图片可以窃取 repo 的 secrets。这项名为 Ghostcommit 的技术避开了 CodeRabbit 和 Bugbot 等 AI code reviewers。由于这些审查工具通常不打开图片文件,Ghostcommit 随后诱导 coding agent 读取 repo 的 .env 文件,并将所有 secrets 以数字列表的形式写入代码。 [link]