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

cdk-insightsnpm

cdk-insights is a confirmed malicious npm package (MAL-2026-4508) that steals credentials and exfiltrates sensitive data (malicious versions 1.41.2, 1.42.3, 1.58.1…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in cdk-insights (npm)

MAL-2026-4508
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall cdk-insights

What this malware does

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.

Malicious versions

9 flagged
1.41.21.42.31.58.11.59.11.59.21.59.31.60.01.60.11.61.0

Indicators of compromise (SHA-256)

fa41acb776dbedfe93c37899783a5e54b78017ac31576c798a27eae6b9e9ec89
c881a135de8104d4fb3610e23f98105d97692a8c20b0cad8fb4a45c3d2052e46
3fb8a2596514db602ed5af1cac685860d88c6c3448c25948c09f0f4b97898b6e
5730037847698ac25c003e2d24da69fd5ce0beb152e533893c88bd412b449cb7
67e86d39ceb7e95b87534fab89130689e1a42af6e9cff001b0a7531290d0903d
c467b32fdf460bd9e202e144cd9b24a3102eda19b31b5bfb6fdd1d6d111a660f
c8f0c46cdceec9c6b8fc25872476957e07206a18a14fd6e11716cfb2971809e7
f9db10400f950d9a0be522d74238a65a57bd1655b09cc5f1ca6cfaac49c2e421
27fad94be236f6496d94f6bdbbfe141acec977e9d2ede163be9c95a41c294803

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 cdk-insights (9 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging cdk-insights across your stack and pipelines.

  2. If you installed it — respond

    cdk-insights 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 cdk-insights 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 cdk-insights 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. cdk-insights on npm has been identified as a malicious package (versions 1.41.2, 1.42.3, 1.58.1, 1.59.1, 1.59.2, 1.59.3, 1.60.0, 1.60.1, and 1 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-004226IN-MAL-2026-005797IN-MAL-2026-015855IN-MAL-2026-015856IN-MAL-2026-015850IN-MAL-2026-015852IN-MAL-2026-015854IN-MAL-2026-015853IN-MAL-2026-015851

References

Credits

  • Amazon Inspector · finder

Detect & block this

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

Explore

cdk-insights (npm) malicious package — MAL-2026-4508 | O3 Security