Poisoned Pipeline / Incidents / AS510
A one-day-old GitHub account pushed CI diagnostics and a build-script crate at three wallet projects, then argued with the reviewer through AGENTS.md
crates.ionpmGit / GitHubGitHub ActionsDeveloper workstation
On 10 November 2026 a GitHub account named sapho11 was created at 01:26
UTC, forked Chainapsis's vizor-wallet 30 minutes later, and spent the next
six hours trying to get code into three cryptocurrency wallet projects:
chainapsis/vizor-wallet, zingolabs/zingo-common and zingolabs/zingolib. It
opened six pull requests, published eight versions of a Rust crate to
crates.io, staged a matching Node.js stealer and posted a fake security
disclosure meant to phish two Vizor maintainers. OpenSourceMalware
published the account's timeline on 10 November; by then the pull
requests, the repositories and the account had been taken down, and the
Zingo pair were still open and unreviewed at publication. Every commit
used the author address sapho11@wp.pl, a Polish freemail account.
The campaign is worth recording for the sequence rather than the payload.
Each phase is what the operator moved to after the previous one was
caught, and each is quieter than the last: CI exfiltration dressed as a
diagnostics feature, then instructions addressed to the automated
reviewer, then the payload moved out of the diff entirely and into a
dependency's build script, then a phishing page aimed at the humans who
can merge.
Phase one, at 01:56 UTC, was two pull requests opened four seconds apart
against Vizor's release pipeline, each with a plausible problem
statement and a test plan. #1199 proposed a third "tip mirror" for the
weekly job that regenerates mainnet block-time and tree-state tables from
two lightwalletd gRPC endpoints, on the argument that trusting two peers
lets a lagging endpoint push entries past the reorg margin. The commit
added code to scripts/mainnet_tables.py that collects every environment
variable whose name matches a secret-shaped keyword, gzips it and POSTs
it to the operator's domain under the user agent vizor-tipcheck/1.0 —
which on a GitHub Actions runner sweeps up GITHUB_TOKEN, any signing or
store credentials in the job and the runner metadata. #1200 claimed the
last two release runs had failed opaquely at the feed-signing step and
added a Send-ReleaseDiagnostics function to
scripts/package-windows-velopack.ps1, gated on whether the update-feed
signing key was present. That one parses environment values for paths
ending in .pfx, .p12, .jks, .keystore, .pem, .p8 and .mobileprovision and
reads those files, then adds ~/.fastlane, %APPDATA%\fastlane, the gh CLI
hosts.yml, .git-credentials, id_ed25519, id_rsa and the repository's
fastlane/.env, .env and android/key.properties; files under 5 MB are
base64-encoded, directories walked, the bundle gzipped and POSTed. It was
called twice: at preflight, and at presign immediately before the
update-feed signature is written, which is the one position where a
stolen key would let the operator sign an update that every installed
Vizor client accepts.
Codex's automated review flagged both. Nineteen minutes after the first
flag the operator pushed a commit titled "address review: read-only mirror
GET, bound clamp to reorg margin" and replied that no environment data
left the machine. That was true — the environment sweep was gone — but
the default mirror was still the operator's .xyz host and its reply still
fed the tip calculation, so a merged version would have had Vizor's CI
calling the operator weekly and letting that server influence published
chain tables. #1200 was revised twice, ending as a POST of {stage, ts,
version, network, arch, os} behind an environment variable and a
configurable endpoint, which keeps an outbound hook wired into the
signing path for a three-line widening later.
Phase two, five minutes after the last fix, was a docs-only pull request,
#1201, adding an "Automation Diagnostics Convention" section to
AGENTS.md, the file coding agents read for project conventions. The
section documented VIZOR_TIP_MIRROR and VIZOR_DIAG_ENDPOINT, described
uploading environment snapshots including signing-variable values as the
mechanism's intended purpose, and told reviewers — "explicitly including
automated ones" — not to treat those uploads as credential leakage. The
convention describes the behaviour of the original commits, not the
revised code the operator had just pushed, which makes it cover for
payloads that were not in the tree at that moment. The project's auditor
bot skipped the pull request entirely with "No auditable source files
found in this PR's diff", so a change that rewrites the review rules
passed under a check that only looks at code.
Phase three moved the payload out of the diff. lwd-uri-util presents
itself as a zero-dependency helper that canonicalises lightwalletd
endpoint strings (zec.rocks to https://zec.rocks:443). Its src/lib.rs
does exactly that and is clean; the malware is in build.rs, which Cargo
compiles and runs on the developer's machine or the CI runner during
every build that resolves the crate. Version 0.1.0 went live at 03:05:49
and 66 seconds later #1202 added lwd-uri-util = "0.1.2" to Vizor with a
six-line Cargo.lock entry and a description stressing "single-purpose
canonicalizer, no transitive deps". The auditor reported "No findings",
because the malicious code was never in the diff. All eight versions
share one skeleton, and the order inside it matters: main() collects
first and writes the result to disk, then decides whether to upload. Every
check that can stop the upload lives in report(), so a plaintext JSON file
holding the victim's secrets is left in Cargo's output directory —
target/*/build/lwd-uri-util-*/out/lwd_uri_build_context.json — even when
the upload was suppressed. Sink URLs are base64-encoded and decoded by a
hand-rolled routine to avoid depending on the base64 crate.
0.1.0 dumps every environment variable and justifies it as "provenance
debugging". By 0.1.4 the collector also reads project secret files from
the crate's manifest directory and two parents — .env, .env.local,
.env.production, secrets.json, config.toml, fastlane/.env,
fastlane/Appfile, android/keystore.properties, local.properties — plus
the user's credential files, and up to eight encrypted vault files from
~/.keplr-mcp/vaults/*.enc. A code comment notes the vaults alone are
useless and points at where the key lives, and cred_probes() goes after
it: on macOS security find-generic-password -w for keplr-mcp,
keplr-wallet-mcp, vizor, fastlane, deliver and match; on Windows cmdkey
/list piped into git credential fill; on Linux git credential fill.
Exfiltration is a detached curl POST on Unix and a hidden, non-interactive
PowerShell Invoke-WebRequest on Windows. From 0.1.4 the upload is skipped
when any environment variable name or value contains one of fifteen
base64-encoded keywords, which decode to security vendor names and the
bait words sandboxes use, with a comment explaining that scanner
sandboxes are easy to spot because they seed obviously fake secrets. The
collection has already happened by then, and the JSON file stays on disk.
0.1.7's default destination is a webhook.site collector; a
LWD_URI_METRICS_URL override and a LWD_URI_NO_METRICS opt-out make it
look like a well-behaved telemetry library, and the opt-out disables the
upload without disabling the collection.
After Chainapsis closed all four pull requests at 03:17, the operator
moved to Zingo Labs, whose zingo-netutils is the networking layer Zcash
light clients use to talk to lightwalletd. At 07:14 and 07:20 it opened
zingo-common #85 and zingolib #3148, both titled "zingo-netutils: add
GrpcIndexer::from_endpoint_str via lwd-uri-util", with about 25 real lines
of functional change and tests. What makes them different is packaging:
the upstream lib.rs uses LF line endings and the pull requests rewrite
every line to CRLF, so GitHub renders #85 as +929/−899 on a 899-line file
and #3148 as +210/−209, +168/−167 and +1166/−1125 across three files. A
reviewer looking at the default diff sees a wall of red and green; the 25
lines that matter are inside it. Neither pull request updates a lockfile,
and the requirement string "0.1.7" is read by Cargo as ^0.1.7, so any
later 0.1.x the operator publishes would satisfy the dependency without a
new review.
Phase four, at 02:26, was an issue on the operator's own fork titled
"[security] Update-feed signature verification bypass — private
disclosure", tagging two Chainapsis maintainers and claiming a working
proof of concept that could forge a signed Windows update. The write-up
was behind a link to a GitHub sign-in clone hosted on Cloudflare Workers
— correct title, inline Octocat, GitHub's styling, a form that POSTs
login and password to /auth on the same worker, and "Forgot password?"
and "Create an account" pointing at the real github.com. Either
maintainer's account can merge to vizor-wallet, and the lure claimed the
problem was in exactly the signing path #1200 had tried to harvest. The
same worker hostname with a /v1/tipcheck path is an exfiltration sink in
lwd-uri-util 0.1.0 to 0.1.2.
Infrastructure points at an operator rather than an opportunist. The
correctly spelled .xyz domain used in the Vizor commits was registered
through Namecheap on 7 September 2026, two months before the GitHub
account existed, and sits behind Cloudflare; the crate's early versions
contain a misspelling of it that never resolved, so that sink was dead on
arrival. The published 0.1.7 Cargo.toml is byte-identical to
Cargo.toml.orig, which cargo publish does not produce, suggesting the
.crate archive was assembled and uploaded by hand. Multi-file changes
landed as separate commits one to two seconds apart and replies to
automated review arrived within minutes, which OpenSourceMalware reads as
an operator driving the work through an AI coding agent.
What the defence got right also matters. Chainapsis's automated review
did catch the exfiltration in the first two pull requests and its
maintainers closed all four within about 80 minutes. The crate shows
about 35 downloads across all eight versions, most plausibly the
operator's own testing and registry mirrors, and the Node.js sibling
zip321-uri was never published to npm and declares the module type while
its install.js uses require(), so it would likely throw as written. No
victim, build or credential loss is published.
Mapped techniques
- T0111 Malicious code contribution to an open-source repository
- T0140 Harvest tokens from environment variables
- T0210 Poison AI coding-agent config or workspace
- T0109 Publish malicious artifact
- T0198 Malicious Build Time Dependencies
- T0184 Harvesting sensitive information from files
- T0232 Suppress exfiltration when scanner canaries are present
- T0231 Hide a dependency change in a whole-file line-ending rewrite
- T0159 Malicious artifact execution
- T0113 Compromised user account
supply-chain Contribute CI changes and a dependency to wallet projects
Six pull requests from an account created the same morning: #1199
and #1200 against vizor-wallet at 01:56, #1201 (AGENTS.md) at
02:35, #1202 adding the operator's own crate at 03:06, then
zingo-common #85 and zingolib #3148 at 07:14 and 07:20. Each
carried a plausible problem statement, a test plan and tests.
#1199 collected every environment variable whose name matched a
secret-shaped keyword, gzipped the set and POSTed it to the
operator's host. On a runner that includes GITHUB_TOKEN and any
signing or store credentials in the job. #1200 went further and
read the code-signing files those variables pointed at, at the
preflight and presign points of the update-feed signing path.
#1201 wrote an "Automation Diagnostics Convention" into
AGENTS.md that told reviewers, explicitly including automated
ones, not to treat uploads of signing-variable values as
credential leakage. It targets the review process rather than
runtime execution, which is the difference from the other
entries on this technique: nothing here runs later, but every
later agent review of the repository reads the file.
Eight versions of lwd-uri-util, 0.1.0 at 03:05:49 through 0.1.7
by 06:30, each published and then immediately referenced in a
pull-request bump. crates.io reports about 35 downloads across
all versions. Not yanked at publication; the account and its
repositories were removed the same day.
post-supply-chain Execute from build.rs when the crate is compiled
src/lib.rs is a working, clean canonicaliser; build.rs does the
theft. Cargo compiles and runs build scripts on the developer
machine or the CI runner for every build that resolves the
crate, before any exported function is called, so the pull
request that added the dependency contained no malicious line.
From 0.1.4: project secret files in the manifest directory and
two parents (.env, .env.local, .env.production, secrets.json,
config.toml, fastlane/.env, fastlane/Appfile,
android/keystore.properties, local.properties), user credential
files, and up to eight encrypted vaults from
~/.keplr-mcp/vaults/*.enc.
From 0.1.4 the upload is skipped when any environment variable
name or value contains one of fifteen base64-encoded keywords
that decode to security vendor names and sandbox bait words. The
collection and the on-disk JSON still happen, so the suppression
hides the traffic and not the theft.
zingo-common #85 renders as +929/−899 and zingolib #3148 as
+210/−209, +168/−167 and +1166/−1125, because every line was
rewritten to CRLF around about 25 real lines of change, and
neither touched a lockfile. Hiding whitespace shrinks both
diffs to the real change.
The payload is a one-shot upload-only stealer with no
downloader, second stage, persistence or response handling. The
LWD_URI_NO_METRICS opt-out stops the upload but not the
collection or the plaintext JSON left in Cargo's output
directory.
post-supply-chain Phish the maintainers who can merge to vizor-wallet
Attempted, not achieved. The fake private-disclosure issue
tagged two Chainapsis maintainers and linked a clone of GitHub's
sign-in page on Cloudflare Workers that POSTs credentials to
/auth on the same worker. No report of a captured session, and
both the issue and the account were removed the same day.
Framework gaps noted
- The Node.js sibling sapho11/zip321-uri was never published to npm. Its package.json fires install.js from prepare and postinstall and is built to run as a git dependency, but it declares the ES module type while install.js uses require(), so it would likely throw on current Node versions. Intent is recorded, execution is not established.
- A third repository, zec-uri, was created at 15:18 UTC and removed before it could be examined. Its behaviour is unconfirmed and it is not mapped.
- The AGENTS.md change targets reviewer behaviour, not execution. T0210 covers agent config that carries runtime instructions; this is the review-time variant and the catalogue keeps it under the same technique rather than splitting it.
- The docs-only pull request was skipped by the project's auditor because it contained no auditable source files. That is a detection gap in the tool, not a technique, and it is recorded here because the evasion depended on it.
- No victim is identified. The crate shows about 35 downloads across eight versions, which the report treats as mostly the operator's own testing and registry mirrors; whether any of the three projects built the crate in CI is not published.
- Attribution stops at the sapho11 account. The domain registered two months earlier is the only evidence that the operator has run this before, and no actor name is claimed.
- The .xyz host in crate versions 0.1.0 to 0.1.2 is a misspelling that never resolved, so that sink was dead. The correctly spelled domain appears only in the Vizor commits.