NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

cw-mock-apinpm

Advisory published Updated

cw-mock-api is a confirmed malicious npm package (MAL-2024-2051) that executes malicious code on install (malicious version 1.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in cw-mock-api (npm)

MAL-2024-2051
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall cw-mock-api

Malicious versions

1 flagged
1.0.2

Indicators of compromise (SHA-256)

98a33849023e40caf72fe924ea77f2faaa5fed7de913baf7a4e874c16e9a5bf4
58284694f260a64c90f891d9e3bc26c92005ddff92ab930f92f5ed3004d4acdc
011d2d748b226b0f9d0c723546978b8840dc6eb2e8a9b834ebf9d502a6569db8

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for cw-mock-api (version 1.0.2).

  2. If you installed it — respond

    Remove cw-mock-api from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If cw-mock-api was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. cw-mock-api on npm has been identified as a malicious package (version 1.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

RLMA-2024-00667RLUA-2024-06378RLUA-2026-14114

References

Credits

  • ReversingLabs · finder

Detect & block this

O3 blocks cw-mock-api-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

cw-mock-api (npm) malicious package — MAL-2024-2051 | O3 Security