lilys-buildernpm
Advisory published Updated
lilys-builder is a confirmed malicious npm package (MAL-2026-21080) that executes malicious code on install (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in lilys-builder (npm)
What this malware 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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for lilys-builder (version 1.0.0).
If you installed it — respond
Remove lilys-builder from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If lilys-builder was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks lilys-builder-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.