Malicious code in @nexustechpro/baileys (npm)
Description
@nexustechpro/baileys version 2.2.7 is a maliciously modified fork of the WhatsApp library 'baileys' containing heavily obfuscated code in a core module that handles sensitive WhatsApp session state. It includes a floating dependency on 'whatsapp-rust-bridge' with no version pinning or integrity checks, allowing arbitrary code execution. Installation or use of this package compromises the host system, risking exposure of all stored secrets and keys.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@nexustechpro/baileys is a fork of the WhatsApp library 'baileys' with a heavily obfuscated core file (lib/Socket/chats.js) that differs from the original unobfuscated upstream code. This obfuscated module is directly involved in handling WhatsApp session credentials and cryptographic keys. Additionally, the package.json declares a floating dependency on 'whatsapp-rust-bridge' with the 'latest' tag, enabling the dependency's publisher to execute arbitrary code during installation or future installs without integrity verification. This combination results in a fully compromised system upon installation or execution of the package.
Potential Impact
Any system with this package installed or running should be considered fully compromised. Attackers gain full control over the host, including access to all secrets and cryptographic keys stored on the machine. This compromises the confidentiality and integrity of WhatsApp sessions and potentially other sensitive data on the system. Immediate key rotation and system remediation are required.
Defensive Guidance
Remove the @nexustechpro/baileys package immediately from all affected systems. Rotate all secrets and cryptographic keys from a separate, uncompromised device. Due to the full system compromise risk, consider rebuilding affected systems from trusted sources. No official patch or fix is available; the package itself is malicious. Avoid using this package or any forks with unverified code and floating dependencies.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16104
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-8w6v-4xp9-rvrr"]
- Ecosystems
- ["npm"]
Threat ID: 6acd555f2cdf04f656da86a9
Added to database: 10/12/2026, 21:47:11 UTC
Last enriched: 10/12/2026, 22:02:48 UTC
Last updated: 10/12/2026, 22:02:48 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.