npm Supply Chain Breach: Cryptostealer Malware in Popular Packages

Semgrep reported a significant supply chain attack on npm packages, notably affecting high-traffic libraries like chalk, debug, and color. The attack was traced back to a compromised maintainer account, likely via phishing. Malicious versions of these packages were published, embedding cryptostealer malware that targeted cryptocurrency transactions by intercepting and redirecting HTTP responses. The malware used obfuscated JavaScript and varied wallet addresses to evade detection. Despite the swift removal of these packages—many within an hour—the combined weekly download count of the affected packages reached approximately 2.6 billion, underscoring the potential impact of such attacks. Semgrep has released an open-source rule to help developers identify and mitigate risks from these compromised versions. 

https://semgrep.dev/blog/2025/chalk-debug-and-color-on-npm-compromised-in-new-supply-chain-attack

Comments

Popular posts from this blog

Secure Vibe Coding Guide: Best Practices for Writing Secure Code

KEVIntel: Real-Time Intelligence on Exploited Vulnerabilities

OWASP SAMM Skills Framework Enhances Software Security Roles