Malicious code in lilys-builder (npm)
- GHSA-p4qr-382g-wp73
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4590b1d1ee1824f1de1f1bd10c55170a1f277200/osv/malicious/npm/lilys-builder/MAL-2026-21080.json))
Text from the GitHub Advisory record.
Affected
lilys-buildernpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.