88Z AI, 23 November — Once an AI agent runs in CI, every pull request title, issue, and comment can become part of its prompt. If the same job also holds secrets and a way to publish them, an outsider can walk away with the keys. Public cases show a repeating pattern. The author's main fix is to split the review job from the job that posts results.
At a glance
- Untrusted pull request text, secrets the agent can reach, and an exit path in the same job are enough to leak keys
- Public cases from PromptPwnd and Clinejection to Comment and Control repeat the same structure, not just one product bug
- Search existing workflows with the author's grep, then split a read-only review job from a posting job that holds the write token but never reads the pull request
- Even a stronger model may flag the right file and still describe the wrong bug, so review quality is not a substitute for isolating privileges
How untrusted text becomes a leaked key
Writing about Lynx, an AI security reviewer he is building for pull requests, the author says the hard question is not only how good the review is, but what happens when the pull request itself is written to talk to the reviewer. The moment an AI agent is placed in continuous integration, every pull request title, issue, and comment becomes part of its prompt. If that agent can also reach a secret, so can whoever wrote the text. The attacker did not need write access to the repository, an exploit, or malware, only text in places the bot was told to read.
In April 2026, Aonan Guan, Zhengyu Liu, and Gavin Zhong published research they called Comment and Control. They put instructions in a pull request title, and Anthropic's Claude Code Security Review followed them, posting the workflow's Anthropic API key and GitHub token back onto the pull request, dressed up as a security finding. The same idea worked on Google's Gemini CLI Action, which posted its GEMINI_API_KEY as a public issue comment. GitHub's Copilot agent leaked its tokens after a maintainer assigned it an issue with instructions hidden in an HTML comment. The bounties were 100 dollars from Anthropic, 1,337 dollars from Google, and 500 dollars from GitHub, which called it a known architectural limitation. None of the three cases received a CVE.
The same pattern, five times in nine months
The author treats this as a pattern rather than one bug, and lists five public cases in nine months. In December 2025, PromptPwnd, Aikido Security showed that AI actions in GitHub Actions and GitLab CI, including Gemini CLI, Claude Code, OpenAI Codex, and GitHub AI Inference, become exploitable when a workflow pastes untrusted issue or pull request text into the prompt and gives the agent powerful tokens or tools. Google's own gemini-cli repository had an exploitable triage workflow, which Google patched within four days. Aikido said at least five Fortune 500 companies were affected. In the February 2026 Clinejection case, the open-source coding agent Cline had an issue-triage workflow that anyone with a GitHub account could trigger, and it pasted the issue title straight into Claude's prompt. After the agent, which had a shell and other tools, was induced to install a package from the attacker's fork, the GitHub Actions cache was flooded and then poisoned. The nightly release job restored the poisoned cache and reached publishing tokens for npm, the VS Code Marketplace, and OpenVSX. Citing Adnan Khan, the author says the work was tested on a mirror, reported privately on 1 January, and published on 9 February. Cline removed the AI workflows quickly and rotated tokens, but deleted the wrong npm token. On 17 February, an unauthorized cline@2.3.0 appeared on npm with a postinstall script. Snyk put the bad version's time on npm at about eight hours.
In May 2026, CVE-2026-47751 showed that claude-code-action checked out the pull request's own branch, read the .mcp.json file in it, and switched on every MCP server that file listed. A pull request that added a malicious .mcp.json could run code on the runner and take the workflow's secrets. It was fixed in v1.0.74, and it did not even need to talk to the model, because the pull request had become the agent's config. In August 2026 at Black Hat USA, the Cloud Security Alliance's write-up of a talk by Novee Security said researchers found new bypasses in Claude Code and Gemini CLI after the earlier fixes. One Claude Code flaw, CVE-2026-54316, leaked an API key one character at a time through a domain that WebFetch was pre-approved to reach.
The lethal trifecta, and a check for existing workflows
The author maps Simon Willison's lethal trifecta onto an AI review job. Untrusted content includes pull request titles and bodies, issues and comments, and files in the diff. Private data includes the model API key, GITHUB_TOKEN, and release tokens. A way out includes pull request comments, git push, and web fetch. If all three sit in one job, a stranger can walk off with the secrets. Take any one away and the attack falls apart.
The article also includes a command for finding workflows that let non-writers trigger an agent, or that paste github.event issue, pull request, comment, or review fields into a job: grep -rnE 'allowed_non_write_users|allow-users|\$\{\{ *github\.event\.(issue|pull_request|comment|review)' .github/workflows/
Split the review job from the posting job
The author's diagrams contrast the usual starting point with a safer split. In one job, a pull request that contains hidden instructions is read by an AI review job that also holds secrets, a write token, and shell plus web access. One injected pull request can then post your keys in public. The recommended design uses two jobs. The review job is read-only, uses a scoped key only, has no network, and writes a schema-checked findings.json file. The post job holds the write token and never sees the pull request text. In that setup, the worst case after a hijack is a bad report, not a public secret.
The author also cautions that review quality has limits of its own. Citing SecPRBench from October 2026, with 265 real bug-introducing commits and eight frontier models, the weakest model caught 32.5 percent of bugs out of every 100, and the strongest caught 78.1 percent. Among the misses, 68 percent flagged the right file and then argued the wrong bug. The author's line is that finding the file is not the same as finding the flaw, so model review is not a substitute for isolating privileges.
88Z perspective
This section is 88Z's reading of the source, not an independent test of the vendors or of the author's reviewer. The cases point to job boundaries more than to one model suddenly going wrong. An agent that reads untrusted text and, in the same job, can comment, push, or publish already has an exit path for prompt injection. The most practical parts of the material are the split-job design and the workflow check to run before an agent is left in CI. The bounty amounts, and the fact that some of these issues were not assigned CVEs, also suggest a design limitation rather than a one-off bug that ends after a single patch. Teams that already invoke coding agents in CI may want to search their workflows for the pattern the author describes, and then ask whether the review job still holds a write token or outbound network access.
Sources & editorial note
This article is an AI-assisted synthesis by 88Z AI based on the public sources below. Product claims and availability are attributed to their publishers. It does not represent independent testing or first-hand reporting.
- @Rush1BalapureSource published
Source dates above refer to the original announcements; the date under the headline is this article’s publication on 88Z AI.

