Vibeleaderboard
← All Intel
Intel / article

Post Mortem Unauthorized Cline Cli Npm

Source
cline.bot
Publisher
Cline
Author
Cline evaluation and engineering blog
Date
Why it matters

A stolen npm token let an attacker publish a coding-agent CLI with a postinstall for about 8 hours. Check for cline 2.3.0 and adopt OIDC provenance attestations on your own packages.

Key takeaways · AI-distilled
  • The entry point was an issue-triage GitHub Actions workflow using claude-code-action with allowed_non_write_users set to "*" and Bash access, so a crafted issue title could -inject Claude into running arbitrary commands on the runner.
  • Cline says the triage job ran on the default branch and so shared a cache scope with the nightly release workflow; an attacker could flood the cache past 10 GB to evict entries, then plant poisoned ones matching the release keys to reach publish secrets.
  • Token rotation failed: the wrong npm token was deleted, and npm's org-level token page showed zero active tokens while the exposed one stayed live. Cline now verifies rotation against the itself, not a dashboard.
  • The researcher reported the flaw via GitHub Security Advisory on January 1, 2026, but it was not addressed until he disclosed it publicly on February 9; Cline is now setting up a formal disclosure with defined SLAs.
  • Fixes include removing the AI triage workflows, removing Actions cache use from any workflow holding publish credentials, and publishing to npm only via OIDC with no long-lived tokens.
Terms in this piece · Glossary
  • agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
  • Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
  • Credential — Something presented with a request to prove that the sender is a particular identity, such as a password or a generated key.
  • Process — A running instance of a program, with its own working memory, open files and identity.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
More from Cline evaluation and engineering blog
Recommended reads