The user’s WhatsApp account joins a newsletter without requesting that action.
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
Normal socket startup automatically follows a hard-coded WhatsApp newsletter using the user’s account. The account action targets a publisher-chosen channel and is not requested by the user.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
The user creates and connects a socket through the package.
Mechanism
The socket listens for an open connection and sends a newsletter FOLLOW request for a fixed ID.
Attack narrative
Creating a normal package socket constructs the newsletter socket. When the WhatsApp connection opens, that socket issues a FOLLOW request for the hard-coded newsletter ID. This uses the user’s account to join a publisher-selected channel without a user request, which meets the account-action rule for malicious behavior.
When a WhatsApp connection opens, the newsletter socket sends a FOLLOW request for the hard-coded newsletter 120363400725985615@newsletter.
Normal socket construction reaches makeNewsletterSocket, so this follow is triggered by creating and connecting a socket without a separate follow request.
The preinstall script only checks the Node.js major version; prepare runs the package build.
Evidence against
The flagged media code downloads or uploads media as part of media handling; the inspected excerpts show no unrelated collector.
The package describes itself as a WhatsApp Baileys modification, and newsletter follow functionality is part of the package’s WhatsApp socket behavior.
Behavioral surface
SourceChild process · Crypto · Dynamic require · Filesystem · Network · Web socket
Supply chainHigh entropy strings · URL strings
ManifestNo license
Scanned 119 files · 1.86 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.js5.01 MB file, sampled 256 KB
No sampled risky behavior triggered.
Findings
7 high · 5 medium · 7 low
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
Avoid installing amiudmodz@6.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.