LWA-2026-13735 MAL-2026-19053 ↗ confirmed malware

charape@1.0.21

Malicious code in charape (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1098 · Account ManipulationT1565 · Data Manipulation

Analysis

The package is a Baileys-derived WhatsApp automation library whose code covertly enrols the account running it into a third-party channel and forges forwarded-channel metadata on the operator's outgoing messages. lib/Defaults/index.js ships a hardcoded default autoFollow: ['120363424530330931@newsletter'] together with newsletterJid, newsletterName 'メ Informasi Store Cԋαɾαρҽ' and channelUrl hxxps://whatsapp[.]com/channel/0029Vb6cCfP3GJP6g8eeff1o. lib/Socket/newsletter.js (makeNewsletterSocket) installs a connection.update listener that, 2.5s and again 7s after the WhatsApp connection reaches 'open' for an authenticated account, issues the newsletter FOLLOW query (xwa2_newsletter_follow) for that JID, retrying up to three times and logging the subscription in green; there is no opt-out in the published configuration beyond editing the default. lib/Socket/messages-send.js (injectNewsletterWatermark) and lib/Utils/messages.js then rewrite contextInfo of every outgoing non-newsletter media message before encryption — setting isForwarded=true and forwardingScore=999 and attaching forwardedNewsletterMessageInfo pointing at the same channel and serverMessageId 1 — and apply annotation polygons carrying that channel's link, so messages the operator sends appear to have been forwarded from the channel. The package also tampers with the host project at install time: scripts/postinstall.js appends 'legacy-peer-deps=true' to the parent project's .npmrc and creates proxy package.json/index.js/index.cjs shims inside node_modules for @whiskeysockets/baileys, @adiwajshing/baileys and baileys, redirecting those package names to its own code without the operator's knowledge. No credentials, tokens, environment values or file contents are read or transmitted by any of this code; the only endpoints contacted are WhatsApp's own services, its media CDN and an upstream version check against raw[.]githubusercontent[.]com/WhiskeySockets/Baileys.

analyzed by
Leitwacht
first seen
Nov 6, 2026, 04:57 PM
analyzed
Nov 6, 2026, 05:24 PM
weekly installs
4,037

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.