CRITICAL npm Malware

Malicious code in global-error-handling (npm)

MAL-2026-20625

Published · Modified

Dependency scanning

Check whether global-error-handling is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (d849db4ee159bcf193d6c33967a3ad197579ed55cdceb7efb78cc676fb68ae35)

package.json declares a postinstall script that executes index.js on npm install. index.js reads os.hostname() and process.cwd() and POSTs them, along with a generated test identifier, to a hardcoded https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50 collector. webhook.site is a public third-party request-capture service that is commonly used as an install-time beacon sink. The behavior fires automatically on default install, is directed at a third-party endpoint unrelated to any declared publisher infrastructure, and discloses the installer's machine hostname and current working directory to whoever controls the webhook.site token. Self-descriptive strings in the payload (event: "authorized-poc-test") are author-controlled and do not change the behavior: the shipped code performs unsolicited outbound exfiltration of host identifiers on every install.

Ready to move

Start Securing

Free, no credit card | First findings in minutes