{"id":"MAL-2026-10445","revision":"1b519c382da8483a91cdada92b5c2481","records":[{"revision":"1b519c382da8483a91cdada92b5c2481","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10445","aliases":[],"title":"Malicious code in node-procmetrics (npm)","description":"node-procmetrics is a malicious npm package. It is a throwaway, zero-download, no-repository package using a \"process-metrics\" decoy name, published by the disposable account foqumayum17@gmail.com (package first published 2026-07-13). Every published version (1.0.0 through 1.0.6) ships a malicious install script (install.js, executed automatically at `npm install` time) that:\n\n1. Reads the entire process environment via a bulk `...process.env` spread (whole-environment scoop);\n2. Exfiltrates it to a hardcoded bare public-IP command-and-control endpoint, `http://152.53.120.90/cmd/commands`;\n3. Imports `child_process`, `http`/`https`, and `fs`, colocating process-spawn (dropper) and filesystem-write (persistence) capability with the network send in the same install-time file.\n\nStatic analysis flags the full install-time credential-exfiltration combination inside install.js: credential/secret access + network send; whole-environment scoop + network send; network + process spawn (classic download-and-execute dropper); network + filesystem write (classic persistence). A hex-encoded/obfuscated payload string is also present in install.js.\n\nCampaign: the same command-and-control IP 152.53.120.90 (endpoint path family /cmd) also appears in the install script of the sibling malicious package node-sysmetrics, published two days earlier by a different throwaway account (derepkoe@gmail.com). The shared C2 infrastructure, the shared \"node-*metrics\" decoy naming, and the identical install-time payload pattern under rotating disposable npm publisher accounts indicate a single actor running a coordinated campaign.\n\nIndicators of compromise:\n- Command-and-control: http://152.53.120.90/cmd/commands (bare public IP, RIPE/European hosting)\n- Malicious versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6 (all published versions)\n- Publisher account: foqumayum17@gmail.com\n- Related package sharing the same C2: node-sysmetrics (publisher derepkoe@gmail.com)\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e41a88d3fab17af2429cc051cce026d47622123ce4005d3fbdda844dfca2783a)\ninstall.js executes automatically via the package.json postinstall hook. It XOR-decodes (key 0x5A) a hardcoded npm registry auth token and writes it into the installer's global npm config at //registry.npmjs.org/:_authToken, replacing the installer's own npm authentication with an attacker-controlled identity. It then polls registry.npmjs.org for this package's dist-tags, base64-decodes the 'cmd' field, and executes the resulting string via spawnSync('bash', ['-c', cmd],...) in an infinite loop, giving the publisher arbitrary shell execution on any machine that installs the package. The output and exit code of each executed command are base64-encoded, placed into a synthesized package.json description field under /tmp/pm-pkg, and pushed back to the public npm registry via 'npm publish --access public' using the hijacked token, using the registry itself as the exfiltration channel. For persistence, install.js copies itself to /tmp/.pm-agent.js and spawns a detached, unref'd Node process pointing at that file, so the polling loop survives past the npm install invocation. The combination of covert channel via dist-tags, XOR-obfuscated embedded credential, credential replacement in the installer's npm config, and detached persistent process is unambiguous backdoor behavior at install time.\n","state":0,"publishedAt":"2026-07-13T13:59:48+00:00","modifiedAt":"2026-07-29T03:06:22.8419848+00:00","affected":[{"ecosystem":"npm","name":"node-procmetrics","ranges":[],"versions":["1.0.7","1.0.1","1.0.5","1.0.9","1.0.4","1.0.8","1.0.6","1.0.3","1.0.2","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/node-procmetrics/v/1.0.7","https://www.npmjs.com/package/node-procmetrics/v/1.0.1","https://www.npmjs.com/package/node-procmetrics/v/1.0.5","https://www.npmjs.com/package/node-procmetrics/v/1.0.9","https://www.npmjs.com/package/node-procmetrics/v/1.0.4","https://www.npmjs.com/package/node-procmetrics/v/1.0.8","https://www.npmjs.com/package/node-procmetrics/v/1.0.6","https://www.npmjs.com/package/node-procmetrics/v/1.0.3","https://www.npmjs.com/package/node-procmetrics/v/1.0.2","https://www.npmjs.com/package/node-procmetrics/v/1.0.0","https://www.npmjs.com/package/node-procmetrics"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10445","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10445","identifiers":["MAL-2026-10445"]},"retained":false,"historicalAffected":[]}],"coverage":[]}