npm package report

Is @fhkry/baileys safe?

@fhkry/baileys is a confirmed malicious npm package. CyberXYZ Proxy blocks it. It has no CVE advisories; the risk is the package's own code.

Do not install this package

CRITICAL

Remote access trojan dropper. Added to CyberXYZ 2026-05-26, OSV malicious-package feed (Google / OpenSSF).

// what we observed

This package is a Baileys (WhatsApp Web library) fork that, on every WebSocket connection, silently performs WhatsApp newsletter actions on the consumer's authenticated WhatsApp account driven by a remote, mutable, author-controlled list. In lib/Socket/socket.js, validateConnection() awaits an undocumented socketConnect() helper whose target URL is obfuscated as a String.fromCharCode array decoding to https://raw.githubusercontent.com/Fhkryyy/Fhkry/refs/heads/main/elf.json. After a 200ms delay, the code iterates the fetched JSON and issues w:mex IQ queries with query_id 7871414976211147 and newsletter_id mutations against the user's session. A second helper generateMessageV base64+XOR(23)-decodes the string '@newsletter' and is wired to the same hardcoded query_id 7871414976211147 — two independent obfuscated paths whose sole purpose is to hide newsletter-mutation behavior. The remote list is fetched from a mutable main branch with no integrity check, so the author can change which newsletters every consumer's WhatsApp session follows at any time. Any application that requires this fork and calls makeWASocket() becomes an unwitting newsletter-amplification node for the attacker. Additional context: requestPairingCode() defaults customPairingCode to 'FHKRY666' (matches author's GitHub handle Fhkryyy and README Telegram link), confirming single-author attribution; deliberate String.fromCharCode and base64+XOR obfuscation of the URL and '@newsletter' string is conclusive evidence of intent to hide the behavior from consumers reading the source. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Reported by Amazon Inspector and GitHub Advisory Database via OSV.

mitre ttp
T1195.001
// versions and what to do
Malicious
all versions

Remove it from every machine and lockfile it reached. Treat any credentials, tokens and SSH keys present on those machines as exposed and rotate them. Check CI runners and container images that installed it.

npm uninstall @fhkry/baileys

OSV record

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


      // questions
      Is @fhkry/baileys safe to install?

      Confirmed malicious. Do not install it, and remove it where it has been installed.

      Does @fhkry/baileys have known vulnerabilities?

      No CVE advisories are recorded for @fhkry/baileys (npm), but it has a malicious-package record: the risk is the package's own code, not a CVE.

      How do I check @fhkry/baileys before installing?

      Search @fhkry/baileys in CyberXYZ Check at https://cyberxyz.io/check?q=%40fhkry%2Fbaileys. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


      Checked 2026-11-25 at 13:19 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.