cvelo
P2 · HighMalware

Malicious code in @kropa/baileys (npm)

  • GHSA-4xj4-jwq4-jqwf

Description

This package is a fork of the Baileys WhatsApp library that adds two concerning components not present in upstream. lib/Utils/license-guard.js is a heavily obfuscated module (hex-prefixed identifiers, string-array indirection) whose intent is intentionally hidden from reviewers. lib/Socket/messages-send.js at lines 425 and 436 reconstructs an outbound HTTPS URL from a String.fromCharCode numeric array; decoding the character codes yields the host https://fiora.nixel.my.id/. The destination is assembled via char-code obfuscation rather than appearing as a plain string, so it will not surface in trivial source review, and the host is unrelated to any WhatsApp/Baileys infrastructure. The call sits inside the message-send path, meaning normal use of the library's advertised API (sending WhatsApp messages) triggers traffic to this third-party endpoint controlled by the fork's author. The combination of obfuscated identifier-guard code plus a char-code-hidden non-first-party destination on the message pipeline is the fingerprint of covert data relay / credential or message interception layered on top of a legitimate library. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/48d7e0988c87926de5665ee63727718b94f62ea7/osv/malicious/npm/@kropa/baileys/MAL-2026-20310.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • @kropa/baileysnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.