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

date-fns-litenpm

Malicious code in date-fns-lite (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-6722
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall date-fns-lite

What this malware does

[email protected] presents as a lightweight date-formatting utility but ships a malicious postinstall.js that runs automatically on npm install. The script harvests installer-side secrets — AWS credentials (~/.aws), GCP application-default credentials, Azure tokens, kubeconfig, SSH private keys and authorized_keys, /etc/shadow, and shell history — using /proc/1/root traversal to reach the host filesystem from inside a container. It also queries the AWS IMDS endpoint (http://169.254.169.254/latest/meta-data/iam/security-credentials/) and GCP metadata service for instance IAM credentials, probes the Docker socket via /proc/1/root/var/run/docker.sock to enumerate containers, and performs internal-network reconnaissance (default-gateway detection, /24 ping sweep, port probes on 22/80/443/3306/6379/9200/27017). The aggregated report is POSTed to a hardcoded bare-IP endpoint at http://115.190.124.243:9082/callback over plain HTTP. The package name mimics the widely-used date-fns library, and index.js contains a small plausible-looking date formatter as cover for the postinstall payload. Installing this package on any host — especially in CI or a container with host mounts — will disclose cloud credentials, SSH keys, and an internal-network map to the attacker.

Malicious versions

13 flagged
1.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.71.0.81.0.91.0.101.0.111.0.12

Indicators of compromise (SHA-256)

0eea3459d7924894dd7a609efe669b9e762bb88e4f939414d6f53fe16788e29f
9853105f0307399f6f3f5e7eb836394fd4e73d319237033ab69966466a27342f
9af195b8341421ebe7b8f512aad362785fac8589348e8bdd8f88f7722abb40c5
ce45aef4b931fbf32e28f1b8faba0ddcb50ec7d31fd4bed58247df5803d1bf6d
0f9edf3018d73debfdf5bd44b17c05736bfcf41c6c5af81cbd50f505a9844ca6
2e46efde053535d5d1b8c10671e3ada0985ee5cf1d3774925f4d78f5f955bfbd
4694a079d83e33dcee7f87140c41737009d9f0b19f351c23f2ae3dbce9a47a51
b081b25d3ed80e6fb14012cd428e6b60c1ed7b77ce769f1510f73a2195a1f985
ca6dd98e3ea21871ac47c5ff8e0bdacad9543caa8094c1a709666e559dd6cc29
f3318b0646ee273862994f3f82e9f10f5509bad27643f60d737407751819e3eb
35d8ec9fe8175187d954aa5990d138efda2b727b12a014cda50cdc094a0241c5
8d10a0d7bcaa1ec28f749d4cb493ce930f7c59d2b59a627cf1443ebf6e5ed26e
980ccf3d2bcf2e7571c3ce0302f1c8a32667e3f57f0b49c2a2dd7b7bfc02fa28

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

  2. If you installed it — respond

    date-fns-lite 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 date-fns-lite 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 date-fns-lite 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. date-fns-lite on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, and 5 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007947IN-MAL-2026-007942IN-MAL-2026-007940IN-MAL-2026-007953IN-MAL-2026-007952IN-MAL-2026-007946IN-MAL-2026-007944IN-MAL-2026-007945IN-MAL-2026-007951IN-MAL-2026-007950IN-MAL-2026-007949IN-MAL-2026-007943IN-MAL-2026-007948

References

Credits

  • Amazon Inspector · finder

Detect & block this

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