imgdecode v1.0.2: Rebuilt native addon adds process-injection APIs to its GitHub payload loader
Blog authorArmando, ReversingLabs AI threat analyst · Oct 14, 2026
Armando found that imgdecode v1.0.2, published to npm on 2026-10-01, ships a rebuilt Windows addon that, like v1.0.1, carries an obfuscated GitHub URL and decryption passphrase and imports the APIs to download and AES-decrypt the file, and now also carries the names of the Windows functions used to inject code into another process. The addon is loaded as soon as the package is required.
Key Findings
Malicious version: v1.0.2, published 2026-10-01; versions 1.0.0, 1.0.1 and 1.0.3 are also malicious
Entry point: no install hook -- index.js loads the addon on import, and the loader lives in the addon
Targets: Windows -- the only addon shipped is prebuilds/win32-x64/imgdecode.node
Evasion: a precompiled DLL with no native source or binding.gyp, strings XOR-encoded with the single byte 0x37, an encrypted payload hosted as a .jpg on GitHub, and a JavaScript shell that looks harmless
imgdecode describes itself as a "Native image buffer decoder for Node.js build pipelines". Its package.json names the author "build-tools-community", declares no source repository, and publishes only index.js, the readme and a prebuilds folder. Spectra Assure Community records no direct dependents.
It was published by the npm account malfexteste8, which has no other packages, at 17:48 UTC on 2026-10-01. The same account published 1.0.0 and 1.0.1 the evening before, and 1.0.3 on 2026-10-11. The account name follows the series behind cdn-img-fetch (malfexteste2), img-to-native (malfexteste3), native-runner (malfexteste4), imgbundle (malfexteste6) and runhelper (malfexteste7). Unlike those packages, imgdecode was still listed on npm when this analysis was written.
Attack Analysis
There is no install hook; the trigger is any require('imgdecode'). index.js is byte-identical to v1.0.1.
Load the addon. index.js runs require('imgbundle') and then loads ./prebuilds/win32-x64/imgdecode.node (falling back to ./build/Release/imgdecode.node, which the package never builds). Its only export, load(), returns null. The dependency range ^1.0.2 resolves imgbundle 1.0.2, which performs no decryption.
Download. The addon carries, XOR-encoded with the byte 0x37, the URL https://raw.githubusercontent.com/cavecrew/proj/main/banner.jpg, and imports InternetOpenA, InternetOpenUrlA and InternetReadFile from WinINet.
Decrypt. It carries the passphrase nif-runtime-2027 and imports the Windows CNG hashing and decryption functions (BCryptCreateHash, BCryptHashData, BCryptGenerateSymmetricKey, BCryptDecrypt).
Inject. New in this build, the addon's encoded strings include GetSystemDirectory, WriteProcessMemory, VirtualProtectEx, CreateRemoteThread and TerminateProcess, the functions used to write code into another process and run it there.
Armando confirmed the URL, passphrase, imports and API names from the binary but did not disassemble it, so the exact order of operations and the payload's execution path were not analysed.
Armando did not retrieve the file at banner.jpg, so its contents are not confirmed. npm has since replaced imgbundle with a security holding package, so this release's ^1.0.2 range can no longer be resolved from the registry; v1.0.3 removed the dependency.
Malicious Files
index.js (package/index.js) is the package entry point, byte-identical to v1.0.1. On import it requires imgbundle and loads the bundled addon, which carries the loader; its exported load() does nothing.
imgdecode.node (package/prebuilds/win32-x64/imgdecode.node) is a 64-bit Windows N-API addon shipped precompiled, with no native source or build file in the package. It contains the XOR-encoded download URL, passphrase and process-injection API names, and imports WinINet and CNG functions to download and AES-decrypt the payload. The same binary ships in v1.0.3.
package.json is the manifest that sets main to index.js, so the addon is loaded as soon as any project requires the package.
Recommendations
Developers and security teams should take the following steps:
Identify exposure: Check whether imgdecode, imgbundle, cdn-img-fetch or runhelper appears in your dependency tree, including transitive dependencies and lockfiles. Any Windows machine that loaded imgdecode should be considered potentially affected.
Remove the package: There is no clean imgdecode release to upgrade to. Remove it, together with imgbundle.
Inspect affected systems: Check proxy and DNS logs for requests from node.exe to the GitHub URL listed below, and look for unexpected processes started by node.exe. Treat a Windows host that loaded the addon as compromised.
Scan your software supply chain: Use Spectra Assure Community to check whether packages in your environment have been flagged.