MAL-2026-21080: Malicious code in lilys-builder (npm)
--- -= 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
Event History
Frequently Asked Questions
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.
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.
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.