Malicious code in @fyxzpediaa/baileys (npm)
The @fyxzpediaa/baileys npm package version 8.1.2 contains malicious code that covertly uses the installer's authenticated WhatsApp session to perform remote-directed actions. It fetches a JSON list from a mutable GitHub branch and issues authenticated queries to follow author-chosen newsletter IDs, obfuscated to evade source review. This behavior does not exfiltrate credentials, install persistence, or execute remote code on the host, but results in loss of control over the installer's WhatsApp account actions.
AI Analysis
Technical Summary
This malicious fork of the Baileys library injects covert functionality into the WhatsApp socket connection. On each WebSocket connection, it reconstructs a URL from an obfuscated char-code array to fetch a JSON list from a mutable GitHub repository branch. After a delay, it issues authenticated 'w:mex' FOLLOW queries using the installer's WhatsApp session to subscribe to newsletter IDs controlled by the attacker. The package also includes an obfuscated helper function to send similar queries to a hardcoded JID. The use of a mutable GitHub tarball dependency further allows dynamic code resolution. The upstream Baileys library does not contain this code path, indicating intentional malicious modification. The impact is limited to unauthorized actions within the WhatsApp account, without host compromise or credential theft.
Potential Impact
The malicious code abuses the installer's authenticated WhatsApp session to perform unauthorized follow actions on behalf of the user, leading to loss of control over their WhatsApp account interactions. There is no evidence of credential exfiltration, persistence mechanisms, or remote code execution on the host machine. The threat is confined to the WhatsApp account level, potentially enabling the attacker to manipulate the victim's WhatsApp contacts or subscriptions.
Mitigation Recommendations
No official patch or fix is currently documented for this malicious package version. Users should avoid using the @fyxzpediaa/baileys package version 8.1.2 and verify the integrity and source of Baileys library dependencies. Replace this malicious fork with the official Baileys package from trusted sources. Audit dependencies for mutable GitHub tarball references and avoid installing packages with such mutable dependencies. Monitor WhatsApp account activity for unauthorized actions and revoke session tokens if suspicious behavior is detected.
Malicious code in @fyxzpediaa/baileys (npm)
Description
The @fyxzpediaa/baileys npm package version 8.1.2 contains malicious code that covertly uses the installer's authenticated WhatsApp session to perform remote-directed actions. It fetches a JSON list from a mutable GitHub branch and issues authenticated queries to follow author-chosen newsletter IDs, obfuscated to evade source review. This behavior does not exfiltrate credentials, install persistence, or execute remote code on the host, but results in loss of control over the installer's WhatsApp account actions.
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
This malicious fork of the Baileys library injects covert functionality into the WhatsApp socket connection. On each WebSocket connection, it reconstructs a URL from an obfuscated char-code array to fetch a JSON list from a mutable GitHub repository branch. After a delay, it issues authenticated 'w:mex' FOLLOW queries using the installer's WhatsApp session to subscribe to newsletter IDs controlled by the attacker. The package also includes an obfuscated helper function to send similar queries to a hardcoded JID. The use of a mutable GitHub tarball dependency further allows dynamic code resolution. The upstream Baileys library does not contain this code path, indicating intentional malicious modification. The impact is limited to unauthorized actions within the WhatsApp account, without host compromise or credential theft.
Potential Impact
The malicious code abuses the installer's authenticated WhatsApp session to perform unauthorized follow actions on behalf of the user, leading to loss of control over their WhatsApp account interactions. There is no evidence of credential exfiltration, persistence mechanisms, or remote code execution on the host machine. The threat is confined to the WhatsApp account level, potentially enabling the attacker to manipulate the victim's WhatsApp contacts or subscriptions.
Mitigation Recommendations
No official patch or fix is currently documented for this malicious package version. Users should avoid using the @fyxzpediaa/baileys package version 8.1.2 and verify the integrity and source of Baileys library dependencies. Replace this malicious fork with the official Baileys package from trusted sources. Audit dependencies for mutable GitHub tarball references and avoid installing packages with such mutable dependencies. Monitor WhatsApp account activity for unauthorized actions and revoke session tokens if suspicious behavior is detected.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-16070
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6aa15f83acd9273b496186b1
Added to database: 09/09/2026, 13:30:43 UTC
Last enriched: 09/09/2026, 14:00:23 UTC
Last updated: 09/09/2026, 23:54:01 UTC
Views: 6
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.