cvelo
P2 · HighMalware

Malicious code in @public-for-cdao/providers (npm)

  • GHSA-878x-ph8x-7cx2

Description

Malicious package. A postinstall hook runs `node recon.js`, which shells out to read the last 100 lines of `~/.bash_history` and `~/.zsh_history`, `~/.gitconfig`, `~/.npmrc` and the first line of `~/.ssh/id_rsa`, and sends the results to a hardcoded endpoint, `https://cdao-c2.aduljune.workers.dev/c2/exfil`. Observed in a sandboxed install (file reads, the shell commands and the connection to cdao-c2.aduljune.workers.dev). Same dependency-confusion credential-theft campaign as other packages in the `@public-for-cdao` scope already in OSV, with a different exfiltration endpoint. The package has been removed from npm. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/c12c2501196fb99e4c30b2533ea0ab512c576d14/osv/malicious/npm/@public-for-cdao/providers/MAL-2026-20045.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

  • @public-for-cdao/providersnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.