CRITICAL npm Malware

Malicious code in global-error-handling (npm)

MAL-2026-20625 · GHSA-5797-99pf-537x

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

global-error-handling 1.0.0 and 1.1.0 have no functional code; their description is "security testiong only". Each has a postinstall script that runs node index.js on npm install, which POSTs a JSON beacon (event: "authorized-poc-test", a random test id, status: "executed") to https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50 (1.0.0) or https://webhook.site/b4ea4473-01d9-4763-9e39-3b02063219d5 (1.1.0), telling the collector the package was installed and from which network. It was published by the npm account djdhhdjdjf7777, which published the same beacon as bundle-entry-points, use-sync-external-store-shim and paystation-embed-app.


__

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.

Source: ghsa-malware (31d259dc6ec1bcd1c5ecca52ceacb7e31f64a35b3f53fd945a04a4e58b7cdaf6)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Ready to move

Start Securing

Free, no credit card | First findings in minutes