Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in prism-registry (npm)

The npm package prism-registry contained malicious code that executed automatically on installation, collecting system information and sensitive files before exfiltrating them to an attacker-controlled domain.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or system that installed the malicious prism-registry package via npm.
Ecosystems
Attack vectors
Affected entities
  • prism-registrynpm package containing malicious preinstall script

The npm package prism-registry was found to contain malicious code in its preinstall script. The package declares preinstall: \"node index.js\", which executes automatically when the package is installed via npm install.\n\nThe index.js script collects sensitive host identifiers including the system hostname, user information, home directory path, DNS servers, installation directory, and package.json contents. It also reads local system files /etc/passwd and /etc/hosts.\n\nThe collected data is aggregated into JSON and sent via HTTPS POST to a hardcoded Burp Collaborator subdomain (zjmjb1b5mnwtdcmzrsq6uj4bj2ptdj18.oastify.com), indicating attacker-controlled infrastructure for data exfiltration. The package contains no legitimate functionality beyond this reconnaissance and data theft behavior.\n\nThe incident was identified and credited to the OpenSSF malicious-packages project.", <parameter name="remediation">["Immediately uninstall prism-registry from all systems: npm uninstall prism-registry", "Audit npm install logs and package-lock.json to identify when and where the package was installed", "Assume compromise of any system that installed this package; review system logs for suspicious outbound HTTPS connections to oastify.com", "Rotate credentials and SSH keys on affected systems", "Monitor for unauthorized access using the exfiltrated system information (hostname, usernames, etc.)", "Review npm audit logs and consider implementing package allow-lists to prevent installation of unknown packages"]

Indicators of compromise

Packages
  • prism-registry
Domains
  • zjmjb1b5mnwtdcmzrsq6uj4bj2ptdj18.oastify.com

Remediation

  • Review the linked advisory; remove or upgrade the affected component and rotate any exposed credentials.

Sources

  1. GitHub Advisory GHSA-phwg-2vrp-8wmc · GitHub Advisory Database

Cite this entry

"Malicious code in prism-registry (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-prism-registry-npm-1ssy9d

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedcritical

    Malicious code in 3-buildsight-web (npm)

    The npm package 3-buildsight-web contains malicious code that fetches and executes arbitrary JavaScript from a remote Bitbucket URL on module load, granting full page privileges to an unverified third party.

    npmCompromised package
  2. resolvedcritical

    Malicious code in @usaa-grp-personal-profile/personal-profile-common (npm)

    Malicious package @usaa-grp-personal-profile/personal-profile-common version 999.0.0 published to public npm as a dependency-confusion attack targeting an organization's internal registry. The package contains preinstall and postinstall hooks that exfiltrate hostname, username, and working directory to an attacker-controlled OAST endpoint on every install.

    npmDependency confusionCompromised package
  3. resolvedcritical

    Malicious code in create-coin (npm)

    create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.

    npmCompromised packageTyposquatting
  4. resolvedcritical

    Malicious code in @syncraft-labs/vue (npm)

    The npm package @syncraft-labs/vue version 0.4.1 contained malicious obfuscated code in its ESM build that implements a blockchain-hosted C2 dropper (EtherHiding pattern), enabling remote code execution on any consumer importing the package.

    npmCompromised package