evt-dispatcher: malicious npm package drops native loader and executes hidden payload on developer workstations
Severity: critical · Patch status: no-fix-needed · Since 2026-11-24
The npm package evt-dispatcher, advertised as a small event emitter, shipped malicious versions 1.0.2 through 1.0.6. Its index.js unconditionally loads a platform-specific native addon, so merely require()ing the package executes native code. The addon decodes an opaque 1,328,481-byte .napicache file, writes a hidden JavaScript payload to /tmp/.<n.nc<n.js, and runs it with node; Windows uses node.exe/CreateProcessA. It includes evasion checks for CI runners, containers, and debuggers, keeping it dormant in automated analysis and active on developer workstations. No patched versions exist. Anyone who installed or depends on these versions should remove them, block the package, and hunt for the loader, cache file, and spawned node processes.
What to do
- Immediately remove evt-dispatcher 1.0.2–1.0.6 from developer workstations, build agents, and dependency caches; block the package and versions in npm proxies/registries.
- Treat any host that installed or require()d the package as potentially compromised: isolate it, rotate credentials/secrets/tokens accessible to that user, and review for unauthorized node child processes.
- Hunt for indicators: .napi_cache at package root, native.napi.node/native_win.node, /tmp/.<n>.nc<n>.js, and node.exe/CreateProcessA activity; inspect lockfiles and SBOMs for the package.
- Add evt-dispatcher to denylists and enforce dependency allowlisting; re-run dependency scans after cache purge because the loader evades CI/container/debugger environments.
Sources
All live incidents on Threat Watch