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

harthat-cookienpm

Advisory published Updated

harthat-cookie is a confirmed malicious npm package (MAL-2024-9651) that executes malicious code on install (malicious versions 2.5.9, 3.1.8, 3.4.7). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in harthat-cookie (npm)

MAL-2024-9651
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall harthat-cookie

Malicious versions

3 flagged
2.5.93.1.83.4.7

Indicators of compromise (SHA-256)

b7bac94176481ff3f0544221bdbadcc1219ded765c15c6aa3fddf194ebeda476
62729ab949e4cc2395cd2f82f283a06b745880f5a48a231199e292d87768043c

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for harthat-cookie (3 malicious versions).

  2. If you installed it — respond

    Remove harthat-cookie 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 harthat-cookie 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. harthat-cookie on npm has been identified as a malicious package (versions 2.5.9, 3.1.8, 3.4.7 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

RLMA-2024-06677RLUA-2026-14684

References

Credits

  • ReversingLabs · finder

Detect & block this

O3 blocks harthat-cookie-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

harthat-cookie (npm) malicious package — MAL-2024-9651 | O3 Security