Archive of AI

Source Snapshot / 2026-09-18-zhipu-zcode-silent-workspace-upload-4

ZCode 静默上传工作区与 Git 历史的原始调查及复查

Linked event: 2026-09-18 · Zhipu AI (Z.ai) ZCode Found Silently Uploading Encrypted Local Source Code and Git History Without Consent, Prompting Corporate Legal Demand

Publisher
独立研究者 ferstar
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 97195e1e7e0e970b
Original URL
Open source ↗
Wayback Backup
Wayback archive ↗
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] 9月18日公布日志、打包和上传流程分析;后续更新区分失败上传样本、成功上传样本及修复后的检查结果。

[正文前段节选] Skip to main content

Code is cheap, let’s talk

Code is cheap, let's talk/

Inside ZCode: Silently Uploading Your Entire Git History to the Cloud/

Inside ZCode: Silently Uploading Your Entire Git History to the Cloud

Sep 18, 2026·17 mins·

#Reverse Engineering

Study & Export

Prompt with Markdown URL

Analyze in Claude context

Copy Markdown

For Obsidian, Logseq & Local Agents

Buy me a coffee

Scan to support via WeChat / Alipay

WeChat (Click to zoom)

Alipay (Click to zoom)

Or support via Afdian →

Thanks for supporting independent writing & sharing! ☕

Table of Contents

I am not a native English speaker; this article was translated by AI.

It started with a routine check while freeing up disk space: ~/.zcode was taking up over 700MB. After digging into it intermittently, I confirmed something pretty wild:

Whenever you are logged in, ZCode (Zhipu’s official AI coding desktop app) silently packages your entire workspace — complete .git history, LFS asset cache, reflogs, and global app configs — encrypts it, and uploads it directly to Aliyun OSS.

Even more ironic: the RSA public key used for encryption is delivered on the fly by the server, while the private key lives exclusively in the cloud. You cannot decrypt that multi-hundred-megabyte ciphertext sitting right on your own disk, and neither can the ZCode client itself.

Here is the complete record of the investigation, the evidence chain, and a one-liner defense that permanently shuts it down.

(Note: Following official responses and open-source updates, see the Sep 21 and Sep 23 sections below for code verification and real-world testing; first-time readers can jump straight to the technical breakdown below.)

Update, 2026-09-23

Earlier this evening (Sep 23), ZCode pushed client v3.14.3, and the public repository shortly followed with a matching commit (328c1a0 feat: update v3.14.3), keeping public repository tags aligned with the released client version.

That said, an important engineering caveat: matching version tags does not guarantee a 1:1 identical match between proprietary compiled binaries and public source code, and one cannot make absolute assumptions without byte-by-byte reproducible builds. Below are the objective verification findings from both the public repository diff and local client runtime:

Open-Source Repository Diff Review:

Audited the commit across 282 changed files; the previously captured /api/v1/snapshot/upload-credential and AES-256-CTR packaging pipelines remain completely absent;

The checkpoint mechanism (gitCheckpointService.ts) continues to rely strictly on local Git CLI diffing with zero cloud dependencies;

New code primarily introduces multi-channel IM bots (remote control via WeCom, Feishu, DingTalk, Telegram) and workflow execution optimizations.

Local Client Runtime Verification:

The local desktop application updated to 3.14.3; unpacking the packaged assets (app.asar) shows zero occurrences of repoSnapshot logic;

Real-time process logs and the ~/.zcode/v2/checkpoints/ directory confirm no whole-workspace scanning, packaging, or new .enc archive generation.

Having public diffs to cross-check with each release is certainly more reassuring than black-box updates. But for any proprietary desktop app, what the code says is one thing, and how the binary behaves locally is another — keeping the read-only directory lock outlined below remains the most dependable baseline defense.

Update, 2026-09-21

This morning (Sep 21) at 09:23, ZCode officially posted a statement on X and dropped their supposed open-source core repository (GitHub: zai-org/ZCode). With the source code now public alongside the officially cited third-party evaluation findings, official explanations can finally be cross-referenced line by line against the actual codebase.

1. Code Review: A Stripped-Down Two-Commit Drop (PRs Locked, Issues Disabled)

Digging into the newly published Git repository, the picture matches expectations of standard corporate defense:

Historical Git commits completely wiped: The repository contains only two commits — an empty initial commit, followed by a massive feat: open source commit dumping 6,973 files and 1.03 million lines of code at once. The internal development commit history of the open-source repo itself was entirely flattened; there is no way to trace the evolution of the old upload sidecar, nor any commit diff showing how the repoSnapshot pipeline was excised. Moreover, the repo locked PRs and closed Issues, making it strictly a one-way code dump.

License: Apache-2.0.

Upload pipeline fully purged: Searching the codebase for the previously captured /api/v1/snapshot/upload-credential, direct PostObject OSS uploads, AES-256-CTR encryption, and public key delivery returned zero matches. The pipeline has been stripped clean with not a single line remaining.

Repo Wiki thoroughly scrubbed: Except for an external Wikipedia reference, all mentions of Repo Wiki have been removed. Code indexing and symbol search have reverted entirely to local processes utilizing bundled ripgrep 14.1.1 and bfs 4.1.1 — proving that local codebase retrieval never needed full-repo uploads in the first place.

An ultra-defensive NOTICE.md: Even more revealing is the 27KB NOTICE.md in the root directory. Legal counsel armored every outbound network request and added disclaimers to even the hollowed-out Computer Use placeholders, while conspicuously leaving out any mention of whole-repo uploads.

2. The Checkpoint Mechanism Exposed: Code Confirms Purely Local Git

The official statement originally claimed that uploading repository snapshots was necessary for “session checkpoint rollback.” Looking at the source, I located the actual implementation of checkpoints (packages/services/src/git/gitCheckpointService.ts and gitCheckpointRepo.ts):

How it works: It runs purely on the local system’s Git CLI, executing git diff --name-status and git diff --numstat based on commit OIDs scoped strictly to the current workspace.

Storage: Metadata is persisted locally as JSON files under ~/.zcode/checkpoints/.

The verdict: The open-source code confirms that checkpoints are strictly local Git diff utilities with zero cloud dependencies, having nothing to do with whole-repo packaging. The official claim that “checkpoint rollback necessitated full-repo uploads” completely falls apart against the code.

3. Third-Party Audits and “Bucket Deletion”

The official statement summarized findings from the China Academy of Information and Communications Technology (CAICT) and NSFOCUS (stating that full reports will be published soon):

Summarized findings: CAICT confirmed that the zcode-prod OSS bucket contains zero data and client v3.14.0 removed snapshot generation and upload workflows; NSFOCUS confirmed that the bucket and all internal objects have been deleted, with no outbound transmission paths detected.

Objective takeaway: Completely purging and deleting the bucket is a necessary containment move. However, from a technical and timeline standpoint, even when the full static verification reports are published, proving that a bucket was emptied or deleted after Sep 20 cannot retroactively reconstruct what happened to data uploaded prior to Sep 18. The lifecycle of historical data cannot be proven in reverse through a single post-incident audit.

4. Community Clarifications and a Bit of Real-World Irony

With the original post crossing 1.6 million impressions and traffic normalizing, a few ongoing community narratives deserve clarification:

[...内容已截断,完整版请查看原文或 Wayback 快照]