A WebSockets library for interacting with WhatsApp Web
Blocked & quarantined
The connected account follows channels selected by the package publisher without the user's request.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security review
scanned · by lpm-firewall-ai
Socket construction automatically schedules WhatsApp FOLLOW actions for six hard-coded newsletters, using the user's connected account without a request. This is concrete, unauthorized account manipulation.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
When the application creates the message socket; the follow requests are scheduled about 10 seconds later.
Mechanism
makeMessagesSocket constructs makeNewsletterSocket, which schedules FOLLOW queries for hard-coded newsletter IDs and sends them to WhatsApp.
Attack narrative
When a client creates the message socket, the package schedules six FOLLOW requests for hard-coded newsletter IDs. It sends those requests through WhatsApp using the connected account, without asking the user. This is an unsolicited account action toward targets chosen in the package source.
Creating the message socket automatically creates the newsletter socket, which schedules six FOLLOW operations for hard-coded newsletter IDs after a delay.
Those operations pass the selected newsletter ID as newsletter_id in a WhatsApp query sent to S_WHATSAPP_NET.
The package therefore uses the connected WhatsApp account to follow publisher-selected newsletters without a user request.
Evidence against
The preinstall script only checks that Node.js is version 20 or newer.
The package describes itself as a library for interacting with WhatsApp Web, so its ordinary WhatsApp network access is expected.
Behavioral surface
SourceChild process · Crypto · Filesystem · Network · Shell · Web socket
Supply chainHigh entropy strings · URL strings
ManifestGit dependency
Scanned 108 files · 1.80 MB of source
5 external domains referenced
call.whatsapp.com
raw.githubusercontent.com
wa.me
web.whatsapp.com
www.whatsapp.com
Oversized source lightweight scan
WAProto/index.js11.6 MB file, sampled 256 KB
No sampled risky behavior triggered.
Findings
5 high · 5 medium · 6 low
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
Avoid installing @zeppeliorg/wbails@1.1.0. 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.