Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

cdp-corenpm

Malicious code in cdp-core (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-3752
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall cdp-core

What this malware does

The package ships cdp_inject.js, which combines child_process, fs, http/https, and base64 encoding to gather system information and exfiltrate it over the network. The file imports http, https, fs, and child_process at the top, reads process.env.USER and other environment data, executes shell utilities (including ping for host reconnaissance), reads files via fs.readFileSync, base64-encodes the collected content (toString('base64') at L205 and L209), and posts it out via https.request/http.get with a hardcoded hostname and POST body. This is the canonical sysinfo+filesystem credential-stealer shape: the package's only on-load effect is to harvest installer-side data and ship it to a network destination. The package name ("cdp-core") and absence of any legitimate library functionality consistent with this code further indicate the file's purpose is exfiltration rather than a documented feature.

Malicious versions

2 flagged
1.0.41.0.6

Indicators of compromise (SHA-256)

c7363417d8658ee8f5fe919dca59c63eedf84d4b9b1023dffad3e9e7bf8e45f0
dbf55b093e3a93e8d3f536101e62e09cf7e86636cd42813d02f518138cbcb8ed

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for cdp-core (2 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging cdp-core across your stack and pipelines.

  2. If you installed it — respond

    cdp-core is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If cdp-core was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks cdp-core before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. cdp-core on npm has been identified as a malicious package (versions 1.0.4, 1.0.6 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-002809IN-MAL-2026-002812

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks cdp-core-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

cdp-core (npm) malicious package — MAL-2026-3752 | O3 Security