cvelo
P2 · HighMalware

Malicious code in lilys-builder (npm)

  • MAL-2026-21080

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.

Text from the OSV record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • lilys-buildernpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.