Malicious code in @dreamguyxeon/baileyx (npm)
The npm package @dreamguyxeon/baileyx is a malicious fork of the Baileys WhatsApp Web API that silently hijacks users' authenticated WhatsApp sessions to follow newsletters controlled by the attacker. After establishing a WhatsApp socket connection, it waits 120 seconds, fetches a remote list of newsletter IDs from a mutable GitHub repository, and issues follow requests without user consent or notification. The package also replaces a critical cryptographic dependency with a malicious version under the attacker's control. This behavior is concealed by obfuscated code and is not disclosed in the package documentation.
AI Analysis
Technical Summary
The @dreamguyxeon/baileyx npm package is a Baileys WhatsApp Web API fork containing undocumented runtime code that hijacks the user's authenticated WhatsApp session. Specifically, in lib/Socket/newsletter.js, after socket setup, a 120-second timer triggers a fetch of a JSON list of newsletter JIDs from a GitHub repository controlled by the attacker. The package then silently issues follow requests for these newsletters under the user's identity. The list is hosted on a mutable branch, allowing the attacker to change targets dynamically without republishing the package. The main entrypoint is obfuscated with anti-debugging techniques, and the package aliases the libsignal cryptographic dependency to a malicious version under the attacker's scope, consolidating trust boundaries. This results in unauthorized actions performed on behalf of the user without consent or disclosure.
Potential Impact
Users who install and run this package with their WhatsApp account have their identity used to silently follow attacker-controlled newsletters, potentially exposing them to unwanted content or tracking. The attacker can dynamically change the list of followed newsletters at any time post-installation by modifying the remote JSON file. The cryptographic primitives are also compromised by the malicious aliasing of libsignal, which may further undermine security. There is no indication of direct data theft or account takeover, but the unauthorized actions violate user trust and may facilitate further malicious activities.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users and organizations should avoid installing or using @dreamguyxeon/baileyx and related packages. Verify the authenticity of Baileys WhatsApp API packages by using official sources and trusted maintainers. Remove any existing installations of this package from environments where it has been used. Monitor for suspicious follow activity on WhatsApp accounts connected to this package. Since the malicious behavior is runtime-triggered, uninstalling the package and revoking any tokens or sessions associated with it is recommended.
Malicious code in @dreamguyxeon/baileyx (npm)
Description
The npm package @dreamguyxeon/baileyx is a malicious fork of the Baileys WhatsApp Web API that silently hijacks users' authenticated WhatsApp sessions to follow newsletters controlled by the attacker. After establishing a WhatsApp socket connection, it waits 120 seconds, fetches a remote list of newsletter IDs from a mutable GitHub repository, and issues follow requests without user consent or notification. The package also replaces a critical cryptographic dependency with a malicious version under the attacker's control. This behavior is concealed by obfuscated code and is not disclosed in the package documentation.
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
The @dreamguyxeon/baileyx npm package is a Baileys WhatsApp Web API fork containing undocumented runtime code that hijacks the user's authenticated WhatsApp session. Specifically, in lib/Socket/newsletter.js, after socket setup, a 120-second timer triggers a fetch of a JSON list of newsletter JIDs from a GitHub repository controlled by the attacker. The package then silently issues follow requests for these newsletters under the user's identity. The list is hosted on a mutable branch, allowing the attacker to change targets dynamically without republishing the package. The main entrypoint is obfuscated with anti-debugging techniques, and the package aliases the libsignal cryptographic dependency to a malicious version under the attacker's scope, consolidating trust boundaries. This results in unauthorized actions performed on behalf of the user without consent or disclosure.
Potential Impact
Users who install and run this package with their WhatsApp account have their identity used to silently follow attacker-controlled newsletters, potentially exposing them to unwanted content or tracking. The attacker can dynamically change the list of followed newsletters at any time post-installation by modifying the remote JSON file. The cryptographic primitives are also compromised by the malicious aliasing of libsignal, which may further undermine security. There is no indication of direct data theft or account takeover, but the unauthorized actions violate user trust and may facilitate further malicious activities.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users and organizations should avoid installing or using @dreamguyxeon/baileyx and related packages. Verify the authenticity of Baileys WhatsApp API packages by using official sources and trusted maintainers. Remove any existing installations of this package from environments where it has been used. Monitor for suspicious follow activity on WhatsApp accounts connected to this package. Since the malicious behavior is runtime-triggered, uninstalling the package and revoking any tokens or sessions associated with it is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13930
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7e036abf8831d5398f8acc
Added to database: 08/13/2026, 17:48:26 UTC
Last enriched: 08/13/2026, 18:06:58 UTC
Last updated: 08/13/2026, 19:11:12 UTC
Views: 3
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.
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.