qs-parse-nativenpm
Advisory published Updated
qs-parse-native is a confirmed malicious npm package (MAL-2026-20558) that executes malicious code on install (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in qs-parse-native (npm)
What this malware does
qs-parse-native advertises itself as a fast querystring parser, but index.js is a pure-JS parse/stringify implementation that additionally require()s a sibling native addon binding.node inside a swallow-all try/catch. The addon serves no parser role (it exports napi_register_module_v1 but no parse function wired to the JS surface); instead it reads a bundled opaque blob.napi_cache, decodes it, writes an executable to /tmp/.<pid>, chmods it, and launches it as a detached daemon via fork+setsid+execlp. Before dropping, the addon enumerates CI indicators (GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, JENKINS_URL, BUILDKITE, CODEBUILD_BUILD_ID, APPVEYOR, SEMAPHORE, TEAMCITY_VERSION, BITBUCKET_BUILD_NUMBER, NETLIFY, VERCEL, SCREWDRIVER), container runtimes (/proc/1/cgroup entries for docker/containerd/kubepod/podman, dockerinit in /proc/1/cmdline, SANDBOX env), and debugger presence (TracerPid in /proc/self/status, /proc/self/maps) and bails out if any are present, so execution is gated to real developer and production hosts. The staging path and the decoded payload are both opaque, and none of this behavior is required by, or related to, the advertised querystring API. The dropper fires automatically on every require('qs-parse-native').
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for qs-parse-native (version 1.0.0).
If you installed it — respond
Remove qs-parse-native from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If qs-parse-native was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks qs-parse-native-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.