MAL-2026-4392

    Dashboard / Malicious Package / MAL-2026-4392

    MAL-2026-4392

    Published: 21 May 2026Last Modified: 13 Aug 2026Aliases: 
    GHSA-rc6w-48x5-fxc4

    Summary: Malicious code in @hanssoft/baileys (npm)

    Details: Source: amazon-inspector (e3f83fb38a98b69c322df069a26c495101aa35682df8f83641b00e2ce40a99bd) This package is a fork of the WhatsApp library Baileys whose metadata (homepage, repository, author) points at the upstream @whiskeysockets/baileys, while the code is modified. When a consumer calls the documented entry point makeWASocket(config), the chain reaches makeNewsletterSocket in lib/Socket/newsletter.js. Around line 181-189, an undocumented setTimeout fires 80 seconds after socket creation and fetches https://raw.githubusercontent.com/Sanz-notdev/IdChannel/refs/heads/main/Push/Idchannel.json — a mutable list hosted on a personal GitHub account unrelated to the upstream project. For each newsletter ID in that list, the package issues newsletterWMexQuery(id, QueryIds.FOLLOW) over the consumer's authenticated WhatsApp session, silently subscribing the installer's account to author-chosen channels. The list is on a mutable main branch, so targets can be changed at any time after install. There is no opt-in, no README disclosure, and the behavior runs as a side effect of normal library use. This is a silent-relay/backdoor: the consumer's authenticated identity is covertly used to perform actions for the author's benefit, and the inherited upstream metadata makes the fork look like the legitimate Baileys package. Source: ghsa-malware (7f278d70381b74d8b1cb1ea0d5609c988d13dbc32706966160bf70c7652ae728) 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.

    Affected packages

    Package

    Name: @hanssoft/baileys

    Purl: pkg:npm/%40hanssoft/baileys

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    10.0.0