These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
Clinejection: prompt injection in an AI issue triage workflow
February 2026 · Contained
An issue title told Cline's AI triage agent to install a package, which ran code in a workflow that shares the Actions cache with the nightly release jobs; poisoning that cache exposed the VS Code Marketplace, OpenVSX and npm publishing tokens, and someone used them to publish an unauthorized Cline CLI.
- Access held
- Code running in the triage jobCode in the nightly buildsVSCE_PAT, OVSX_PAT, NPM_RELEASE_TOKEN
Full summary
From 21 December 2025 Cline ran an issue triage workflow that started Claude, through anthropics/claude-code-action, with Bash and other tools on every new issue, and let anyone with a GitHub account trigger it. The issue title went straight into Claude's prompt, so a title written as an instruction could make it run npm install on a package the attacker controls. The triage job held no publishing secrets, but every workflow on the default branch shares one Actions cache. Adnan Khan showed that code in the triage job can flood the cache past GitHub's 10 GB limit so the real entries are evicted, then plant entries that the Publish Nightly Release and Publish NPM Nightly workflows restore, which hand over VSCE_PAT, OVSX_PAT and NPM_RELEASE_TOKEN. Because of how those registries scope tokens, the nightly tokens can publish production releases. Khan tested only on a mirror and reported it on 1 January 2026; Cline answered only after he published on 9 February and removed the AI workflows within about 30 minutes. A different actor had found his proof of concept, used it against Cline itself, and published an unauthorized Cline CLI to npm whose postinstall script installed openclaw.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
On 21 December 2025 Cline added a workflow on the issues event that ran claude-code-action with Bash among its tools and allowed_non_write_users set to "*", so opening an issue was enough to start it. Its GITHUB_TOKEN was restricted and the only secret in the job was the Anthropic API key.
What breaks this step
- Decide which AI coding agents and MCP servers may work on the organization's repositories
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Give agents a token scoped to the single repository they're working on.
- Don't let an agent read public input and write to private repos in the same session.
The issue title was put straight into Claude's prompt. A title telling it to install a helper tool from a commit the attacker controls makes Claude run npm install through its Bash tool, which runs the package's install script on the runner without the model seeing what it does.
What breaks this step
- Decide which AI coding agents and MCP servers may work on the organization's repositories
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Do not restore Actions caches in release and publish workflows
- Give an AI step in a workflow read-only tools and the GitHub CLI calls it needs, never a shell.
- Do not run an AI step on events outsiders can trigger in a workflow that shares a cache with release jobs.
Every workflow on the default branch can read and write the repository's Actions cache, whether it uses caching or not. Since 20 November 2025 GitHub evicts entries as soon as a repository passes 10 GB, so code in the triage job can fill the cache with junk until the real entries go, then write poisoned ones under the keys the nightly release workflows restore. Khan's Cacheract tool does this in a single run.
Publish Nightly Release and Publish NPM Nightly restore those entries while holding VSCE_PAT, OVSX_PAT and NPM_RELEASE_TOKEN. Because the VS Code Marketplace, OpenVSX and npm scope tokens to the publisher or package, the nightly tokens can publish production releases too. Khan saw suspicious failures in the nightly workflow between 31 January and 3 February 2026.
What breaks this step
- Third-party Actions pinned to a full commit SHA instead of a mutable tag or branch
- Restrict which Actions can run to GitHub-verified creators or an internal allow-list
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Limit where workflow jobs can connect to, starting with release and deploy jobs
- Set `persist-credentials: false` on actions/checkout wherever later steps do not push
- Publish nightly builds with their own tokens that cannot publish a production release.
Khan reported it through a GitHub security advisory and email on 1 January 2026 and tried again on 8 and 18 January and 7 February without an answer. He published on 9 February, and Cline merged a fix about 30 minutes later that removed the AI workflows and stopped the nightly jobs from using the cache.
Khan ran his proof of concept on a mirror of the repository. A different actor found it on his test repository, used it against Cline itself to obtain the publishing credentials, and published an unauthorized version of the Cline CLI to npm with a postinstall script that installed openclaw.
What breaks this step
- Adopt artifact attestations for build provenance on published binaries/images
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Put production secrets in environments with required reviewers
- Write and rehearse a credential-rotation runbook before you need it
Frameworks
Contained. First seen February 2026, last seen February 2026. Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- researchClinejection: compromising Cline's production releases just by prompting an issue triager
- researchGitHub Actions security: AI-powered Actions vulnerabilities (Wiz)
Reported by: Adnan Khan