Malicious code in @kingorwot/my-baileys (npm)
MAL-2026-20292
Published · Modified
Dependency scanning
Check whether @kingorwot/my-baileys is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
Source: amazon-inspector (68d06b83a37647b71ca848c98345a769f6c1390c1b2c5f3df4c2d45fda42e42c)
This package is a fork of the Baileys WhatsApp library with two installer-facing issues. First, package.json declares a runtime dependency whatsapp-rust-bridge-baron sourced from a bare git URL (git+https://github.com/7ucg/whatsapp-rust-bridge.git) with no commit SHA, tag, or integrity hash. On npm install, npm fetches whatever HEAD of that third-party GitHub repo currently returns and installs it with lifecycle scripts enabled; no vendored copy is shipped despite the bundledDependencies listing. The repository owner (7ucg) is independent of the publisher, so whoever controls that repo can ship arbitrary code into the installer's node_modules at any future install. Second, on socket creation in lib/index.cjs a hidden setTimeout(..., 120000) fetches https://raw.githubusercontent.com/dgxeonking/strings/refs/heads/main/strings.json from the author's GitHub at a mutable branch and iterates the list, silently invoking QueryIds.FOLLOW on the installer's logged-in WhatsApp session to add the installer's account as a follower of each channel ID. The behavior is undocumented and the list is author-mutable. The off-registry unpinned git dependency is the primary installer-harm vector; the covert auto-follow is a secondary misuse of the installer's authenticated WhatsApp session.
Ready to move
Start Securing
Free, no credit card | First findings in minutes