Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack
AI Summary
An active supply chain attack has compromised multiple popular npm packages in the 'keyv' and 'cacheable' namespaces, attributed to a compromised maintainer account (Jaredwray). Malicious preinstall hooks in the packages execute a two-stage payload that downloads a standalone Bun runtime, harvests cloud credentials (including AWS, GCP, Azure, Kubernetes, HashiCorp Vault, GitHub Actions, and npm tokens), and self-propagates by republishing trojanized versions of other packages using stolen npm tokens. The attack leverages obfuscated JavaScript, exfiltrates data via DNS and GitHub repositories, and establishes persistence through autostart hooks in developer environments. The malicious packages remain live on npm, and the campaign is actively evolving with new packages being published.
AI-extracted · verify before operational use