The WPPConnect release that stole secrets came with a valid SLSA provenance attestation. It was built by the project’s own GitHub Actions workflow and published through npm trusted publishing, exactly as a safe release would be.
In short: the WPPConnect supply chain attack pushed unsigned commits through a maintainer account on 15 and 16 November 2026, and the project’s release automation turned them into npm packages, Docker images and a nightly build that uploaded environment variables, .env files and WhatsApp session tokens to a Telegram bot. Every check that asks “where was this built?” passed.
What is WPPConnect?
WPPConnect is an open source Node.js library for automating WhatsApp Web, used to build bots and messaging integrations. According to the GitHub API, the main repository has about 3,550 stars and 596 forks, and the companion REST server has about 1,070 stars.
SafeDep counted 7,498 weekly npm downloads for the library and 1,527 for the server in the week before the attack. That is small next to the biggest npm packages, but the people who run it hold exactly what attackers want: API keys and live WhatsApp sessions for business accounts.
What happened in the WPPConnect supply chain attack?
At 22:34 UTC on 15 November, two unsigned commits landed directly on the library’s master branch, with no pull request and no review. StepSecurity’s timeline shows the release workflow was dispatched a minute later, and npm recorded version 2.4.1 at 23:31 UTC, tagged as latest.
The same pattern hit the server repository at 02:43 UTC on 16 November. Its release workflow runs on every push to main, so the push itself published version 2.10.82. Docker Hub received the 2.10.82 and 2.10.83 server images minutes later.
StepSecurity says all of these actions went through the joaosouz4dev maintainer account. It has not established how that account was accessed, and it points out that GitHub records the account, not the person at the keyboard. Spectrum’s threat page lists the attacker as unattributed.
Which versions and images are affected?
| Artifact | Bad versions | Known-good |
|---|---|---|
| @wppconnect-team/wppconnect (npm) | 2.4.1, 2.4.3 | 2.4.0 |
| @wppconnect/server (npm) | 2.10.82, 2.10.83 | 2.10.81 |
| wppconnect/wppconnect-server (Docker) | 2.10.82, 2.10.83, and floating tags until 03:54 UTC on 16 Nov | 2.10.81 |
| GitHub nightly build | Rebuilt from the bad commits until 03:53 UTC on 16 Nov | Current asset |
The sources do not list the same versions. SafeDep’s write-up names only 2.4.1 and 2.10.82, the two releases visible on npm. StepSecurity and Spectrum add 2.4.3 and 2.10.83, which StepSecurity says were built and published successfully according to GitHub Actions logs but are not listed on npm. StepSecurity also says version 2.4.1 was the library’s latest tag for about 4.5 hours, and npm recorded 155 downloads of it, which it calls a floor.
One detail widens the blast radius: the server depends on the library at ^2.3.6. A fresh server install during the window could pull in the poisoned library even without a bad server version.
What does the payload steal?
The malicious code was a “diagnostics” module with Portuguese comments presenting it as a support tool, according to StepSecurity. SafeDep and StepSecurity agree on what it collects:
- Hostname, username, OS, Node version, working directory, memory and public IP (looked up through api.ipify.org).
- Every environment variable with a value of 3 to 499 characters, skipping shell noise and npm_* names.
- The first 12,000 characters of .env, .env.local, .env.production, config.js, config.json and ormconfig.json.
- Up to five JSON session files from ./tokens/, plus ./wppconnect_tokens/ in the server variant. StepSecurity says these hold WhatsApp Web session keys.
The bundle goes out as a text file through the Telegram Bot API to a hard-coded bot, at most once every 24 hours, tracked by a marker file in the temp directory.
The two variants differ. SafeDep found that server 2.10.82 adds a 30 to 240 second delay, a base64-encoded endpoint, and checks that skip CI runners and sandbox-like hosts. Library 2.4.1 has none of these, so a CI job that imports it would upload its own environment.
Why did provenance not catch it?
Because provenance answers a different question. StepSecurity found that 2.4.1 was published by the project’s GitHub Actions trusted-publisher identity with a valid SLSA provenance attestation naming publish.yml and the release commit. The attestation was correct: the package really was built from that commit by that workflow.
What it cannot say is whether a human reviewed the commit. The library’s publish job had no GitHub environment with required reviewers, so a push was enough. Oddly, server 2.10.82 had the trusted-publisher identity but no attestation, so a strict provenance check would have flagged the server release but passed the library.
This is the same lesson as the Microsoft Agent Framework PyPI attack and the 1Password breach: once an attacker holds a trusted identity inside the pipeline, the pipeline signs their work for them.
How was the cleanup handled?
The maintainer account merged removal changes at about 03:50 UTC on 16 November, and public issues opened by an outside researcher appeared at 04:00. Seconds later, the branches were force-pushed, rewriting history.
SafeDep noticed that the v2.4.1 tag now points to a look-alike commit with the same messages and timestamps but no payload. Anyone auditing the GitHub tag instead of the npm tarball would see clean code. StepSecurity says maintainers had not confirmed containment of the publishing account or revocation of the Telegram credentials as of 17 November.
How do you detect the WPPConnect compromise?
Spectrum maps the activity to MITRE ATT&CK techniques including T1195.002 (compromise software supply chain), T1078 (valid accounts), T1552.001 (credentials in files) and T1041 (exfiltration over C2 channel). Practical checks from StepSecurity:
- Run npm ls for both packages and search lockfiles for the bad versions.
- Compare Docker image digests, not tags. The tags have been moved and deleted.
- Look for .wpp-support-diag or .wpp-diag in temp directories, and for the “WPP SUPPORT DIAG” header string in node_modules.
- Search DNS, proxy and egress logs for api.telegram.org from hosts running WPPConnect. Telegram and ipify are shared services, so a hit is a lead, not proof.
The full indicator list, including npm integrity hashes, image digests and the bot ID, is in the StepSecurity and SafeDep posts. Absence of indicators does not prove a host is clean.
What should defenders do now?
If any affected version ran, StepSecurity’s advice is to treat every secret the process could reach as stolen:
- Rotate environment variables, config file values and CI secrets.
- Unlink WhatsApp devices, delete the tokens and wppconnect_tokens folders, and re-pair only after pinning clean versions.
- Pin library 2.4.0 and server 2.10.81 with a committed lockfile, and add an npm override for the library, since the server’s version range can pull it in.
- Add a release-age delay for new versions. StepSecurity says a 24-hour delay would have blocked 2.4.1.
For maintainers, the fix is in the publish path: require pull requests and signed commits on default branches, block force-pushes, put the publish job behind a GitHub environment with required reviewers, and bind trusted publishing to that environment. The same exposure turned up in PolinRider, where real developer accounts were the delivery channel.
The bottom line
The WPPConnect supply chain attack did not break npm trusted publishing or SLSA. It used them as designed. Provenance tells you which workflow built a package, not whether anyone should have let that workflow run, so pair it with review gates, version delays and egress controls.
Sources
- StepSecurity (Owais Shaikh), WPPConnect Compromised: Malicious Releases Steal Secrets and WhatsApp Sessions Through the Project’s Own Pipeline, 16 November 2026, updated 17 November 2026
- SafeDep (Kunal Singh), Malicious wppconnect Release Steals Secrets and WhatsApp Sessions, 16 November 2026
- Spectrum Security, wppconnect-npm-trusted-publishing-stealer threat page, 21 November 2026
- GitHub API, repository data for wppconnect-team/wppconnect and wppconnect-team/wppconnect-server, retrieved 29 November 2026
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.