modelbufsnpm
Advisory published Updated
modelbufs is a confirmed malicious npm package (MAL-2026-20672) that steals credentials and exfiltrates sensitive data (malicious version 1.0.1). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in modelbufs (npm)
What this malware does
[email protected] declares a postinstall hook running node canary.cjs. That script collects installer-side identifiers — hostname, OS/release, username and uid/gid/euid, non-internal network interface addresses, process and runtime details, cwd/INIT_CWD, the git HEAD commit of the surrounding repository, roughly 35 CI/cloud environment variables, and a list of which credential-grade variables are present (NPM_TOKEN, GITHUB_TOKEN, AWS_*) — encrypts the payload with a bundled RSA public key, and POSTs it to the hardcoded anonymous collector https://webhook.site/65716794-d7d2-401f-9f6e-2e65ec5a777c/modelbufs-install/. Transmission is gated: canary.cjs walks up to 16 parent directories from INIT_CWD/cwd looking for a package.json matching a specific private project (name @abstraction/app, private: true, repository git+https://github.com/abstraction-dev/src.git, with dependencies.modelbufs === "*") and only sends when that manifest is found, which both narrows the target to one organization's build systems and hides the behavior from general inspection. index.cjs is an empty stub, so the package provides no advertised functionality — the lifecycle hook and its reconnaissance payload are its only effect. Payload encryption and an embedded expiry timestamp make the transmitted contents opaque to the installer.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for modelbufs (version 1.0.1).
If you installed it — respond
modelbufs is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If modelbufs 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 modelbufs-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.