Skip to content
MediumNews

Compromised npm package silently installs OpenClaw on developer machines

Published
Record updated
View JSON

Summary

A compromised npm publish token pushed cline@2.3.0, a Cline CLI release whose modified package.json added a postinstall script that installs the latest version of OpenClaw. The malicious version was live on the npm registry for about eight hours on February 17 before it was deprecated and Cline published 2.4.0. Socket, which researched the incident, has marked the unauthorized publish as malware.

Mitigation

For devs who installed or updated the Cline CLI in the roughly eight-hour window on February 17, Socket advises: update to the latest version with "npm install -g cline@latest"; if on version 2.3.0, update to 2.4.0 or higher; and check for and immediately remove OpenClaw if it was not intentionally installed.