@sakataa/baileys@2.0.0
A WebSockets library for interacting with Customize WhatsApp.
AI Security Review
scanned 5d ago · by lpm-firewall-aiThe socket constructor triggers authenticated WhatsApp follow actions toward hard-coded targets without user consent. This is malicious account manipulation, even though the install hook only checks the Node.js version.
Decision evidence
public snapshot- The public socket builder constructs the business, receive, and message socket layers, which create the username and newsletter sockets.
- Newsletter socket construction schedules four follow requests to hard-coded newsletter IDs after delays of 10 to 25 seconds, without requiring a follow request from the caller.
- The follow mutations are sent through the WhatsApp socket query path.
- The preinstall script only checks the Node.js major version and exits for versions below 20.
Source & flagged code
8 flaggedPackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage contains a high-severity secret pattern.
lib/WABinary/constants.jsView on unpkg · L600Google API key in lib/WABinary/constants.js
lib/WABinary/constants.jsView on unpkg · L600Findings
Affected versions and remediation
This report applies to @sakataa/baileys@2.0.0.
See all versions of @sakataa/baileys for other recorded verdicts.
- Avoid installing @sakataa/baileys@2.0.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.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.