@aboutdisz/baileys@1.0.5
WhatsApp API in JavaScript - Fork by aboutdisz
This package appears in our research on the malicious Baileys forks, with how it works, the full package list and what to do if you installed it.
AI security review
scanned · by lpm-firewall-aiNormal socket construction schedules an unsolicited follow of a hard-coded WhatsApp newsletter using the user's account. The account action is unrelated to the requested socket functionality and targets a channel selected by the package publisher.
Decision evidence
public snapshot- The default makeWASocket entry point creates a registration socket, which reaches makeMessagesSocket and its newsletter socket setup.
- makeMessagesSocket calls makeNewsletterSocket during socket construction.
- makeNewsletterSocket schedules a 90-second timer that sends a FOLLOW query for a hard-coded newsletter JID decoded from base64.
- The follow request is sent through the WhatsApp query protocol without an explicit user request.
- The preinstall script only runs an engine-version check and prints status messages.
- The package describes itself as a WhatsApp API fork, so WhatsApp network queries are expected.
- faq.whatsapp.com
- nodejs.org
- raw.githubusercontent.com
- v.whatsapp.net
- web.whatsapp.com
Findings
3 high · 4 medium · 6 lowWhere they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
package.json1 high · 1 mediumlib/Utils/messages-media.js1 highlib/Utils/messages.js1 highWAProto/index.js1 mediumShow all 13 findings
package.json2 findingslib/Utils/messages-media.js1 findinglib/Utils/messages.js1 findingWAProto/index.js1 findingSource & flagged code
5 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgShared scanner record · 2 findings · 1 line
Package contains source files above the normal full-analysis size ceiling.
WAProto/index.jsView on unpkgScanner record · 4 lines
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
lib/Utils/messages-media.jsView on unpkgScanner record · 6 lines
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
lib/Utils/messages.jsView on unpkgScanner record · 6 lines
Affected versions and remediation
This report applies to @aboutdisz/baileys@1.0.5.
See all versions of @aboutdisz/baileys for other recorded verdicts.
- Avoid installing @aboutdisz/baileys@1.0.5. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.