Malicious imgdecode package hides Windows loader inside a native add-on
SafeDep has analysed a malicious npm package named imgdecode that hides its loader inside a compiled Windows add-on. The original research was published on 13 October 2026 and received further news coverage on 17 October. The package first appeared on 30 September; version 1.0.3 followed on 11 October.
npm supplies reusable code for Node.js projects. In this case, a short JavaScript file loads a bundled native library. SafeDep says that, when loaded in an interactive Windows console, the library attempts to retrieve encrypted instructions from GitHub and inject them into another Windows process.
The trigger is loading the module, rather than an installation script. That means simply blocking installation hooks would not address this particular route. Conversely, finding any compiled add-on in a project is not evidence of malware: legitimate packages use them too.
SafeDep links imgdecode to the MALFEX campaign with high confidence. However, it did not recover the native loader’s downloaded banner.jpg file, so its connection to the final stealer payload remains an inference. Download totals also do not establish how many people were infected.
Small businesses commissioning software should ask developers whether the named packages appear in project lock files or workstation histories. A Windows computer that loaded them warrants incident investigation, not just package removal. Isolate suspected devices and have responders preserve useful evidence. Review exposed developer tokens and credentials from a clean device, because a development machine can hold access to customer systems as well as source code.
Sources



Comments