← Catalog
Incident high Attacks on AI discovered 2026-02-09

Clinejection: Issue Title to npm Supply-Chain Compromise

A malicious GitHub issue title was interpolated directly into Cline's AI triage agent prompt, leading through GitHub Actions cache poisoning to stolen npm, VS Code Marketplace, and OpenVSX publication credentials and an unauthorised cline@2.3.0 npm release that force-installed the OpenClaw agent on about 4,000 developer machines in an ~8-hour window.

What happened

Researcher Adnan Khan disclosed Clinejection on 9 February 2026; real exploitation followed on 17 February 2026. A malicious GitHub issue title was interpolated directly into Cline’s AI triage agent prompt. From there the chain ran through GitHub Actions cache poisoning to stolen npm, VS Code Marketplace, and OpenVSX publication credentials, and an unauthorised cline@2.3.0 npm release that force-installed the OpenClaw agent on about 4,000 developer machines in an ~8-hour window. Per Cline’s post-mortem, as summarised in secondary coverage, the CLI binary was otherwise unchanged and no user data was accessed or exfiltrated.

Why it maps to ATLAS

  • AML.T0051.001 — Indirect: the injection arrives through a data channel (an issue title) the agent ingests, not through the user’s own prompt. Note: the cited Clinejection sources describe the chain as indirect prompt injection plus cache poisoning, but do not assign an ATLAS ID themselves; this mapping is inferred from the described mechanism, not source-stated.

Detection notes

No SIEM rule is quoted in the cited sources. The cited organisational prompts are to audit agent tool permissions, GitHub Actions workflow triggers, and shared-cache credential scope, plus fencing untrusted repository metadata as data, least-privilege short-lived credentials, sandboxing agents with no default network, a human on the publish step, and monitoring for new publishes to your own registries. The lesson is that indirect injection is a supply-chain entry point, not just a chatbot flaw.

Detection

Log sources

  • Agent tool-permission + prompt audit (untrusted repository metadata entering prompts)
  • GitHub Actions workflow-trigger + shared-cache audit
  • Registry publish logs for your own packages

Signals

  • Untrusted repository metadata (issue titles, comments) reaching an agent prompt verbatim
  • Unexpected publishes to your own registries from CI credentials
  • Agent sessions with broad publish credentials and default network access

Mitigations

  • Fence untrusted repository metadata as data, never as prompt instructions
  • Least-privilege, short-lived CI credentials; sandbox agents with no default network
  • Require a human on the publish step; monitor for new publishes to your own registries