MAL-2026-20347: Malicious code in t10-xor-spawn-testmetest (npm)

Published Nov 23, 2026
·
Updated

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

Source: amazon-inspector (187be5ad95ca2a559216b50f70953a23234408870b97278050419c4ad84b9750) On require(), index.js reads the shipped libnative.dat, XOR-decrypts it with a hardcoded 32-byte key, brotli-decompresses the result to JavaScript, writes it to a timestamped file in os.tmpdir(), and executes it by spawning a bun binary resolved from /usr/local/bin/bun, $HOME/.bun/bin/bun, or $BUNINSTALL/bin/bun, with errors swallowed by a try/catch. The package is self-described as a utility library, yet ships no plain source implementing that purpose; the only on-import effect is decoding and executing an opaque, encrypted blob with an alternate (non-Node) runtime, which bypasses Node-based inspection. The contents of the decoded payload are not visible to the installer and change behavior at the author's discretion.

Affected Software

1 affected component
npm/t10-xor-spawn-testmetest=1.0.0

Event History

Nov 23, 2026
Advisory Published
via OSV·08:08 AM
Data Sourced
via OSV·08:08 AM
DescriptionAffected Software

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