Definition ∞ NPM package malware refers to malicious code embedded within software modules distributed through the Node Package Manager registry, a popular repository for JavaScript libraries. Attackers inject harmful code into these packages, which developers then unknowingly incorporate into their projects. This type of supply chain attack can compromise applications, steal data, or deploy further malicious payloads when the affected package is used. It represents a significant risk to software integrity.
Context ∞ NPM package malware is a persistent and evolving threat in the software supply chain, particularly relevant for blockchain and Web3 development due to their reliance on open-source components. News reports frequently detail instances of malicious packages being discovered and removed from the NPM registry. Discussions focus on enhancing package auditing, implementing robust dependency scanning, and improving developer vigilance to protect against these insidious forms of software compromise.