cvelo
P2 · HighMalware

Malicious code in modelbufs (npm)

  • GHSA-wxh3-rq8v-wpqr

Description

Show the whole description

modelbufs@1.0.1 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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/662bd1e238d14288a1a2f646520cee13cc1561c8/osv/malicious/npm/modelbufs/MAL-2026-20672.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • modelbufsnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.