@rakku-kun/baileys@2.0.22
🌿 Rakku Baileys - Modern WhatsApp Multi-Device API with enhanced JID/LID mapping & clean architecture.
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-aiThe package automatically follows a hard-coded WhatsApp newsletter when a socket connection opens, using the user’s account without a request to follow that target. This is a concrete, unrequested account action.
Decision evidence
public snapshot- The newsletter socket hard-codes the publisher-selected target 12036421453095412@newsletter.
- When the WhatsApp connection opens, the package checks whether the account follows that target and sends a FOLLOW request if it does not.
- Normal makeWASocket construction reaches the newsletter socket through the package’s socket layers.
- The manifest has no install, preinstall or postinstall script.
- Newsletter follow and unfollow methods also exist as explicit API operations, which are ordinary library functionality.
- The manifest’s declared npm scripts are lint commands.
- call.whatsapp.com
- mmg.whatsapp.net
- rakkulabs.biz.id
- raw.githubusercontent.com
- wa.me
- web.whatsapp.com
- www.whatsapp.com
Findings
1 critical · 6 high · 5 medium · 5 lowWhere they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
package.json1 criticallib/WABinary/constants.js2 highWAProto/index.js1 high · 1 mediumlib/Utils/messages.js2 highlib/WABinary/constants.d.ts1 highWAProto/GenerateStatics.sh1 mediumlib/Utils/validate-connection.js1 lowShow all 17 findings
package.json1 findinglib/WABinary/constants.js2 findingsWAProto/index.js2 findingslib/Utils/messages.js2 findingslib/WABinary/constants.d.ts1 findingWAProto/GenerateStatics.sh1 findinglib/Utils/validate-connection.js1 findingSource & flagged code
10 flaggedPackage 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 · L600Shared code excerpt · 2 findings · 3 lines
Package source references weak cryptographic algorithms.
lib/Utils/validate-connection.jsView on unpkg · L104Code excerpt · 9 lines
Package ships non-JavaScript build or shell helper files.
WAProto/GenerateStatics.shView on unpkgScanner record · 4 lines
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
WAProto/index.jsView on unpkgScanner record · 1 line
Package contains source files above the normal full-analysis size ceiling.
WAProto/index.jsView on unpkgScanner record · 4 lines
Tarball package.json differs from the npm registry version manifest for scripts or dependency sets.
package.jsonView on unpkgScanner record · 1 line
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
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
lib/Utils/messages.jsView on unpkgScanner record · 5 lines
Google API key in lib/WABinary/constants.d.ts
lib/WABinary/constants.d.tsView on unpkg · L20Code excerpt · 3 lines
Affected versions and remediation
This report applies to @rakku-kun/baileys@2.0.22.
See all versions of @rakku-kun/baileys for other recorded verdicts.
- Avoid installing @rakku-kun/baileys@2.0.22. 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.