Skip to main content
Menu
Advisories

Malicious code in catplatebarcodeparser (npm)

GHSA-7H34-V43H-45GCPublished Updated GitHubMalware

Description

Source: amazon-inspector (189a06b0d55d6dab795bcb9ba3a97aa855b2556a54e85e15adc9f5bf20399976)

catplatebarcodeparser@99.2.1 declares preinstall and postinstall lifecycle scripts that execute scripts/run.js on npm install. That script reads os.userInfo().username and os.hostname() and POSTs them to a hardcoded out-of-band collector at webhook.site/40e9b065-efd7-43a5-916f-3d52281f42b6, and additionally issues a DNS lookup against 40e9b065-efd7-43a5-916f-3d52281f42b6.dnshook.site as a canary. The version number (99.2.1) and package name pattern are consistent with a dependency-confusion lure intended to win resolution against an internal package of the same name; installing the lure automatically leaks installer identity to an author-controlled endpoint.

---

Credit: OpenSSF (source)

Affected versions

References