{"id":"MAL-2026-21080","summary":"Malicious code in lilys-builder (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (90132a18a5e7b6d8d79baef169899da7ed0cd498cec48ce7b843addfbf2d2390)\npackage.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.\n","modified":"2026-12-03T20:45:08.816129971Z","published":"2026-12-03T20:39:39Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-12-03T20:41:50.651406010Z","modified_time":"2026-12-03T20:39:39Z","sha256":"90132a18a5e7b6d8d79baef169899da7ed0cd498cec48ce7b843addfbf2d2390","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-023227"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/lilys-builder/v/1.0.0"}],"affected":[{"package":{"name":"lilys-builder","ecosystem":"npm","purl":"pkg:npm/lilys-builder"},"versions":["1.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"2556caae41137f51f50b95e880665e644b0e0ac7e8d097997b7ce0fa8d9edfed183022","path":"lib/index.js","sha256":"59cdece50f9e37c7e88bd64374e4e1be739c97c845516db3dfac5312dd184271"},{"sha256":"8a2324cba4089752e871d9e212e0b0be16596123058b5e273348be94d07f1b6a","tlsh":"dfe0126231e2f2ac586854d6d25243eb4795a5d03b069491fe4dc72c91d3100c6ef671","path":"lib/index.mjs"},{"path":"script/MessageBuilder.js","sha256":"1dd2839658f2821bc6d6d920a1a7c2b19bac65fe4030d0054b3800b4866fa3d5","tlsh":"02834e49a9f61c16426370392eeba406b434c00b2d09fd187fcc42ec5f9e56e96fa79d"}],"package_integrity":[{"filename":"lilys-builder-1.0.0.tgz","hashes":{"sha1":"1aad2cc814d16b4f545002cddbeb57ff61f987d4","sha512_sri":"sha512-LBIGLZohV0RapyaDqRPAXBZWU40JupcxJK8tLgpAWF1BVRh3WHaI0yAVJ9HvNNU7d3ql7IHX8kouP9tO2ePEVQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/lilys-builder/MAL-2026-21080.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}