Supply-chain threat intelligence

Incident detail

criticalnpm·malware·osv

Malicious code in px8my (npm)

px8my

Risk score

92

AI summary

Indexed incident for px8my (npm).

Description

The package's main entry (px.js) is a browser-only script that creates a full-viewport iframe pointing at the hardcoded external URL https://mfmz.ywdyxn.cn/H.html?c=0gjr and appends it to document.body, hijacking any web page that loads this script via a CDN such as jsDelivr. The package ships no legitimate library API and would throw if require()'d in Node. The tarball also includes update_px8my.sh, an operator/rotation script that regex-replaces the redirect domain inside px.js, auto-bumps the patch version, runs npm publish, and then hits https://purge.jsdelivr.net/npm/px8my/px.js to force-refresh the CDN cache; a comment in that script notes that curl is blocked by the npm anti-abuse tool tirith. The combination — a hardcoded redirect payload plus a shipped domain-rotation/CDN-purge automation with an explicit anti-abuse-evasion note — establishes the package as a purpose-built malicious distribution vehicle abusing npm and jsDelivr to deliver browser redirects to end users of any site including this script.

Technical details

Affected versions

=1.0.32=1.0.23=1.0.13=1.0.35=1.0.22=1.0.36

Indicators

  • affected version=1.0.3275%
  • affected version=1.0.2375%
  • affected version=1.0.1375%
  • affected version=1.0.3575%
  • affected version=1.0.2275%
  • affected version=1.0.3675%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents