DEV Community

muthu kumar
muthu kumar

Posted on Originally published at Medium on

The Malware Came With a Receipt

Three November package compromises shipped through the projects’ own release pipelines, signed and attested. Provenance told everyone where the code was built. Nobody had checked who asked for it.

One Monday morning, the WhatsApp support line of a mid-sized lender started sending its own customers messages that nobody in the company had written. The security team checked the servers first. No intrusion, no odd logins, no new admin accounts. The dependency scanner was green. Every package in the build had a valid signature and a provenance attestation tracing it back to the maintainer’s official GitHub workflow. By ten o’clock the fraud desk was fielding calls about “loan restructuring” links, the head of compliance wanted to know whether this was a reportable breach, and the platform lead kept pointing at the scan report, which was still green.

The code that did it came in through a routine dependency update over the weekend. It read every environment variable the service could see, plus the .env file and the saved WhatsApp session, and posted them to a Telegram bot. Nobody had smuggled it past the gate. It came through the front door, carrying paperwork.

That lender is a composite. They got out of it because their egress proxy only allowed known destinations, so the Telegram upload from the production container was blocked and logged. The session files that leaked came from a staging box. They re-paired the number, rotated staging secrets before lunch, and had a clear customer note out by evening. The rest of it is lifted almost line for line from November.

Three releases, one pattern

On 9 November, an attacker used Ethersphere’s own release bot to publish a GitHub release for an unsigned tag. That release event triggered the project’s legitimate npm publish workflow, which skipped its tests for release events and had no required reviewer. Out came @ethersphere/bee-js 13.3.0 with a postinstall loader, and a signed, Apple-notarized Swarm Desktop build carrying the same loader. Socket verified the SLSA provenance end to end. It was genuine. The npm package came down in 75 minutes. The desktop build sat behind an auto-updater for about eight hours more.

On 15 November, two unsigned commits landed on WPPConnect’s main branch with no pull request. A release workflow was dispatched by hand within a minute. npm served the stealer as latest for about four and a half hours, published by a trusted publisher with accurate provenance. StepSecurity put it plainly: “Provenance proves where a package was built, not whether anyone reviewed the source.” It ran on import, not install, so --ignore-scripts did nothing. When a researcher opened a public issue, the branches were force-pushed within about thirty seconds so the tag on GitHub showed clean code.

Two days later, Microsoft’s agent-framework metapackage on PyPI got two rogue versions within an hour. A .pth file ran the stealer every time Python started, and it asked Azure managed identity and GitHub Actions for fresh tokens. Wiz pointed to a compromised certificate for Microsoft's internal release-signing pipeline. That one had no provenance at all, and neither did the clean releases before it, so nobody downstream could have told them apart.

In all three cases the attacker never forged a signature. They took over a release identity and let the real pipeline do the signing.

What actually worries me

For three years we have told boards that signing and provenance would fix the supply chain. They are good controls. I still want them. But we started treating “this was built by the official workflow” as “this is safe,” and those are different claims.

The attackers have noticed the gap. They no longer steal npm tokens and publish from a laptop, which is noisy and increasingly blocked. They take over whatever identity is allowed to start a release: a bot account, a maintainer’s GitHub session, a signing certificate. From there the pipeline is the accomplice. It builds, signs, attests and publishes, all faithfully.

And look at what the payloads went after. They weren’t hunting files. They wanted credentials: environment variables, cloud metadata tokens, CI OIDC tokens, session files. A malicious dependency inside a CI job with id-token: write can mint its own cloud access. Inside a production container with a fat .env, it walks out with the database password. The package is just how it arrives. Ambient secrets are the prize.

The fix is unglamorous

I think about this in two halves, because most of us are both publishers and consumers.

If you publish anything, internal packages included, treat “who can start a release” as a production permission. Put the publish job behind a protected environment where the approver cannot be the same identity that pushed the tag. Only release from commits that sit on a protected branch and came through a reviewed pull request. Block force-pushes and tag rewrites. Run the publish job with nothing but publish rights, and alert when release behaviour changes: a new install hook, a wheel without its usual source distribution, a release at 3 AM from a bot that normally sleeps. Two of November’s three would have been stopped by a second human on the release button.

Left: any tag or dispatch from a release identity goes straight to the registry. Right: protected source, an independent approver and a scoped publish job, with release anomalies alerted.

If you consume packages, which is everyone, stop installing things the hour they are published. pnpm’s minimumReleaseAge and Renovate's equivalent setting let you hold new versions for a day or more. StepSecurity noted a 24-hour delay would have kept the WPPConnect stealer out completely, and every one of these bad registry versions had stopped being served as the newest release within hours. Commit lockfiles and fail builds that drift from them. Give build jobs and runtime workloads default-deny egress, so a stealer that does land has nowhere to post. And move secrets out of the environment: short-lived, workload-scoped credentials fetched at the moment of use leave far less on the table than a .env file loaded at startup.

Each layer assumes the one before it failed. Cooldown catches most fast-burn releases. Egress control and short-lived secrets cap the damage of the ones that get through.

You don’t need a new product for this. You need someone senior to decide that release governance and dependency intake are architecture, not hygiene the platform team gets to when it has time.

I’ve started hearing auditors ask whether a signed artifact was also a reviewed one. That’s the right question, and November answered it bluntly for a lot of teams.

The receipt is still worth keeping. Just don’t treat it as the inspection.

If your current comfort is “we’re covered, everything is signed,” this is for you and for whoever signs off on that sentence.

Sources: Socket on the bee-js compromise (9 Nov 2026); StepSecurity on WPPConnect (16 Nov 2026); SafeDep and SXZ on Microsoft agent-framework (17 to 23 Nov 2026), citing Wiz Research. The opening story is an illustrative composite, not a specific company.

Hashtags for sharing: #SupplyChainSecurity #SoftwareSupplyChain #DevSecOps #AppSec #CloudSecurity #SLSA #npm #PyPI #OpenSource #SecretsManagement #ZeroTrust #CISO #CTO #EngineeringLeadership #GRC #Cybersecurity

Top comments (0)