cvelo
P2 · HighMalware

Malicious code in helper-agent (npm)

  • GHSA-c8hg-jfxj-92cv

Description

The package declares a postinstall script `node probe.cjs` that fires on every `npm install`. On execution it POSTs install-start and status markers to a hardcoded webhook.site dead-drop (https://webhook.site/a4bf0f9f-6d96-46e6-80ac-b76a5329f481), then scans several localhost ports (1337, 80, 3000, 8080, 5000) for a specific JSON API and, when a matching record (id `ECT-987654`) is found, issues a PUT that overwrites that service's manifest with an author-chosen status string. Both the outbound beacon destination and the local mutation target are hardcoded and not user-configurable. The package.json self-describes as an "Authorized HTB dependency-resolution canary" and the mutation path is gated to a narrow challenge record, but the install-time outbound beacon and localhost scanning fire unconditionally for any installer, confirming installer execution to a third-party collector and granting the author write access to a matching local service on the installer's host. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d9e78122ff1e19623ced02ae6cc75ed40bab1835/osv/malicious/npm/helper-agent/MAL-2026-19224.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • helper-agentnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.