ZCode Was Packaging Entire Workspaces for Upload — A Privacy Scandal That Forced Open Source
On September 18, a security advisory revealed that Z.ai's ZCode was silently packaging entire workspaces for upload. Days later, Z.ai open-sourced the whole thing under Apache 2.0 — 4,200 stars in 7.5 hours. A scandal forced a textbook crisis response.

On September 21, Z.ai (formerly Zhipu AI) open-sourced its agentic coding tool ZCode under the Apache 2.0 license. The repository hit 4,200 stars in about seven and a half hours. But this was no carefully planned strategy launch — it was crisis PR forced by a privacy scandal.
What happened
On September 18, developer ferstar reverse-engineered the ZCode desktop client and found it silently packaging users' entire workspaces into encrypted archives and attempting to upload them to Alibaba Cloud OSS — before every prompt. On his test machine, one 313MB archive held 42,411 files, 86.6% of them .git data (commit objects, reflogs, Git LFS cache), with 564 logged upload attempts in local metadata.
The encryption is the damning part: AES-256-CTR with an RSA public key handed down by Z.ai's servers — the private key exists only in Z.ai's cloud. Had an upload succeeded, only Z.ai could have unwrapped it; not even the user could see what was taken.
How Z.ai responded
The company apologized, said remediation was complete, shipped fixes in version 3.14.0, invited independent audits — and on September 21 published the full source (github.com/zai-org/ZCode): Electron desktop app, web client, Agent CLI and backend. Notably, the upload pipeline was scrubbed clean from the released code, and the previously touted Repo Wiki feature disappeared with it.
A warning for vibe coders
AI coding tools need to read your codebase to understand context. But there is a bright red line between "reading code" and "encrypting your entire git history for upload". The lesson for everyone: audit what your AI tools do in the background — permissions, network calls, upload behavior — with the same rigor you'd review code.
Comments (0)
Sources
Related articles
On November 24, 2026, 42 state attorneys general plus the District of Columbia asked a Delaware bankruptcy court to block Character.AI from auctioning the private chats of more than 21 million U.S. accounts — 2.1 million of them minors — on December 1. The only disclosed bidder, Smirks and Pangs, was formed November 13 and picked November 14. The company once promised it would never sell personal information.
Root, umask 0007, zero packages: new files 660, new directories 770; under umask 0022, 644 and 755; run.sh exits 126 at 644 and 0 at 755; nobody is denied at 000 and reads SECRET-255 at 600; setgid directory 2775 passes group nogroup to new files.
OpenSSH 9.6p1, zero packages: ed25519 256-bit + RSA 4096-bit keys, private 600, public 644, 1 identity in the agent, config resolving to deploy@192.0.2.10:2222. ssh-copy-id and real login not verified here — no sshd on this machine.