npm · Malicious package advisory
Malwareevent-hunter
GHSA-wwrq-gcqx-rx6p
Malicious code in event-hunter (npm)
Details
**Severity:** Critical **Affected versions:** `= 1.0.0` ## Source: amazon-inspector (f94b74862f327effaa43c1d01c4fd769626f73214d0706b80fef8b8a395cc3e8) On `npm install`, the declared postinstall hook runs `node index.js`, which reads `os.hostname()` and a timestamp, base64-encodes the JSON payload, and issues an HTTPS GET to `https://estimator-nemeses-unwatched.ngrok-free.dev/canary?d=<base64>`. The destination is a hardcoded ngrok tunnel unrelated to any registry or vendor infrastructure, and the beacon fires automatically without any caller action or opt-in. The package's own metadata describes it as a `Dependency Confusion to RCE` proof-of-concept, and the install-time callback carries the installer's internal hostname to an external third party. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4ff50359dc7f9c5ce6f1dae607fd8c96dfc8b5d2/osv/malicious/npm/event-hunter/MAL-2026-16478.json)) **References:** - https://github.com/ossf/malicious-packages/blob/4ff50359dc7f9c5ce6f1dae607fd8c96dfc8b5d2/osv/malicious/npm/event-hunter/MAL-2026-16478.json - https://www.npmjs.com/package/event-hunter/v/1.0.0 - https://github.com/advisories/GHSA-wwrq-gcqx-rx6p
Compromised versions (1)
- = 1.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.