{"id":"MAL-2026-20421","aliases":[],"title":"Malicious code in evt-dispatcher (npm)","originalDescription":" --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (1651e57ad7d57928d036520e53a98e0c6d1782349849ef77ea10b0d0c3a1c9e5) Package presents as a ~10-line event emitter but index.js unconditionally loads a platform-selected native addon (`native.napi.node` on Linux/macOS, `native_win.node` on Windows) inside four repeated try/catch blocks, so merely `require()`ing the package runs the native code. The addon references the strings `%s/.napi_cache`, `/tmp/.%u`, `%s.nc%lu.js`, and `node \"%s\"`, and imports `fopen64`/`fread`/`fwrite`/`chmod`/`fork`/`setsid`/`execlp`/`_exit`; the Windows build mirrors this via `node.exe` and `CreateProcessA`. A 1,328,481-byte sibling file `.napi_cache` is shipped at the package root with no printable strings — an opaque payload the loader decodes, writes to `/tmp/.<n>.nc<n>.js`, and executes with `node`. The addon also contains an evasion harness that checks for CI runners (GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NOW_GITHUB_DEPLOYMENT, CF_BUILD_ID, SCREWDRIVER), containers (`/proc/1/cgroup`, `/proc/1/cmdline`, `dockerini","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/evt-dispatcher/v/1.0.5","type":"package"},{"url":"https://www.npmjs.com/package/evt-dispatcher/v/1.0.2","type":"package"},{"url":"https://www.npmjs.com/package/evt-dispatcher/v/1.0.4","type":"package"},{"url":"https://www.npmjs.com/package/evt-dispatcher/v/1.0.6","type":"package"},{"url":"https://www.npmjs.com/package/evt-dispatcher/v/1.0.3","type":"package"}],"sources":[{"name":"osv","at":"2026-11-24T05:15:28.352Z","url":"https://osv.dev/vulnerability/MAL-2026-20421","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T05:15:28.352Z"}],"firstSeenAt":"2026-11-24T05:15:28.352Z","publishedAt":"2026-11-24T04:14:48.000Z","modifiedAt":"2026-11-24T04:46:22.115Z"}