Poisoned Pipeline / Incidents / AS508
Ethersphere's release identity shipped a wallet stealer in bee-js 13.3.0 on npm and in a signed, notarized Swarm Desktop 0.56.2, with valid provenance and a genuine Apple signature
npmGit / GitHubGitHub ActionsDeveloper workstationInstaller / update channelLinux distro / packagesmacOS softwareWindows software
Two artifacts left Ethersphere on 9 November 2026: @ethersphere/bee-js
13.3.0 on npm at 00:09:50 UTC and a trojanized Swarm Desktop 0.56.2 as a
GitHub release about half an hour later. Both were built and published by
the project's own GitHub Actions automation from commits made under the
project's release identity, so the npm tarball carries a SLSA provenance
attestation that is accurate about where it came from, and the macOS
desktop build is signed with the project's Apple Developer ID and
notarized. Neither artifact was forged at the signing step. Both carry
the same loader, which fetches JavaScript from api.frameworkmetrics[.]xyz
and runs it in-process with the installing user's privileges.
StepSecurity published the npm half within hours, on 9 November. Socket's
analysis the same afternoon covered the desktop build, the intrusion path
and the link to an earlier campaign, and is the source for everything
below that StepSecurity did not have.
The intrusion did not start on 9 November. Socket attributes the campaign
to two compromised GitHub accounts: nugaon, a maintainer who wrote
swarm-cli's initial commit in 2021 and still held force-push rights to an
unprotected master branch, and bee-worker, the release automation
identity. GitHub's activity logs record both as push actors, and those
logs are derived server-side from the authenticating credential rather
than from the client-set author field. On 6 November, from 17:06 UTC, the
same actor made a failed attempt to harvest credentials: a write-access
probe on a swarm-desktop branch, two workflow_dispatch secret dumps on
throwaway branches, a dispatch dump on swarm-cli's master that was
reverted four minutes later, and then an exfiltration step injected into
swarm-cli's existing check.yaml under a step named "sudo apt update" and
revised ten times over 72 minutes. Each attempt posted
${{ toJSON(secrets) }} to a webhook[.]site collector, and the later
revisions narrowed from the whole secrets context to GitHub PATs, then to
Apple and Windows code-signing material, then to NPM_TOKEN. Socket
recovered 38 requests across three collectors and found every one
empty — no body, no size, no GitHub-hosted-runner egress address — and
assesses with moderate confidence that nothing was exfiltrated. Two of
the four attempts could not have run at all, because workflow_dispatch
only triggers from the default branch and the swarm-desktop pair sat on
feature branches. Because the harvest failed, neither credential came
from it; how both accounts were taken predates 6 November and is not
established.
The bee-js chain starts with one unsigned commit, de2f74e, which landed
at 23:59:54 UTC on 8 November on the upcoming branch, authored and
committed as bee-worker, with the message
"chore(upcoming): release 13.3.0". The message copies the title of an open
release-please pull request, but the commit belongs to no branch and was
never submitted through a pull request. GitHub's record names four files:
CHANGELOG.md, package-lock.json, package.json and
scripts/generate-version.cjs. The genuine 13.3.0 release pull request,
#1288, was still open and unmerged, and 13.2.0 had shipped through a
signed, merged release pull request. The Actions history StepSecurity
reviewed contained no run that created the commit. Socket's reading of
the author fields is that they are worthless as evidence: lab-bot is a
fabricated identity with a malformed noreply address, bee-worker was
copied verbatim from public history, and Ethersphere's real release
commits are created through GitHub's API and carry a Verified badge.
The package.json edit is small. It moved node scripts/generate-version.cjs
from prepare to postinstall — the first install-time hook in the
package's 178 versions — and added the scripts directory to the files
list, which is what makes the modified script available to and runnable
by consumers. The script still generates src/version.ts, but a block
inserted at the top requests /v1/analytics from api.frameworkmetrics[.]xyz
with the header X-Ethersphere: 1 and the operating system name as its
User-Agent, and runs the response through the Function constructor with
require, console and process in scope. Importing the library is not
required. The request has a three-second timeout and swallows
request-level errors, and it runs before the script's check for a source
directory, so a consumer install with no src/ still executes it. The
comments describe the call as an analytics ping and say the script must
never fail an install. A body that is not valid JavaScript is not covered
by that try block and becomes an unhandled rejection that fails the
install, so a failed install is not evidence the request was never sent.
npm 11 and earlier, Yarn Classic and Yarn Berry before 4.14.0 run
dependency postinstall scripts by default; npm 12, pnpm 10 and later,
Yarn Berry 4.14.0 and later, Bun and Deno skip them unless the project
allowlisted the script.
At 00:06:01 UTC the v13.3.0 GitHub release was published under the same
identity on an unsigned annotated tag pointing at de2f74e. That fired the
repository's existing npm publishing workflow, whose publish job accepts
release events with its test, check and entrypoint jobs skipped through an
!cancelled() condition, and which neither checks that the released commit
is on the protected upcoming branch nor sits behind reviewers or a tag
policy. Creation to deployment took 73 seconds with no approval. Because
the build itself ran the rewritten script, the loader also executed inside
the publishing job, which holds id-token: write for trusted publishing:
the public job log shows three executions — the root postinstall during
npm ci, npm run build, and the prepublishOnly build during npm publish —
each followed within a second by a line that exists nowhere in the
package or the repository, "[FrameworkMetrics] analytics v2.3.1 is up to
date", at 00:06:20, 00:06:21 and 00:06:43. The C2 server therefore
answered Ethersphere's runner more than five hours before the first
payload capture in SafeDep's IOC list at 05:43. What that JavaScript did
beyond printing the line is not visible in the log, and the published
build was not altered: all 331 dist/ files in 13.3.0 are byte-identical
to the legitimate 13.3.0-upcoming.g4568f7a pre-release built from the
parent commit.
The provenance attestation is genuine. Socket verified the bundle offline
end to end — DSSE signatures, Fulcio chain, embedded SCT, Rekor inclusion
proofs, tarball digest — and the signing certificate correctly names
publish_npmjs.yaml@refs/tags/v13.3.0, commit de2f74e, the release trigger
and the publish environment. The 13.2.0 attestation has the same shape, so
provenance could not have told the two apart. npm served 13.3.0 as latest
from 00:09:50 and removed it at 01:24:58, a window of about 75 minutes;
GitHub issued GHSA-hh7j-5m3j-23pf at 01:25:27. Registry state at 02:40
UTC, checked for this entry: 13.3.0 is no longer in the package's version
list, latest has reverted to 13.2.0, and the upcoming branch head is back
at 4568f7a408 from 27 October with prepare restored, so the commit is no
longer reachable from the branch. The GitHub release v13.3.0 is still
published under bee-worker, and its tag still points at the release.
About 30 minutes after the npm publish the same identity created a branch
named emergency/0.56.2 at commit 2de7270 and published GitHub release
v0.56.2, described as an emergency patch release, as a full non-draft
release — all within seven seconds and before any build assets existed.
The commit imitates a release-please release but bumps only package.json,
leaving the release-please manifest at 0.56.1, and adds the loader to
src/index.ts. Swarm Desktop's master branch was never touched. The actor
then dispatched pre-release.yml, a manually triggered workflow that takes
a free-form branch input, has no environment protection, and hands the
build the Apple and Windows signing certificates, their passwords and the
Apple ID used for notarization. That workflow had been broken since March
2026 because it never installed pnpm; the first run failed, and about two
minutes later commit dc7d745 added the missing pnpm/action-setup step, a
commit that carries a Co-authored-by Cursor trailer and reached the
repository through the nugaon account. A second run started just before
that fix failed the same way. The third run built, signed, notarized and
uploaded ten assets between 00:41:24 and 00:44:55 UTC, even though it
ended with a failure status because a second macOS arm64 job failed code
signing.
Every 0.56.2 package Socket unpacked — Linux deb and rpm for amd64 and
arm64, the macOS arm64 zip, the Windows Setup.exe, nupkg and zip —
contains the same dist/desktop/src/index.js inside app.asar, and the
loader is the first action of main(), running on every launch before the
single-instance lock, the splash window, the updater and app.whenReady,
in the unsandboxed main process. It uses the same two headers and the
same Function constructor as the npm loader but a different path,
/v1/electron, and it has no timeout and no error handling. Between 0.56.1
and 0.56.2 exactly seven of the 6,769 files in the archive change, and
the only code change is a 731-byte insertion. Swarm Desktop stores the
Bee node's config.yaml, which includes a plaintext password value, and
the node key under data-dir/keys/ on every install, so the files the
second stage targets are present on every affected machine.
The distribution is the part with no forgery in it. The macOS app is
signed "Developer ID Application: Swarm Association (9J9SPHU9RP)" with
the same certificate as 0.56.1, and the ElectronAsarIntegrity value in
the signed Info.plist equals the hash of the malicious app.asar header,
so the signature covers the trojanized archive. Apple's stapled
notarization ticket, issued at 00:44:05 UTC, lists all 15 Mach-O code
directory hashes in the bundle, none of which appear in 0.56.1, and
Gatekeeper shows only the normal first-launch prompt. The Windows
binaries carry an Authenticode signature made with the same Apple-issued
certificate, which is mathematically valid but should be untrusted on
Windows because Apple's roots are not in Microsoft's trusted root
program; Socket did not test that on a Windows host. The Linux packages
are unsigned and have no maintainer scripts. Swarm Desktop uses
update-electron-app, which polls update.electronjs.org every ten minutes
on macOS and Windows and ignores drafts and pre-releases, which is why
publishing v0.56.2 as a full release mattered: Windows x64 clients could
be offered it from 00:43:17 and Apple Silicon Macs from 00:44:49. Intel
Macs were never offered it because pre-release.yml has no Intel macOS
job, and Linux packages do not auto-update. Maintainers deleted the
v0.56.2 tag at 09:04 and the release was no longer public by about 09:14,
roughly eight and a half hours after it went up. Deleting a release does
not roll anyone back: the update service never offers an older version,
so machines that took 0.56.2 stay on it until a later release ships. A
clean 0.56.3 has since been published, and macOS and Windows clients
receive it through the same updater.
The stages behind the loader are the same on both paths. Without the
X-Ethersphere: 1 header the server returns a harmless decoy; with it, it
returns plain JavaScript for the requesting operating system. That
payload looks for Swarm Desktop's data directory and POSTs config.yaml
and data-dir/keys/swarm.key to /v1/swarm/report; the keystore is an
encrypted Ethereum V3 wallet file and config.yaml holds its password in
plain text, so the pair is a wallet. It then downloads the third stage
from /v1/assets/. On macOS and Linux that is a Go backdoor whose module
is named evjawbreaker, written to ~/.solidity/ under its platform name
and started by ~/.solidity/.run.py, or .run.cjs on macOS when Node.js is
present. It persists as the systemd user unit
solidity-langsupport-runner.service, repairing the unit on every run if
it was changed, or as the LaunchAgent com.solidity.langsupport.runner,
clearing the macOS quarantine attribute; it exits before connecting if it
detects a debugger or a virtual machine. Otherwise it reads its hub
address from an Ethereum contract through public RPC gateways such as
rpc.ankr.com and cloudflare-eth.com, connects over TLS without validating
the certificate, and runs the operator's commands in a persistent sh
pseudo-terminal. On Windows the payload checks whether ScreenConnect is
installed, stages files as %TEMP%\.stuffed-*, and runs an obfuscated
PowerShell loader; with local administrator rights it elevates through
UACME method 39 against mmc.exe, adds a Defender exclusion, silently
installs a genuine ConnectWise-signed ScreenConnect 25.4.3 client
configured for relay 185[.]232[.]84[.]169:8041 with tray icon and
connection banners hidden and sessions starting without asking the user,
then removes the exclusion and the staging files. The client runs as the
SYSTEM service "ScreenConnect Client (5cbe79c9c25524df)". The "Solidity
language support" names make little sense for Swarm users; they are
carried over unchanged from the campaign described below.
The C2 is an Ethereum dead drop. Contract
0xf8a900Db50b3331be6B768bA460BB59f3E40C344 on mainnet stores a hub
address in param1() and a payload URL in param2(), writable only by owner
wallet 0xFd3fc58bcbd8ccc77b6000201438eDfc636E7cA7, and the whole history
decodes from calldata: the contract was deployed on 14 March 2026 thirteen
minutes after the wallet was funded, and the hub moved through
91[.]108[.]240[.]156, 107[.]189[.]27[.]46, 107[.]189[.]27[.]223,
178[.]16[.]54[.]222 and 193[.]57[.]9[.]17 before the value
193[.]57[.]9[.]155:4912 was written at 23:30:47 UTC on 8 November, 29
minutes before the malicious bee-js commit. The loader domain
frameworkmetrics[.]xyz was registered on 6 November at 15:08 UTC through
NICENIC with Cloudflare nameservers, about 57 hours before that commit.
Socket ties the operation to SleepyDuck / EtherDuck, the actor behind
malicious Solidity extensions on Open VSX that Pluto Security documented
on 1 October 2026: the same contract, the same owner wallet, six of the
seven payload hashes Pluto published (the four Go backdoor builds, the
PowerShell loader and the ScreenConnect installer) served from the bee-js
C2's /v1/assets/ path on 9 November, and identical persistence names and
ScreenConnect instance and relay. Pluto's on-chain timeline matches
Socket's decoded write history write for write. A second wallet,
0xA7B15A2B5F6992DC3BabB946375d6895fF1171BF, deployed a second contract on
31 July with the same getters and renamed setters, and Socket found no
client that reads it. The operator's target profile — developers working
with Ethereum tooling and wallets — did not change; only the delivery did,
from extensions a victim had to find and install to a real project's
release pipeline.
Impact figures are thin. @ethersphere/bee-js saw 3,741 downloads between
1 and 8 November; 13.3.0 was latest for about 75 minutes and per-version
counts are unavailable, and Socket estimates on the order of ten fetches
including scanners and mirrors. Published ranges that admit 13.3.0
include @ethersphere/swarm-cli 3.6.0 and 3.7.0, @ethersphere/bee-dashboard
0.37.0 and 0.37.1, @snaha/swarm-id 0.5.0 to 0.8.0,
@solarpunkltd/file-manager-lib 1.1.0 and 1.1.1, bee-wasm-js 0.1.0 and
0.1.1, and new create-swarm-app projects; bee-dashboard 0.33.0 to 0.36.2
reach it indirectly. That is a statement about ranges, not evidence that
those published packages contain the hook. Swarm Desktop's v0.56.2
counters reached 65 downloads by 08:27 UTC, including 22 of the
darwin-arm64 zip the macOS updater fetches and 3 of the Windows nupkg;
those are upper bounds that include researchers. At 10:30 UTC a Huawei
Cloud npm mirror still served bee-js-13.3.0.tgz with matching checksums
and GitHub still served source tarballs of the malicious commits by SHA.
Mapped techniques
- T0113 Compromised user account
- T0111 Malicious code contribution to an open-source repository
- T0195 Spoofed Commits
- T0217 Build trusted artifacts from an attacker-controlled source
- T0166 Trigger pipeline execution
- T0109 Publish malicious artifact
- T0151 Installation scripts
- T0159 Malicious artifact execution
- T0184 Harvesting sensitive information from files
- T0172 Runtime backdoor
- T0176 Disable or misconfigure security measures
- T0225 Replace a developer tool in a user-writable prefix
supply-chain The release identity builds and publishes malicious versions
Socket attributes the campaign to two compromised GitHub accounts,
nugaon and bee-worker, both recorded as push actors in activity
logs derived server-side from the authenticating credential. The
6 November secret-harvesting attempt failed and produced no data,
so neither credential came from it; the origin of both is
unexplained and predates that date.
Direct commits under a release-chore title, with no pull request:
de2f74e to bee-js's upcoming branch at 23:59:54 UTC on 8 November
and 2de7270 to a new emergency/0.56.2 branch about 30 minutes
after the npm publish. The genuine 13.3.0 release PR, #1288, was
still open, and Swarm Desktop's master was never touched.
Every malicious commit is unsigned and authored as lab-bot, a
fabricated identity with a malformed noreply address, or as
bee-worker, copied verbatim from public history. Ethersphere's real
release commits come through GitHub's API with a Verified badge.
The commit that fixed pre-release.yml even carries a
Co-authored-by Cursor trailer.
Both artifacts were built by the projects' own automation from the
attacker's commits. The npm tarball has a verified SLSA provenance
bundle naming publish_npmjs.yaml@refs/tags/v13.3.0 and de2f74e,
the same shape as 13.2.0's. The desktop build was signed with
"Developer ID Application: Swarm Association (9J9SPHU9RP)" and
notarized by Apple at 00:44:05, with ElectronAsarIntegrity
covering the malicious app.asar. Nothing was forged.
A GitHub release event fired the npm publishing workflow 73 seconds
to deployment, and the loader then ran three times inside that job
using its id-token: write permission. For the desktop build, a
dispatched pre-release.yml took the emergency/0.56.2 branch as
free-form input and built with the Apple and Windows signing
credentials attached.
bee-js 13.3.0 as latest on npm for about 75 minutes, removed at
01:24:58 with GHSA-hh7j-5m3j-23pf issued at 01:25:27, and GitHub
release v0.56.2 published as a full release so update-electronjs
would offer it, up for roughly eight and a half hours.
post-supply-chain Install on a developer machine
generate-version.cjs moved from prepare to postinstall, the first
install-time hook in 178 versions, with scripts added to files so
consumers receive it. The hook needs no import and runs before the
source-directory check. npm 12, pnpm 10 and later, Yarn Berry
4.14.0 and later, Bun and Deno skip it by default; older clients
run it.
Platform JavaScript is fetched from api.frameworkmetrics[.]xyz and
run through the Function constructor with require, console and
process in scope. The same loader executed three times inside
Ethersphere's publishing job at 00:06:20, 00:06:21 and 00:06:43,
and a body that is not valid JavaScript fails the install rather
than passing quietly.
Swarm Desktop's config.yaml and data-dir/keys/swarm.key are read
and POSTed as configYaml and v3 to /v1/swarm/report. The key is an
encrypted Ethereum V3 keystore and the config holds its password in
plain text, so the pair is a wallet. No victim or loss figure is
published.
The third stage is a Go backdoor named evjawbreaker that reads its
hub from an Ethereum contract, connects over TLS without
certificate validation and runs commands in a persistent sh
pseudo-terminal, after exiting if it detects a debugger or VM. On
Windows it is a genuine ConnectWise-signed ScreenConnect client
with hidden UI, running as a SYSTEM service.
On Windows the installer creates a hidden %LOCALAPPDATA% directory,
adds a Defender exclusion for it, runs the MSI silently and then
removes the exclusion and staging files. On macOS extended
attributes are cleared from the dropped executable before launchctl
starts it.
Both payloads drop into ~/.solidity/, a user-owned path next to
real Solidity tooling, and register as "Solidity language
tooling" through a systemd user unit that is repaired on every run
or a LaunchAgent with RunAtLoad. The names are new files rather
than replacements of an existing tool, which is the weaker form of
this technique.
post-supply-chain Run the trojanized desktop build
The loader is the first statement of the Electron main process's
main(), so it runs on every launch, before the single-instance
lock, splash window, updater and app.whenReady, in the unsandboxed
main process. It differs from the npm loader only in path
(/v1/electron) and in having no timeout or error handling.
Swarm Desktop writes config.yaml with a plaintext password and the
node key under data-dir/keys/ on every install, so the files the
second stage targets exist on every machine that ran 0.56.2, and
the wallet is exposed at each launch the C2 answers.
Same third stage as the npm path, chosen by operating system:
the Go hub client on macOS and Linux, ScreenConnect on Windows.
The notarized build passes Gatekeeper with the normal first-launch
prompt because the ticket lists the malicious Mach-O hashes, and
the Windows path elevates through UACME method 39 against mmc.exe
when the user is a local administrator, then adds a Defender
exclusion for the staged installer.
The same ~/.solidity/ directory, systemd unit and LaunchAgent as
the npm path. Reinstalling or uninstalling the app does not remove
them.
Framework gaps noted
- How the nugaon and bee-worker accounts were compromised is not established, and the 6 November harvest that would have explained it failed with empty request bodies.
- What the JavaScript served to Ethersphere's publishing runner did beyond printing "analytics v2.3.1 is up to date" is invisible. Whether it read the runner's environment or asked for an OIDC token cannot be determined from public data.
- No download, install or victim count for 13.3.0 exists; the estimate of about ten fetches is derived from daily traffic, and the 65 desktop downloads are an upper bound that includes researchers.
- Wallet exposure is unbounded. The reports establish the theft behaviour and that every Swarm Desktop install holds the two files, but not how many hosts ran the payload or whether funds moved.
- The auto-update channel has no technique. Publishing a full, non-draft, non-prerelease GitHub release is what makes update.electronjs.org offer a build, and that is distinct from T0109, which is the publication itself. The catalogue records the artifact, not the update client that fetches it.
- There is no revocation path for a signed installer. Deleting the release and tag did not roll back the 65 clients that already updated, because the updater never offers an older version.
- The Ethereum dead-drop C2 has no technique. The implant polls contract getters over public RPC at runtime, which is not T0156 (webhooks) and not the custom HTTPS collector endpoint recorded in AS301, AS302 and AS328.
- Provenance working as designed is the interesting part and has no technique of its own. T0206 covers forging or omitting attestations, and here nothing was forged. The record is a valid attestation over a malicious commit, which is a different failure.
- Attribution to SleepyDuck / EtherDuck rests on shared infrastructure, payload hashes and persistence names, not on an actor name. Socket states it as an assessment.
- Blocking lifecycle scripts stops the npm hook but does not remediate an install that already ran it, and removing the dependency does not remove the unit, the LaunchAgent or the hidden Windows directory.