{"id":"MAL-2026-20554","aliases":[],"title":"Malicious code in native-stream-parser (npm)","originalDescription":" --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d4fb217d81e79be4844f58b4467338645a739063a28f3b80009d5aad00cc3b58) On any require('native-stream-parser'), index.js platform-dispatches to one of three bundled N-API addons (native.napi.node, native_mac.node, native_win.node). Each addon reads the shipped ~1.3MB opaque high-entropy.napi_cache file, decrypts it, writes it to a hidden temp path (/tmp/.<pid> on Unix, %TEMP%\\<name>.nc<pid>.js on Windows), and launches it as a detached child process (fork+setsid+execlp on Unix; CreateProcessA with 'node \"%s\"' on Windows). The payload bytes are opaque and not derivable from any declared source, so the author controls arbitrary code executing on the installer's host at import time. Prior to execution, the addons probe for analysis environments: Linux reads /proc/1/cgroup, /proc/self/status (TracerPid), and /proc/self/maps; Windows calls IsDebuggerPresent, CheckRemoteDebuggerPresent, and enumerates processes via Toolhelp32 looking for wireshark/httpdebug; both check CI env vars including GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, TRAVIS, SANDBOX, APPVEYOR, SEMAPHOR","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/native-stream-parser/v/1.0.1","type":"package"}],"sources":[{"name":"osv","at":"2026-11-25T07:06:45.370Z","url":"https://osv.dev/vulnerability/MAL-2026-20554","license":"CC-BY 4.0","firstSeenAt":"2026-11-25T07:06:45.370Z"}],"firstSeenAt":"2026-11-25T07:06:45.370Z","publishedAt":"2026-11-25T06:06:17.000Z","modifiedAt":"2026-11-25T06:45:05.042Z"}