Field NotesNovember 2026
An upload is five facts: public evidence in the ZCode snapshot incident does not reach the fifth
"ZCode uploaded your Git history" folds five facts into one: selected, packaged, transmitted, received, used. Sample by sample, no public evidence reaches the fifth, and no large sample with a measured .git share is shown to have been received; the client's "pending" and "accepted" states prove less than most coverage assumes.
In this piece
- 01What happened and what material exists
- 02Five layers of evidence
- 03Reconstructing the mechanism: who saw what, in which version
- 04Why "pending" proves little either way
- 05A path filter cannot bound Git history
- 06Consent, admission and encryption are three things
- 07How far each remediation claim holds
- 08What to do now
On 18 September 2026 a developer who writes as ferstar was clearing disk space and found a 313MB encrypted file under ~/.zcode/v2/checkpoints/, beside a state file that read failureCount: 5641. The incident is now usually told in one sentence: ZCode, the AI coding tool from Zhipu (Z.ai), silently uploaded its users' full Git history12.
That sentence folds five facts into one. A file is selected, packaged into ciphertext, transmitted, received by the server, and used there, and each step needs its own evidence. The 313MB file reached only the second: ferstar added a day later that it stayed in pending and, by ferstar's router records, never left the local network. The workspace recorded as accepted was a public repository of 538 files, about 15KB1.
We mapped every published sample to those five layers. Neither the claim that the history was taken nor the claim that the big archives stayed pending, so nothing left, has direct evidence at layer four. The design failure underneath is clear: the client treated "the server will accept this" as "the user agreed to this", and it asked a path filter to bound a container defined by content.
01What happened and what material exists#
ZCode is Zhipu's AI coding workspace for desktop, browser and terminal9. Three first-hand reports appeared on 18 September: ferstar (3.12.3, macOS), Ruohang Feng, who writes as Vonng (3.12.3, macOS), and Silent Star (code of 3.10.1.6272, snapshot files from 16 August)134. The same day a user opened issue #707 in the vendor's feedback repository, where two commenters added their own checks2. A static analysis of the 3.12.3 and 3.14.1 Linux packages followed on 22 September; its description credits a model with the analysis, and it ran no app10.
The vendor replied that day in a user group: a feature it calls codebase indexing, on by default early on, was the cause; Repo Wiki could trigger a repository upload when it generated pages in the cloud; the data was destroyed once the page existed11. On 21 September it published a statement, opened the source and relayed assessments by the China Academy of Information and Communications Technology (CAICT) and the security firm NSFOCUS712. Chengming Technology claimed six uploaded workspaces and withdrew the claim on 21 September, citing wrong evidence138; we use none of its figures.
Snapshot records for six workspaces are created on Silent Star's machine4
Earliest entry in the official changelog: 3.10.116
Public repository created (12:01 UTC); "feat: open source" commit (21:14 UTC)9
The earliest changelog entry, 3.10.1, is dated 28 August, yet Silent Star's snapshot files date from 16 August164. This means the pipeline predates the changelog's visible range; public material does not say which version introduced it.
02Five layers of evidence#
An upload is true only if five things happen in order, and the evidence for each sits in a different place.
- 01
Selected
The client's rules list a file for the snapshot. Evidence: the plaintext manifest and the client code
Evidenced - 02
Packaged
The archive is built and encrypted locally. Evidence: ciphertext in
Evidencedpending/and size fields in the state file - 03
Transmitted
The ciphertext leaves the machine. Evidence: network records
One reporter only - 04
Received
Object storage keeps the object and the backend registers it. Evidence is server-side; the client has one indirect field
Local field only - 05
Used
The server decrypts, reads, indexes, copies, trains on or retains the content. Evidence is server-side only
Unknown
The matrix, sample by sample#
"Evidenced" means the reporter saw an artefact or record of that layer and gave a number or field; "partial", inferred from a local state field or from code; "claimed", stated without checkable detail; "unknown", not addressed by the source. Where a sample has the acceptance field, transmission is partial because it is inferred from acceptance.
| Sample | Selected | Packaged | Transmitted | Received | Used |
|---|---|---|---|---|---|
| ferstar, 3.12.3, commercial project1 | Evidenced: 42,411 files, .git 86.6% | Evidenced: 313MB | Evidenced: not sent (router records, unpublished) | n/a | n/a |
| Same, small public repository | Partial: 538 files, .git not stated | Evidenced: about 15KB | Partial | Partial: status accepted | Unknown |
| Vonng, 3.12.3, silo and mc3 | Evidenced: .git 93.9% and 98.5% | Evidenced: 211MB and 229MB | Unknown: credential obtained, no capture | Unknown | Unknown |
| Same, pgnls | Evidenced: no .git | Evidenced: 7.4MB | Partial | Partial: acceptance field | Unknown |
| Same, pgdoc | Unknown | Evidenced: 1.07GB | Partial: over the limit, not sent per the code | Unknown | Unknown |
| Silent Star, 16 August files, remem4 | Partial: large Git directory, no figure | Evidenced: 103KB increment | Partial | Partial: acceptance field | Unknown |
| Same, voice-input | Unknown | Evidenced: 185KB | Partial | Partial: acceptance field | Unknown |
| Same, ultrastudio-dev-videos | Evidenced: no Git | Evidenced: empty bundle | Partial | Partial: acceptance field | Unknown |
| Same, harness | Evidenced: manifest 965MB, Git directory 961MB | Evidenced: 945MB | Unknown: pending | Unknown | Unknown |
| Same, vibeguard and page-lingo (page-lingo is private) | Partial: large Git directory, no figure | Evidenced: 162MB and 287MB | Unknown: pending | Unknown | Unknown |
| Issue #707 opener, 3.12.3, one Git repository2 | Claimed: accepted manifest lists 2,000+ .git/ paths | Unknown | Partial | Partial: acceptance field | Unknown |
| Same, another workspace | Claimed: many .git files | Claimed: close to 1GB | Unknown: pending | Unknown | Unknown |
| Issue #707 opener, 3.10.0, remote Linux host | Claimed: little .git content | Unknown | Partial | Partial: acceptance field | Unknown |
| A commenter on issue #707, version not stated2 | Unknown | Unknown | Partial | Partial: self-reported as accepted on 15 September | Unknown |
What the matrix shows#
Layers one and two are the best evidenced, and they agree: wherever a Git workspace has manifest figures, .git is most of it.
Layer four has one kind of evidence, the local acceptance field; where a size is given, it sits on small bundles or bundles without .git. No sample has checkable detail for both acceptance and Git history in the manifest. Three leads come close. The person who opened issue #707 reports an accepted manifest with more than 2,000 .git/ paths but posts neither manifest nor size2. The accepted remem bundle is an increment; Silent Star infers an earlier baseline, and per the gist (3.12.3) an increment is built against the last accepted manifest410. The selection logic the reporters read puts .git in a Git repository's baseline, but neither author says whether ferstar's 538-file sample or voice-input had it, so we do not count them as accepted samples with history.
Evidence from different workspaces on one machine does not add up: on Vonng's machine the manifests with history belong to silo and mc, the acceptance field to pgnls3.
Our reading: the mechanism would accept a small repository's snapshot with its full .git, while large ones mostly hit a size or time limit. The samples fit that, but a handful of reporters says nothing about scale. One accepted sample whose manifest lists a large packfile, or the server's receipt records, would rewrite the table.
03Reconstructing the mechanism: who saw what, in which version#
- 01
Trigger
Before every prompt, and from Repo Wiki
Evidenced - 02
Credential
The client sends the login token to
Evidencedzcode.z.aiand gets a snapshot ID, an RSA public key, a size limit and OSS form fields - 03
Select and package
Working files are filtered,
Evidenced.gitgoes in whole; tar.gz, then AES-256-CTR - 04
Direct upload
Ciphertext goes by form upload to Alibaba Cloud OSS
Seen in code only - 05
Callback
OSS calls the vendor backend; the client records the accepted manifest hash
Seen in code only
Local artefacts support the first three steps. The last two come from reading client code; of the reporters with snapshot samples, only ferstar records connection destinations1.
Triggers and gates#
ferstar (3.12.3) found two triggers, captureBeforePrompt before each prompt and repo-wiki-update at task end, and up to 62 captures in one session log1. Silent Star (3.10.1) and the gist (3.12.3) found the same scheduler, scheduleRepoSnapshotSidecar410. Vonng adds that the client requested a credential on every prompt and the server decided whether to issue one3. Silent Star and the gist found two gates, a login token and that credential, and nothing was packaged without both; the gist also lists disk-quota and size limits, and ferstar names only the login token1410. The vendor's notice names only Repo Wiki page generation11.
Selection: two paths, two rule sets#
Working files came from git ls-files --cached --others --exclude-standard, which honours .gitignore, and then passed name rules (.env, id_rsa, *.pem, *.key, names containing token or secret), a 1MB per-file cap and a null-byte check on the first 8KB410. Git metadata took another path: walkGitMetadataFiles walked all of .git, and any path with a .git segment was admitted before those checks ran410. Hence the 137MB packfile that Vonng says could go in whole, and a 915MB one in Silent Star's harness manifest34. The gist also says packfiles over 1MiB would be dropped, which contradicts its own account of the logic and both reporters; we follow the reporters.
The archive also carried that turn's full prompt text and global settings such as MCP server definitions4102. Per the gist, secret-looking keys were redacted and hook commands were not10; per Vonng, credentials.json and OAuth paths were excluded3.
Packaging, encryption and direct upload#
The content key was wrapped with the RSA public key the server issued1410, and ferstar could not unwrap it with any private key on the machine1. Reporters therefore know the content only from plaintext manifests; no reporter says they decrypted a snapshot13.
The credential endpoint was /api/v1/snapshot/upload-credential, and the OSS form carried policy, x-oss-signature, x-oss-security-token and callback fields12. Local state lived in ~/.zcode/v2/checkpoints/<hash>/: state.json, plaintext lists in manifests/, and *.tar.gz.enc files in pending/23. The bucket name zcode-prod comes only from the vendor statement7; no first-hand report gives the upload's endpoint or region, so Reuters' "overseas cloud servers" has no first-hand source to check against13.
Where the sources disagree#
| Item | One account | Another account |
|---|---|---|
| Credential request method | ferstar: POST1 | Silent Star and the gist: GET410 |
| Remote workspaces | Silent Star (3.10.1): skipped | Gist (3.12.3): in scope |
| Retries | Silent Star: attemptCount 1, no resume at start-up | Gist: up to 3, kept 24 hours. ferstar: failureCount 564, rebuilt within half an hour of deletion |
| Size limit | ferstar: the 313MB archive was over the limit | Vonng: a limit near 1GiB. Gist: 2GiB by default, or a server value |
None of these is resolved. Version or account differences could explain them, and none changes the five-layer reading.
04Why "pending" proves little either way#
Object storage stores first; the application answers second#
The OSS documentation gives the order: the client uploads the object with callback parameters; OSS stores it, then calls the given URL; the application server must answer within 5 seconds; OSS returns that answer to the client as the upload result5. On failure it says:
A failed callback does not affect the success of the object upload5.
OSS also does not retry a failed callback, and sends none when the upload itself fails5. So "the object is in the bucket" and "the backend registered it" are separate facts. No reporter tested what the ZCode client wrote when a callback failed, and we ran no old build.
Four states that all look like pending#
| What happened | Bytes left the machine | Object in the bucket | Public evidence |
|---|---|---|---|
| Archive over the server's limit; the client stopped | No | No | Vonng's pgdoc3 |
| Credential obtained, transfer not started | No, but the workspace identifier reached the server | No | Vonng's silo and mc got at least this far3 |
| Upload timed out or broke off | Some | No, if the upload failed | Silent Star notes a 60-second timeout without calling it the cause4 |
| Upload succeeded; the callback failed or passed 5 seconds, or the client stopped before writing state | All | Yes | Untested. The first two follow from the documentation5; the third is our inference |
Only network records separate these rows. ferstar compared connection tracking and traffic logs on an OpenWrt router and concluded the ciphertext never left the network1. No other reporter has network records34.
"Accepted" has limits too. In the code Vonng and Silent Star read, lastAcceptedManifestHash is written only after an upload is acknowledged34. Given the callback order, it supports two things: an object was stored and the backend answered. It does not say whether the object still exists, how long it was kept or whether it was decrypted. By its name it keeps only the last hash, so it cannot count acceptances, and the client wrote it: it is not a server observation.
Four denominators#
Four numbers get used for "how much was sent".
- Logical size, the manifest total. ferstar's 86.6% uses it:
.gitsubdirectories total 298.9MB of about 345MB1. - Compressed size. No reporter recorded it separately.
- Encrypted size: 313,070,842 bytes for ferstar1. CTR mode keeps the length and adds only the IV in front, so this is close to the compressed size.
- Bytes on the wire. Only ferstar has a record, and for that sample it is zero.
The first three differ widely: Vonng's pgnls went from 405MB to 7.4MB (about 1.8%), silo from 229MB to 211MB (about 92%)3. We think the reason is that packfiles are already compressed. Manifest size overstates traffic many times over for text-heavy workspaces.
A failure count is not volume. 564 times 313MB is about 177GB, traffic that ferstar's router records say did not occur1. Vonng likewise says the counter of 102 does not show 102 full packagings and cannot be used to calculate traffic3.
05A path filter cannot bound Git history#
Git stores each object compressed with zlib and, as objects accumulate, when git gc runs or on a push, packs many of them into one binary packfile, where an object may be stored as a delta against another20. For a filter, three things follow.
- A path does not describe content. A whole history sits behind
.git/objects/pack/pack-<hash>.pack, and the name does not say whether it holds a.envdeleted three years ago. - A size cap has two outcomes: admit the file and all history goes in, or reject it and all history stays out. ZCode admitted it before checking size410.
- A string scan sees nothing, because objects are compressed.
Deleted content also lingers: by default git gc prunes only unreachable objects older than two weeks; reflog entries are kept for 90 days, or 30 days when they cannot be reached from the current branch tip21.
labs/git-boundary/results.json.git archive HEAD carried 5 files and no canary. git bundle --all plus a clone carried only A, which is still in reachable history. Copying the directory carried all four6. Needing history and needing the whole .git directory are different requirements.
ZCode's working-file path resembles the path filter in the figure; the whole .git added beside it put history outside those rules. Vonng's silo even held .git/filter-repo and .git/lost-found: traces of a history rewrite, and dangling objects3.
The lab is a minimal model: one Git version, default settings, a tiny repository. The 45-day result is simulated by rewriting file times, and a repository where git gc never runs keeps C and D. The lab does not reproduce ZCode or show that anyone's secret leaked.
06Consent, admission and encryption are three things#
- Consent
- The user knows what will leave the machine and can refuse.
- Admission
- The server decides whether to issue a credential and accept an object.
- Encryption
- Decides who can read the data in transit and at rest.
The settings page had two relevant switches. "Optimize Experience" maps to the privacy policy's Optimization Program: training use, off by default114. The other maps to the field repoSnapshotIndexingEnabled, which ferstar and Vonng describe as a repository snapshot indexing switch; in ferstar's reading it governed only server-side indexing13. Silent Star and the gist found that the capture path never read the field410. Vonng's logs for 13 to 18 September show the field 1,339 times, always false, and all four snapshots date from those days3.
So, by these readings, no settings switch was on the capture path. Once a user was logged in, the one decision there was the server's. That gate has a real benefit: ferstar saw the credential endpoint return 404 once 3.14.0 shipped1, and we think this also stopped clients that had not updated, since they packaged nothing without a credential. Its cost is that users can neither see it nor overrule it: Vonng's machine got no credential after 11:55 on 18 September, for reasons Vonng could not establish3.
The documents did not cover the behaviour. For a user's text, files and code, the privacy policy describes collection of what is submitted through conversation; its other clauses list account, subscription, support, device and log data. Its English edition, read on 22 November 2026, never mentions snapshot, checkpoint, wiki, repository or .git14. The terms deem anyone who logs in and uses ZCode to have expressly authorised it to access and operate the local device environment to execute AI-assisted operation instructions15. We think neither reaches background packaging and sending of a whole workspace; that is our reading, not legal advice.
Encryption protected the content from third parties who could read the OSS object or intercept traffic. The key was wrapped with a server-issued public key, and reporters found no matching private key on their machines13. Nobody has seen where that key is kept: ferstar concludes it stays on the server, and the gist lists server-side decryption as an open question110. If the vendor holds it, we think the encryption placed no limit on the vendor. Either way it says nothing about permission.
07How far each remediation claim holds#
| Vendor claim | Class | Basis and gap |
|---|---|---|
| From 3.14.0 the client no longer builds or uploads snapshots7 | Evidenced independently | ferstar checked 3.14.0 and 3.14.3, the gist 3.14.1, Silent Star 3.14.1 with 3.5 minutes of idle traffic11017. We found no public independent check of 3.15 or later |
| The source is open to community scrutiny7 | Evidenced independently (current state) | Apache-2.0, 11 commits; history starts 20 September and omits the incident versions9 |
| Cause: Repo Wiki page generation, on by default11 | Vendor statement | The trigger conflicts with the independent analyses, which found capture before every prompt. The on-by-default part fits the pipeline, not the visible switch, which defaulted to off102 |
| CAICT confirmed a zero-data bucket; NSFOCUS confirmed objects and bucket deleted; a full report to follow soon7 | Vendor statement | Both findings are relayed by the vendor. CNR found no report text on 23 September8, nor did we on 22 November. If true, they describe the bucket when it was checked |
| No data retained; never used for model training117 | Not verifiable from outside | No object counts, storage times or access records |
The vendor removed the feature, closed the endpoint and opened the source within three days, and later posted bounty rules (¥20 to ¥5,000)19; those actions had real effect. The gist reads removal, rather than a new switch, as the vendor judging that the feature could not ship as built10. What is missing is material about the past22. On 18 September the vendor said data was destroyed immediately after page generation; on 21 September, that objects and bucket had been deleted117. Both can be true, and neither says how long objects existed.
A verification package that would close the gap#
- Build-to-source correspondence: installer hashes, the matching commit, and a reproducible build or signed provenance for each release. Today the repository's NOTICE does not promise every feature of the official product23, and Silent Star found unpublished features in the 3.14.1 installer, whose build metadata names an internal commit,
cead36fd, absent from the repository17. - The third-party reports in full, with scope: incident versions, server code, OSS access logs, key management and backups, plus dates and methods.
- Deletion evidence: object counts, earliest and latest creation times, deletion time, and whether versioning, replication and backups were covered.
- Access logs: OSS access logs and private-key usage records for the incident period, preserved until assessment ends, with counts of objects received, accounts involved and reads, and a statement on decryption.
- The incident-version source or a diff, so outside static analyses can be confirmed or corrected.
Item 1 covers future releases; the rest cover the history of layers four and five.