Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in fmt-helpers-794b (npm)

fmt-helpers-794b

Risk score

92

AI summary

Indexed incident for fmt-helpers-794b (npm).

Description

Package declares a postinstall lifecycle hook ("postinstall": "node run.js" in package.json) that runs run.js automatically on npm install. run.js imports os, fs, http, https, and child_process and reads host identification fields (os.hostname(), os.platform()), performs filesystem reads (fs.readFileSync, fs.existsSync), and issues multiple outbound POST calls (run.js lines 131, 134, 345, 352). The combination of automatic install-time execution, host/filesystem reconnaissance, and outbound HTTP POSTs is the canonical install-time exfiltration shape with no legitimate library purpose presented in the package. Installing this package causes immediate execution of code that collects installer host data and ships it off-host.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Technical details

Affected versions

=1.0.0>=0

Indicators

  • Advisory IDs
    90%
  • affected version=1.0.075%
  • affected version>=075%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents