MAL-2026-3752 Malicious code in cdp-core (npm)
Malicious package
Published
MAL-2026-3752 is a malicious package: cdp-core (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-3752/ (Markdown: https://insights.sbomify.com/MAL-2026-3752/index.md)
- Package
- cdp-core
- Registry
- npm
What is MAL-2026-3752?
MAL-2026-3752 is a malicious package in cdp-core, published on 15 May 2026.
Official description
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.
What should I do about MAL-2026-3752?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.