@sakataa/baileys@3.0.0
A WebSockets library for interacting with Customize WhatsApp.
AI Security Review
scanned 5d ago · by lpm-firewall-aiThe package does not show a clear install-time or automatic account attack, but its event-message handler inserts publisher-chosen attribution metadata into messages sent by callers. This is a warning-level risk because it can misrepresent a message’s source.
Decision evidence
public snapshot- When handling an event message, the code inserts a hard-coded newsletter ID into forwarded-newsletter metadata and marks the message as AI-generated.
- The sendMessage path invokes that handler for event content, so the metadata is added when a caller sends an event message.
- The preinstall script only runs a Node.js version check.
- The hard-coded newsletter ID is metadata in a message addressed to the caller-supplied recipient; the inspected code does not follow or post to that newsletter.
- The package entry point prints a banner and exports library modules; no automatic message send was identified.
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@3.0.0.
See all versions of @sakataa/baileys for other recorded verdicts.
- Review the evidence and your use of @sakataa/baileys@3.0.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.