Executive Summary
A malicious npm package associated with the MALFEX supply chain campaign reportedly embeds a shellcode loader in a Windows native addon. Teams operating AI agents or LLM applications that depend on npm packages should assess whether the package is present in their environments.
What Happened
Cybersecurity researchers have discovered a malicious npm package that's part of a recently disclosed software supply chain attack campaign dubbed MALFEX. The package, named "imgdecode," was uploaded to the package registry on September 30, 2026, by a user named "malfexteste8." It has been downloaded 979 times as of writing and is still available on npm as of writing. The latest version of
Affected Products
- imgdecode
- npm
- Windows native addon
Vulnerability / Attack Technique
Malicious software supply chain package with embedded shellcode loader
Technical Mechanism
The package reportedly hides a shellcode loader inside a Windows native addon. The provided article summary does not describe the loader's execution path, payload behavior, persistence, or delivery mechanism.
AI Security Category
Not AI-specific
RealGround Analysis
This is not described as an AI-specific attack, but compromised dependencies can affect AI agents and LLM applications that incorporate third-party JavaScript packages. Dependency inventories and provenance checks can help teams identify exposure before untrusted code reaches agent or application execution environments.
Recommended Controls
- Maintain an SBOM covering npm packages used by AI agents and LLM applications.
- Pin dependencies to reviewed versions and verify package provenance before deployment.
- Monitor npm dependencies for unexpected uploads, maintainer changes, and malicious-package reports.
- Run dependency installation and build processes in isolated environments with least privilege.
- Remove or quarantine the imgdecode package if it is present in affected environments.
Related RealGround Service
AI Agent SBOM and LLM Mapping · or start with the free AI Agent Security Scanner.
Sources
thehackernews.com: https://thehackernews.com/2026/10/malfex-npm-package-imgdecode-hides.html
Summary and analysis written by RealGround from the source above; last updated 2026-10-18.
