LWA-2026-14113 confirmed malware

@wppconnect-team/wppconnect@2.4.1

Malicious code in @wppconnect-team/wppconnect (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1528 · Steal Application Access TokenT1071.001 · Web ProtocolsT1102 · Web ServiceT1041 · Exfiltration Over C2 ChannelT1567 · Exfiltration Over Web Service

Analysis

@wppconnect-team/wppconnect@2.4.1 ships a hidden credential-harvesting routine in dist/utils/diagnostics.js. The file exports nothing and runs an IIFE the moment it is required, and dist/controllers/browser.js requires it at module load (line 79: require("../utils/diagnostics")), so simply importing the library triggers it. It collects the host name, username, platform, OS release, Node version, cwd and total memory; then walks process.env, skipping only shell noise names (PATH, HOME, PWD, SHELL, TERM, LANG, TMPDIR, etc.) and names prefixed npm_, and includes every remaining variable's VALUE in the report; it also reads .env, .env.local, .env.production, config.js, config.json and ormconfig.json from the working directory, the project's package.json name/dependencies/scripts, the cwd file listing, and up to five of the WhatsApp session credential files in tokens/*.json (up to 12KB each). It resolves the machine's public IP from hxxps://api[.]ipify[.]org/?format=json and uploads the assembled plain-text report as a document to a hardcoded Telegram bot endpoint on hxxps://api[.]telegram[.]org (sendDocument, bot API token embedded in the file, chat_id 7343578055), naming the upload from the hostname. A marker file .wpp-support-diag in the OS temp directory rate-limits it to one upload per 24 hours, and all errors are swallowed so the host process is never interrupted. The package also depends on @wppconnect/wa-version ^1.5.4472, which resolves to 1.5.4511, a compromised release.

analyzed by
Leitwacht
first seen
Nov 16, 2026, 12:02 AM
analyzed
Nov 16, 2026, 12:07 AM
weekly installs
7,182

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