Malicious package · npm
Malicious code in lilys-builder (npm)
1.0.0No safe version. Remove it.What it does
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.
No fix · Remove and contain
npm uninstall lilys-builderSources