Malicious code in testtestkjkldfnjdfn (npm)
- MAL-2026-18697
Description
testtestkjkldfnjdfn ships nebula.js, byte-identical to the nebulajs-api payload, and a preinstall.cjs that is a single opaque Function(...) call decoding XOR-encrypted code at install time. It is a new name for the nebulajs-api (MAL-2026-17220) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing. package.json declares `preinstall: node preinstall.cjs`, which runs automatically on `npm install`. preinstall.cjs is a single ~311 KB line consisting of a `Function(...)` constructor over a heavily obfuscated program: a seeded PRNG/XOR string decoder (`fJyK0L`) operating on a packed alphabet string (`jVDbNW`), a numeric opcode table (`wKc07cB`), and a control-flow-flattened dispatcher. All strings, destinations, filesystem paths, and command invocations are reconstructed only at execution time, so the actual behavior is not visible in source. The package's shipped `main` is an unrelated thin AI-client stub, making the preinstall loader the substantive payload of the package. The combination of a lifecycle-hook `Function()` loader over a 311 KB opaque, control-flow-flattened blob has no benign explanation — ordinary native-build and license-check tooling ships readable source — and gives whoever published the package arbitrary code execution on every installer's machine at install time.
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
testtestkjkldfnjdfnnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.