@public-for-cdao/core@99.99.99
Malicious code in @public-for-cdao/core (npm)
Analysis
This package is a dependency-confusion attack. It publishes a public scoped name with a synthetic high version number (99.99.99) so that a package manager prefers it over the intended internal package of a similar name. Its package.json registers a postinstall lifecycle hook that runs a bundled recon script as soon as the package is installed. The script performs broad secret reconnaissance: it collects host details (hostname, platform, architecture, username, working directory); reads a large list of CI/CD and cloud secret environment variables including registry/deploy credentials, source-control access tokens, SSH private keys, AWS access keys and session tokens, database and Redis connection strings/passwords, crypto private keys/mnemonics/seed phrases, RPC and node-provider API keys, and container/registry/messaging tokens; scans for and reads .env files in many common locations (application directories, CI runner home, /root), extracting lines that look like keys, secrets, tokens, passwords, or mnemonics; and enumerates CI build directories. It then exfiltrates the harvested data as JSON over HTTPS to two external collection endpoints (a webhook[.]site URL and a pipedream endpoint), disabling TLS certificate validation, and also writes a copy of the stolen data to a temp file. The companion index.js module is an inert stub used only to make the package look legitimate.
- analyzed by
- Leitwacht
- first seen
- Jun 17, 2026, 04:12 AM
- analyzed
- Jun 17, 2026, 04:23 AM
Related advisories
- @public-for-cdao/providers@1.0.1
- @public-for-cdao/api@99.99.99
- @public-for-cdao/signer@99.99.99
- @public-for-cdao/abi@99.99.99
- cryptodao-sdk@99.99.99
- @mastra/node-speaker@0.1.1
- harpoon-package@1.1.0
- backoffice-charges-module@1.999.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.