MAL-2026-4508 Malicious code in cdk-insights (npm)
Malicious package
Published
MAL-2026-4508 is a malicious package: cdk-insights (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-4508/ (Markdown: https://insights.sbomify.com/MAL-2026-4508/index.md)
- Package
- cdk-insights
- Registry
- npm
What is MAL-2026-4508?
MAL-2026-4508 is a malicious package in cdk-insights, published on 22 May 2026.
Official description
The package contains code in dist/entry.js and dist/index.js that invokes
npm publish programmatically combined with writeFileSync operations — the canonical wormable auto-publication pattern (enumerate maintainer's other packages, rewrite their package.json, republish under the installer's npm credentials). Additionally, dist/aspects/CdkInsightsAspect.js, dist/entry.js, and dist/index.js contain multiple HTTP POST sinks consistent with hardcoded C2 / data-exfiltration endpoints, and CdkInsightsAspect.js contains ping-based network reconnaissance. The combination of wormable self-propagation infrastructure plus exfiltration POST endpoints in install/import-reachable code is unambiguous supply-chain attack shape: any developer or CI system installing this package risks (a) having installer-side data POSTed to attacker-controlled endpoints and (b) having their npm credentials abused to republish malicious versions of their other packages.What should I do about MAL-2026-4508?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.