cvelo
P2 · HighMalware

Malicious code in cs-core-api-phoenix (npm)

  • MAL-2026-18686

Description

cs-core-api-phoenix 5.1.0 is a dependency-confusion package: its postinstall script reads the OS user name and hostname and POSTs them to https://nathanaccacio.com/collect on every install. It targets an internal-looking name and collects data from whoever installs it, without consent. On `npm install`, the package's postinstall hook executes `node index.js`, which reads `os.userInfo().username` and `os.hostname()` and POSTs them (together with a package identifier) to the hardcoded third-party endpoint `https://nathanaccacio.com/collect` via `https.request`. The package name resembles a core API client, but no advertised functionality explains collecting installer identity at install time, and the destination is not caller-configurable. The behavior fires automatically on default install, discloses the installer's user and host identity to a non-first-party domain, and provides reconnaissance value to the operator of that endpoint.

Text from the OSV record.

Recommendation

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

Affected

  • cs-core-api-phoenixnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.