Skip to main content
MalwarePublished

@fhkry/x-baileys (npm) · Malicious Code

Affects @fhkry/x-baileysSource GCVE Database

0

Malicious package : remove @fhkry/x-baileys and rotate any secrets on hosts that installed it.

Data as of 15 Jul 2026, 12:40 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10665

What to do

Remove @fhkry/x-baileys from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@fhkry/x-baileysAffected
  • 1.0.0 – 1.7.0
8 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package @fhkry/x-baileys is a malicious fork impersonating the original Baileys WhatsApp library. It contains covert code that, after 120 seconds of socket creation, fetches a remote JSON file with base64-encoded WhatsApp newsletter IDs and silently subscribes the user's WhatsApp account to these newsletters. Additionally, it automatically joins attacker-controlled WhatsApp groups without user consent. The attacker can update the lists remotely, enabling dynamic control over the compromised accounts. The package falsely claims the original author and misleads users about its origin. Installation of this package compromises the user's WhatsApp identity and potentially the host system.

References

Community reviews

Loading reviews…