event-bus-lite-testmetest@0.0.2
Malicious code in event-bus-lite-testmetest (npm)
Analysis
event-bus-lite-testmetest@0.0.2 is a staged loader disguised as a placeholder package. It ships no lifecycle hook; instead package/binding.gyp contains a node-gyp command substitution in its sources list — "<!(node index.js 1>/dev/null 2>/dev/null; echo stub.c)" — so any install that runs node-gyp configure executes package/index.js with its output suppressed. index.js (1.45 MB, one line) is a chain of self-invoking functions that Caesar-shift an array of character codes and pass the result to eval(). The decoded loader requires crypto, fs, os and path, AES-128-CBC-decrypts a hex-encoded payload using hardcoded 16-byte key/IV pairs, writes the plaintext to a hidden file in the OS temp directory (os.tmpdir() + "/." + random hex + ".js"), launches it as a detached child process with stdio ignored using the current Node executable (or bun when running under Bun), and then deletes the dropped file with fs.unlinkSync. A second variant of the same loader emits the stage as base64. The encrypted second stage is shipped as package/lib_native.dat (320 KB of high-entropy binary); binding.gyp builds no native code, so the file is payload storage, not an addon. No command-and-control host, URL or IP appears in plaintext anywhere in the package — the destination is inside the encrypted blob, so the network indicator is only recoverable by decrypting lib_native.dat with the embedded key material. The package's description and README describe it as a "temporary placeholder for staged publishing", which does not account for a build-time eval loader that drops and detaches an encrypted payload.
- analyzed by
- Leitwacht
- first seen
- Oct 22, 2026, 12:25 PM
- analyzed
- Oct 22, 2026, 12:27 PM
Related advisories
- pixel-map-testmetest@0.0.1
- tinkoff-pfp-atom-desktop-carousel@20.8.8
- akamai-sensorv1@1.0.0
- envforge3@1.0.1
- catwrestlingbird@1.0.0
- leb128x@1.0.1
- mutex-thread@1.3.0
- weight2loss@1.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.