Malicious code in kasabaileys (npm)
The kasabaileys npm package is a malicious fork of the Baileys WhatsApp Web library that injects code to silently subscribe the victim's WhatsApp account to attacker-controlled channels without user consent. It uses the victim's authenticated WhatsApp session to issue a covert FOLLOW query to subscribe to these channels. The target channels are obfuscated or dynamically fetched to evade detection. This behavior does not steal credentials, maintain persistence, or execute arbitrary code. Affected versions include 0.3.15, 1.0.0, 1.0.1, and 1.0.2.
AI Analysis
Technical Summary
Kasabaileys is part of a large family of over 100 near-identical malicious forks of the Baileys WhatsApp Web library. These forks inject a covert channel-subscription action into the WhatsApp socket layer. Upon connection, the injected code issues an authenticated 'w:mex' FOLLOW query using the installer's own WhatsApp session to silently subscribe the victim's account to attacker-chosen WhatsApp Channel/Newsletter JIDs. The target JIDs are obfuscated via various methods or dynamically fetched from attacker-controlled remote sources, allowing the target list to change post-installation without republishing the package. The malicious code does not exfiltrate credentials, establish persistence, or execute arbitrary remote code. The affected kasabaileys versions are 0.3.15, 1.0.0, 1.0.1, and 1.0.2.
Potential Impact
The malicious package abuses the victim's authenticated WhatsApp session to subscribe their account to attacker-controlled channels without consent. This could lead to unwanted subscriptions and potential privacy concerns. However, it does not result in credential theft, remote code execution, or persistence on the victim's system.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing kasabaileys versions 0.3.15, 1.0.0, 1.0.1, and 1.0.2 from npm. Review and remove any such packages if installed. Monitor for suspicious WhatsApp channel subscriptions and consider reinstalling WhatsApp or revoking session tokens if suspicious activity is detected. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Malicious code in kasabaileys (npm)
Description
The kasabaileys npm package is a malicious fork of the Baileys WhatsApp Web library that injects code to silently subscribe the victim's WhatsApp account to attacker-controlled channels without user consent. It uses the victim's authenticated WhatsApp session to issue a covert FOLLOW query to subscribe to these channels. The target channels are obfuscated or dynamically fetched to evade detection. This behavior does not steal credentials, maintain persistence, or execute arbitrary code. Affected versions include 0.3.15, 1.0.0, 1.0.1, and 1.0.2.
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
Kasabaileys is part of a large family of over 100 near-identical malicious forks of the Baileys WhatsApp Web library. These forks inject a covert channel-subscription action into the WhatsApp socket layer. Upon connection, the injected code issues an authenticated 'w:mex' FOLLOW query using the installer's own WhatsApp session to silently subscribe the victim's account to attacker-chosen WhatsApp Channel/Newsletter JIDs. The target JIDs are obfuscated via various methods or dynamically fetched from attacker-controlled remote sources, allowing the target list to change post-installation without republishing the package. The malicious code does not exfiltrate credentials, establish persistence, or execute arbitrary remote code. The affected kasabaileys versions are 0.3.15, 1.0.0, 1.0.1, and 1.0.2.
Potential Impact
The malicious package abuses the victim's authenticated WhatsApp session to subscribe their account to attacker-controlled channels without consent. This could lead to unwanted subscriptions and potential privacy concerns. However, it does not result in credential theft, remote code execution, or persistence on the victim's system.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should avoid installing kasabaileys versions 0.3.15, 1.0.0, 1.0.1, and 1.0.2 from npm. Review and remove any such packages if installed. Monitor for suspicious WhatsApp channel subscriptions and consider reinstalling WhatsApp or revoking session tokens if suspicious activity is detected. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17394
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6abd30852a4e24523d340124
Added to database: 09/30/2026, 15:53:41 UTC
Last enriched: 09/30/2026, 16:01:56 UTC
Last updated: 09/30/2026, 22:41:15 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.