MAL-2026-20558: Malicious code in qs-parse-native (npm)

Published Nov 25, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (7e6c49a67bd1c4eed10dd9883ea92ca62712ca4ffef424f70744832dc26eff84) 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 napiregistermodulev1 but no parse function wired to the JS surface); instead it reads a bundled opaque blob.napicache, 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 (GITHUBACTIONS, GITLABCI, TRAVIS, CIRCLECI, JENKINSURL, BUILDKITE, CODEBUILDBUILDID, APPVEYOR, SEMAPHORE, TEAMCITYVERSION, BITBUCKETBUILDNUMBER, 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').

Affected Software

1 affected component
npm/qs-parse-native=1.0.0

Event History

Nov 25, 2026
Advisory Published
via OSV·06:28 AM
Data Sourced
via OSV·06:28 AM
DescriptionAffected Software

Frequently Asked Questions

1

Which systems are most likely to execute the payload?

The payload is designed to run on real developer and production hosts. It exits when it detects common CI environments, container indicators, sandbox settings, or debugger presence.

2

What must happen for the native payload to run?

The package's JavaScript entry point attempts to load the sibling native addon, binding.node, through require(). The addon is not used for parsing, but is responsible for decoding and launching the bundled payload when its environment checks pass.

3

What host artifacts can indicate execution?

The addon writes a decoded executable to a hidden path under /tmp named /tmp/.<pid>, changes its permissions to executable, and launches it as a detached daemon. A hidden executable in /tmp matching that pattern and a related detached process are relevant indicators.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203