MAL-2026-21080: Malicious code in lilys-builder (npm)

Published Dec 3, 2026
·
Updated

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

Source: amazon-inspector (90132a18a5e7b6d8d79baef169899da7ed0cd498cec48ce7b843addfbf2d2390) package.json declares postinstall: node lib/index.js --install, causing npm install lilys-builder to execute lib/index.js automatically. lib/index.js is a single-line ~6.3 MB file whose entire body is one JSFuck-style eval(...) expression that reconstructs its strings at runtime from [][...] / (!![]+[])[n] primitives. The same file is also the package's main/module/exports target (with lib/index.mjs re-exporting it via require('./index.js')), so any consumer that does require('lilys-builder') re-executes the same opaque blob at load time. A clean, human-readable Baileys/Nixel interactive-message builder implementation is present in script/MessageBuilder.js but is not referenced by main, module, exports, or bin — the readable code that matches the advertised purpose is unused, and only the obfuscated blob runs. The MessageBuilder.js header attributes the readable code to a third party ('NIXCODE... Created by Nixel') under a no-redistribution notice, while the package is published as lilys-builder by a different author, consistent with a cover-story repackaging.

Affected Software

1 affected component
npm/lilys-builder=1.0.0

Event History

Dec 3, 2026
Advisory Published
via OSV·08:39 PM
Data Sourced
via OSV·08:39 PM
DescriptionAffected Software

Frequently Asked Questions

1

When can the code execute?

It executes automatically during npm installation through the package's postinstall script. It also executes when an application loads the package with require('lilys-builder'), because the package entry points resolve to the same obfuscated lib/index.js file.

2

Who is exposed?

Systems that install the package through npm are exposed during installation, and applications that include and load it are exposed again at runtime. The package's readable MessageBuilder implementation is not used by its declared main, module, exports, or bin entry points.

3

How can I identify an affected installation?

Inspect the installed package.json for a postinstall entry of "node lib/index.js --install". The affected package contains a roughly 6.3 MB single-line lib/index.js consisting of an obfuscated JSFuck-style eval expression, and lib/index.mjs re-exports it.

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