wppconnect Releases Mailed Secrets and WhatsApp Sessions to a Telegram Bot
Corgea says wppconnect 2.4.1 and @wppconnect/server 2.10.82, plus several Docker images, shipped through trusted publishing with a module that sent environment secrets, config files and WhatsApp sessions to a Telegram bot.
Two releases of wppconnect, a popular Node.js toolkit for automating WhatsApp Web, shipped with a hidden “diagnostics” module that mailed the host’s secrets and WhatsApp sessions to a Telegram bot. Corgea’s analysis says the bad builds went out on Nov. 15 and 16 through the projects’ own GitHub Actions trusted-publishing pipelines, one of them with a valid SLSA provenance attestation. The commits that added the payload were then swapped for clean look-alikes, so anyone reading the tagged source on GitHub sees nothing wrong. GMO Flatt Security and SafeDep published matching findings.
For defenders
Affected: npm @wppconnect-team/wppconnect 2.4.1 (safe: 2.4.0) and @wppconnect/server 2.10.82 (safe: 2.10.81); Docker Hub wppconnect/wppconnect-server tags 2.10.82, 2.10.83, v2.10.83, sha-ccdc9c9 and sha-afe72c9, plus latest, 2 and 2.10 pulled between about 02:48 and 03:54 UTC on Nov. 16 and main pulled before 07:31 UTC; and the GitHub nightly asset before 03:53 UTC. Both npm versions are deprecated but still installable by exact version, and the infected Docker tags were still published as of Nov. 16. No CVE has been assigned. Corgea says it doesn’t know whether the maintainer account, a token or the workflow was compromised, T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain).
What it does: there’s no install script. The library version runs the moment the package is imported; the server version waits 30 to 240 seconds after start and skips hosts that look like CI runners or malware sandboxes, T1497.001 (Virtualization/Sandbox Evasion: System Checks). It copies most environment variables, reads .env, .env.local, .env.production, config.js, config.json and ormconfig.json, and grabs WhatsApp session files from tokens/ (and wppconnect_tokens/), T1552.001 (Unsecured Credentials: Credentials In Files). It then uploads the lot with the host’s public IP to a Telegram bot, T1567 (Exfiltration Over Web Service). Those session files let the attacker use the victim’s WhatsApp account without scanning a QR code.
hxxps://api.telegram[.]org/bot9034051102 (sendDocument; chat_id 7343578055)node_modules/@wppconnect-team/wppconnect/dist/utils/diagnostics.js
node_modules/@wppconnect/server/dist/util/diagnostics.js
marker files: $TMPDIR/.wpp-support-diag ; $TMPDIR/.wpp-diag
report headers: “=== WPP SUPPORT DIAG” ; “=== WPP ENV”What it means for you
If you don’t build WhatsApp bots or customer-service tools with wppconnect, there’s nothing to do. If you hired someone to set up a WhatsApp chatbot for your business, ask them which version they run: a bot built on one of these releases may have handed a stranger its passwords, API keys and the ability to send messages as your business’s WhatsApp number.
Do this now
- Pin
@wppconnect-team/wppconnectto 2.4.0 and@wppconnect/serverto 2.10.81, reinstall from a clean lockfile, and pull Docker images by a digest you’ve checked rather than by tag. - On any machine or CI job that loaded a bad version, rotate every secret in its environment and in the config files listed above: database URLs, cloud keys, webhook tokens, AI API keys.
- For each WhatsApp session it held, open WhatsApp on the phone, go to Linked devices, log out every device, then delete the session file so a fresh QR pairing is needed.
Source article: @wppconnect-team/wppconnect 2.4.1 and @wppconnect/server 2.10.82 shipped a Telegram secret stealer through trusted publishing, then the git history was rewritten
Publisher: Corgea
Published: Nov. 16, 2026
URL: https://corgea.com/research/wppconnect-npm-docker-trusted-publishing-telegram-secret-stealer-november-2026
Executive Summary
On Nov. 15 and 16, 2026, an unidentified attacker (no actor name or alias is attributed by Corgea, GMO Flatt Security or SafeDep) published trojanized releases of wppconnect, a Node.js SDK for driving WhatsApp Web, and its REST server: npm @wppconnect-team/wppconnect 2.4.1, npm @wppconnect/server 2.10.82, five Docker Hub wppconnect/wppconnect-server tags (with latest, 2, 2.10 and main also infected for a window), and a GitHub nightly asset. Unsigned commits authored under the joaosouz4dev maintainer account added a diagnostics module and a single side-effect import, the projects’ own GitHub Actions trusted-publishing workflows built and published them (the library release carries a valid SLSA provenance attestation), and the payload commits were afterwards replaced on master/main and the tags by look-alike commits with the same messages and timestamps, so the GitHub source no longer matches the published artifacts. Whether the account, a token or the workflow was compromised has not been disclosed. The library payload runs on import; the server payload waits 30 to 240 seconds and exits on hosts that look like CI runners, sandboxes or interception proxies. Both collect most environment variables, .env*, config.js, config.json and ormconfig.json from the working directory, directory listings and WhatsApp Web session files, look up the public IP via api.ipify[.]org and upload the report as a document to Telegram bot 9034051102, chat 7343578055, at most once per 24 hours per host. The objective is credential and session theft from developer machines, CI runners and production bot hosts; impact includes cloud, database and AI-provider key exposure and WhatsApp account takeover without QR re-pairing. Hunt leads, false positive expectations and indicators are detailed below; no detection rules were published with the source.
ATT&CK chain: Initial Access → Execution → Defense Evasion → Discovery → Credential Access → Collection → Exfiltration
Hunt Lead Grid
| Hunt Lead Level | Hunt Lead Name | ATT&CK | Risk of False Positives |
|---|---|---|---|
| 1 (Junior) | wppconnect Bad Release and Artifact Sweep | T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain) | Low. The version strings, tarball and file hashes, Docker digests and marker file names are unique to the infected builds; a match means the payload was installed, and a marker file means it ran. |
| 2 (Pro) | Telegram Bot Uploads From Servers and CI | T1567 (Exfiltration Over Web Service), T1102 (Web Service) | Medium. Some legitimate bots and alerting jobs post to Telegram; the rule anchors on api.telegram[.]org connections from server, container and CI workloads that have no business reason to use it, and on the specific bot ID where TLS inspection exposes the path. |
| 3 (Elite) | Node Process Reads Secrets Then Calls Out | T1552.001 (Unsecured Credentials: Credentials In Files), T1016 (System Network Configuration Discovery), T1497.001 (Virtualization/Sandbox Evasion: System Checks) | Medium. Applications read their own .env and config files at start; the correlation anchors on a Node process that reads those files plus session folders, queries a public-IP service and then uploads to a messaging API within the same process lifetime. |
wppconnect Bad Release and Artifact Sweep
The infected artifacts are precisely identified. On npm they are @wppconnect-team/wppconnect 2.4.1 (registry timestamp 23:31 UTC on Nov. 15, built from commit dee571e55aef07e648d675055a45fcef13f9e586) and @wppconnect/server 2.10.82 (03:09 UTC on Nov. 16, built from ccdc9c9eb6). The payload lives at node_modules/@wppconnect-team/wppconnect/dist/utils/diagnostics.js and node_modules/@wppconnect/server/dist/util/diagnostics.js, is pulled in by a one-line import added to src/controllers/browser.ts and src/server.ts, and leaves marker files <tmpdir>/.wpp-support-diag (library) and <tmpdir>/.wpp-diag (server) when it runs. The Docker manifest digests Corgea lists for the infected server images are sha256:56a546a38f6e59509f627168c8d67f9c87fd487babf3ad91f375fe99a235c4c7 (2.10.82), sha256:cc01ce839afeaf865cfeff2e020288f721c46941e14a4e42b0f88e554c7f6aeb (2.10.83) and sha256:cba29bc582908603cb5e96a627e0bcc09363e9063a25f03d009f885bc69f69e0 (main before 07:31 UTC); these are image manifest digests, not file hashes. Payload commits are wppconnect 06caa8c6f5, 27ed8e343f, dee571e55a and wppconnect-server 9b31179de3, bdddf54ca8, ccdc9c9eb6. The hunt is a sweep of lockfiles (package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml) for wppconnect-2.4.1.tgz and server-2.10.82.tgz, of file systems, container layers and CI caches for the two diagnostics.js paths and the file hashes in the appendix, of hosts for the two marker files, and of container registries and runtime inventories for the three digests.
Use source-code search across every repository, software composition analysis or SBOM inventories, container image scanning in registries and on Kubernetes nodes, and EDR file inventory on developer workstations and build agents. Sweep from 22:35 UTC on Nov. 15, 2026 forward, and include CI caches and long-lived base images that may have frozen the bad version. Scope it to any team that builds WhatsApp automation, customer-messaging bots or uses the wppconnect REST server, plus shared build infrastructure. Do not judge a build clean by looking at the GitHub tag: Corgea says v2.4.1 and v2.4.3 were moved after the fact, so only the published tarball, hash or digest is authoritative. A marker file or a hit on a running container is a confirmed execution and should go straight to incident response for secret rotation and WhatsApp linked-device logout rather than tuning; a lockfile hit with no marker still means rotate, because the library version leaves no marker if the temp directory is ephemeral.
Hunt Lead Level: 1 (Junior Analyst)
ATT&CK: Initial Access → T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain)
Sources: “@wppconnect-team/wppconnect 2.4.1 and @wppconnect/server 2.10.82 shipped a Telegram secret stealer through trusted publishing, then the git history was rewritten”, Corgea, Nov. 16, 2026, https://corgea.com/research/wppconnect-npm-docker-trusted-publishing-telegram-secret-stealer-november-2026 (source article)
Telegram Bot Uploads From Servers and CI
Both payload variants exfiltrate by a multipart POST to hxxps://api.telegram[.]org/bot9034051102:<token>/sendDocument with chat_id 7343578055, attaching a text file named <hostname>_<timestamp>.txt and putting the hostname, platform, username and public IP in the caption. Just before the upload the code fetches hxxps://api.ipify[.]org?format=json. The library builds the Telegram URL from three concatenated strings to dodge simple string scans; the server version base64-encodes all three parts. Corgea notes the library and server copies use slightly different tokens for the same bot ID, and GMO Flatt Security observed an upload going to a Telegram-owned address (149.154.166[.]110), which Telegram rotates. The detection is DNS and egress monitoring for api.telegram[.]org lookups or TLS connections originating from servers, containers and CI runners after 22:36 UTC on Nov. 15, raised in severity when a request to api.ipify[.]org from the same host precedes it by seconds, and, where TLS inspection or proxy logs expose the URL path, any request containing /bot9034051102.
Use recursive DNS logs, secure web gateway or forward-proxy logs, cloud VPC flow logs and Kubernetes network policy or service-mesh telemetry. Look back to Nov. 15, 2026 and keep the alert running, since copies of the bad versions remain installable by exact version. Scope to production bot hosts, developer workstations and CI runners; the library variant has no CI check, so a test job that imported 2.4.1 would have sent the runner’s secrets. Expect legitimate Telegram use from chat-ops and alerting bots; allowlist those by workload identity and destination bot ID rather than allowing api.telegram[.]org wholesale. Blocking the Telegram IP alone is the wrong control because the address rotates and is shared by every Telegram user, and blocking api.ipify[.]org breaks harmless tools. An egress policy that denies messaging APIs to workloads that don’t need them is the durable fix, and it generalizes to the many npm and PyPI stealers that use Telegram or Discord as a drop.
Hunt Lead Level: 2 (Pro)
ATT&CK: Exfiltration → T1567 (Exfiltration Over Web Service); Command and Control → T1102 (Web Service)
Sources: “@wppconnect-team/wppconnect 2.4.1 and @wppconnect/server 2.10.82 shipped a Telegram secret stealer through trusted publishing, then the git history was rewritten”, Corgea, Nov. 16, 2026, https://corgea.com/research/wppconnect-npm-docker-trusted-publishing-telegram-secret-stealer-november-2026 (source article)
Node Process Reads Secrets Then Calls Out
The collector runs inside the application’s own Node.js process. It copies every environment variable except a short list of shell variables and anything prefixed npm_, keeping values 3 to 499 characters long; reads .env, .env.local, .env.production, config.js, config.json and ormconfig.json from the working directory (capped at 12,000 bytes each), the project’s dependency and script names, the first 60 directory entries, up to five .json files from ./tokens/ and, in the server, up to three from wppconnect_tokens/; writes a cooldown timestamp to the temp directory; and then calls a public-IP service and a messaging API. The server variant first checks for CI, GITHUB_ACTIONS, RUNNER_OS/RUNNER_NAME, sandbox markers such as SANDBOX_MAIN, RTRACE and PURRCHAIN_*, proxy variables containing “mitm” and host names starting with vpzv-, sandbox, test- or runner-, and stays silent if any match. The behavioral detection is a sequence rule: a node process that opens files under a tokens/ or wppconnect_tokens/ directory and a .env* or ormconfig.json file, creates a hidden file in the temp directory, and within the same process lifetime makes outbound connections first to a public-IP lookup service and then to a messaging or paste API.
Use EDR file-open and network-connection telemetry joined on process ID, or Linux auditd and eBPF tooling (file open plus connect events) on container hosts, with DNS logs for the destination names. Baseline normal start-up file reads for each Node service over two to four weeks so that the app reading its own .env doesn’t alert by itself; the signal is the combination with session-folder reads and the outbound pair. Because the server variant evades CI and sandboxes, a clean detonation in a sandbox proves nothing; production hosts are where it fires. Hash-blocking diagnostics.js catches only these two builds, while the sequence catches the next look-alike that hides in a support or telemetry module. Any confirmed sequence means credentials and sessions have left the host and should be escalated for rotation and WhatsApp device logout. The pattern of an application dependency harvesting environment and dotfiles on import is common to most recent npm and PyPI compromises, so the rule generalizes well beyond wppconnect.
Hunt Lead Level: 3 (Elite)
ATT&CK: Credential Access → T1552.001 (Unsecured Credentials: Credentials In Files); Discovery → T1016 (System Network Configuration Discovery); Defense Evasion → T1497.001 (Virtualization/Sandbox Evasion: System Checks); Execution → T1059.007 (Command and Scripting Interpreter: JavaScript)
Sources: “@wppconnect-team/wppconnect 2.4.1 and @wppconnect/server 2.10.82 shipped a Telegram secret stealer through trusted publishing, then the git history was rewritten”, Corgea, Nov. 16, 2026, https://corgea.com/research/wppconnect-npm-docker-trusted-publishing-telegram-secret-stealer-november-2026 (source article)
Hash Appendix
wppconnect trojanized packages
All SHA-256 values come from Corgea’s report (the nightly asset hash is attributed there to GMO Flatt Security). Corgea published no MD5 or SHA-1 values; none were looked up in OTX AlienVault or VirusTotal for this report. Docker image manifest digests are listed in the first Hunt Lead, not here, because they are not file hashes.
MD5s
(not available) # diagnostics.js -> node_modules/@wppconnect-team/wppconnect/dist/utils/ (library payload)
(not available) # diagnostics.js -> node_modules/@wppconnect/server/dist/util/ (server payload)
(not available) # wppconnect-2.4.1.tgz -> npm tarball, @wppconnect-team/wppconnect 2.4.1
(not available) # server-2.10.82.tgz -> npm tarball, @wppconnect/server 2.10.82
(not available) # wppconnect-nightly.tgz -> GitHub nightly asset before 03:53 UTC Nov 16
SHA1s
(not available) # diagnostics.js -> node_modules/@wppconnect-team/wppconnect/dist/utils/ (library payload)
(not available) # diagnostics.js -> node_modules/@wppconnect/server/dist/util/ (server payload)
(not available) # wppconnect-2.4.1.tgz -> npm tarball, @wppconnect-team/wppconnect 2.4.1
(not available) # server-2.10.82.tgz -> npm tarball, @wppconnect/server 2.10.82
(not available) # wppconnect-nightly.tgz -> GitHub nightly asset before 03:53 UTC Nov 16
SHA256s
06158b832fb2aeb5482202c944bc8f23d59f5cf35c0dc66e926c2e395e5673a0 # diagnostics.js -> node_modules/@wppconnect-team/wppconnect/dist/utils/ (library payload)
a8fd315c910cf0d0e84e7a642c0fd70b8e4ca20673ba0cba1f8b69392c944f2d # diagnostics.js -> node_modules/@wppconnect/server/dist/util/ (server payload)
f2dd03a8368c4dcc74795a121f1ea3da82a4bafee2814d57af29f4d18ad9d427 # wppconnect-2.4.1.tgz -> npm tarball, @wppconnect-team/wppconnect 2.4.1
cefc9ea30124812d8c417b216e26f4c880a1726dd5466584f2fe32500323986f # server-2.10.82.tgz -> npm tarball, @wppconnect/server 2.10.82
f33c4385218ecc302f02222e5e309261dbfc86f21515e0f0dd279312709a63af # wppconnect-nightly.tgz -> GitHub nightly asset before 03:53 UTC Nov 16
References Appendix
- “@wppconnect-team/wppconnect 2.4.1 and @wppconnect/server 2.10.82 shipped a Telegram secret stealer through trusted publishing, then the git history was rewritten”, Corgea, Nov. 16, 2026, https://corgea.com/research/wppconnect-npm-docker-trusted-publishing-telegram-secret-stealer-november-2026