modelbufs@1.0.1
Malicious code in modelbufs (npm)
Analysis
Package modelbufs@1.0.1 runs a postinstall hook (package.json: "postinstall": "node canary.cjs") that fingerprints the installing host and posts the result over HTTPS to a webhook[.]site receiver (hxxps://webhook[.]site/65716794-d7d2-401f-9f6e-2e65ec5a777c/modelbufs-install/c1a1eb3d99b473003d8c9f8f54adcfdc). Before sending, canary.cjs walks up to 16 ancestor directories looking for a package.json whose name is @abstraction/app, private is true, repository.url is git+hxxps://github[.]com/abstraction-dev/src[.]git, repository.directory is app, and dependencies.modelbufs is "*"; if no such manifest is found it exits silently, so the payload only fires inside the targeted private project. The report includes the matched manifest path/name/version, the target's git HEAD commit (obtained by spawning git rev-parse), hostname, username, uid/gid/euid/egid, platform/arch/OS type and release, all non-internal network interface addresses, Node version/process.versions/execPath, pid/ppid, npm command, npm_config_workspace, INIT_CWD, current working directory, the values of a fixed allowlist of CI variables (CI, GITHUB_REPOSITORY/RUN_ID/RUN_ATTEMPT/WORKFLOW/JOB/SHA/REF/WORKSPACE, RUNNER_NAME/OS/ARCH/ENVIRONMENT, GITLAB_CI, CI_PROJECT_PATH/PIPELINE_ID/JOB_ID/COMMIT_SHA/RUNNER_ID, BUILD_ID/NUMBER/TAG, K_SERVICE/K_REVISION/K_CONFIGURATION, GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT/PROJECT_ID/CLOUD_BUILD_BUILD_ID, COMMIT_SHA/REVISION_ID/BRANCH_NAME/REPO_NAME/SHORT_SHA), and whether specific credential-bearing variables are set (NODE_AUTH_TOKEN, NPM_TOKEN, GITHUB_TOKEN, GH_TOKEN, GOOGLE_APPLICATION_CREDENTIALS, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN) - only their presence is reported; the hook does not read their values or read any credential file. The JSON body is AES-256-GCM encrypted with a random per-run key wrapped via RSA-OAEP (sha256) to the bundled receiver-public.pem, and the run is gated by an embedded expiry of 2026-12-03T09:49:00Z. The package also ships a DISCLOSURE file describing it as an authorized dependency-confusion canary for Abstraction, but the network callback, ancestor-manifest targeting, git commit, host inventory and CI/credential-variable enumeration all execute on install in the targeted project.
- analyzed by
- Leitwacht
- first seen
- Nov 26, 2026, 04:06 PM
- analyzed
- Nov 26, 2026, 04:07 PM
Related advisories
- @wppconnect/server@2.10.82
- array-sort-helper@1.0.0
- text-line-parser@1.0.0
- date-sanitize-helper@1.0.0
- basic-vite@1.0.0
- simplisafe-gatsby@1.0.1
- tajul-avengers-cli@1.4.1
- vant@4.9.14
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.