Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in metrics-pipeline-d8k2 (npm)

metrics-pipeline-d8k2

Risk score

92

AI summary

Indexed incident for metrics-pipeline-d8k2 (npm).

Description

Package declares "postinstall": "node run.js" in package.json, causing automatic execution of bundled beacon scripts on npm install. beacon29.js loads child_process, https, and fs, reads files via fs.readFileSync and reads process.env, gathers host identity (process.platform), and POSTs/GETs the data to remote endpoints; it also references https://registry.npmjs.org and https://npm.pkg.github.com, consistent with credential/token harvesting and potential self-propagation through registry APIs. beacon_linux.js mirrors the pattern on Linux: require('child_process') + require('http') + os.hostname() + os.platform() followed by http.request(...) POST to a remote host. The package's stated 'metrics pipeline' name is a cover; the only behavior on install is host fingerprinting and outbound exfiltration. Installing this package on a developer or CI machine causes immediate compromise: environment variables (which commonly hold cloud and CI tokens), file contents, and host identifiers are sent to attacker-controlled infrastructure without user interaction.

Technical details

Affected versions

=1.0.3=1.0.0=1.0.4=1.0.5=1.0.2=1.0.1

Indicators

  • affected version=1.0.375%
  • affected version=1.0.075%
  • affected version=1.0.475%
  • affected version=1.0.575%
  • affected version=1.0.275%
  • affected version=1.0.175%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents