cvelo
P2 · HighMalware

Malicious code in event-bus-lite-testmetest (npm)

  • MAL-2026-18292

Description

The package presents itself as a placeholder event-bus library but ships a complete install-time dropper chain. binding.gyp declares a target with no C/C++ sources and uses GYP command-expansion (`<!(node index.js...)`) to execute the package's own index.js during the implicit node-gyp rebuild that npm runs when a binding.gyp is present — no lifecycle script is declared, but execution still fires on `npm install`. index.js is wrapped in a Caesar-shifted (k=1) string passed to eval; the decoded code imports node:crypto, AES-128-GCM-decrypts a hardcoded ciphertext using key/IV/AAD values embedded in the source, brotli-decompresses the shipped lib_native.dat (320KB of high-entropy opaque bytes with no printable strings), writes the result into a mkdtempSync('.b-') temp directory, and dispatches it through the Bun runtime (declared as a `^1.2.18` dependency) via Bun.spawn or spawn of the bun executable with `run <tempfile>`. The binding.gyp vector, Caesar-over-AES-over-brotli multi-layer obfuscation of the loader, encrypted sibling payload whose behavior cannot be inspected from shipped source, and alternate-runtime dispatch through Bun to evade Node-based tooling are the complete install-time-RCE fingerprint. The README's placeholder framing contradicts the shipped executable payload.

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

  • event-bus-lite-testmetestnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.