hn.today

Inside ZCode: Silently Uploading Your Git History to the Cloud

blog.ferstar.org24 points3 comments
Screenshot of Inside ZCode: Silently Uploading Your Git History to the Cloud

Investigation of ZCode (Zhipu’s AI coding desktop) found that while logged in the client silently packages the entire workspace - including full .git history, LFS cache, reflogs, and global app configs - encrypts it, and uploads the ciphertext to Alibaba Cloud OSS. In one example a 345 MB workspace became a 313 MB .enc baseline file with hundreds of failed retries sitting in ~/.zcode/v2/checkpoints. The client requests credentials from zcode.z.ai, receives OSS form credentials, a dynamic object key, size limits, and an RSA public key, then streams a tar.gz, encrypts content with AES‑256‑CTR, wraps the symmetric key with RSA‑OAEP‑SHA256 using the server‑supplied public key, and posts directly to Aliyun OSS; OSS then callbacks the backend. The manifest is kept in plaintext and reveals that .git content made up ~86.6% of the payload (LFS ~56.8%, objects ~29.6%), exposing commit history, deleted secrets, unpushed branches, and local configs.

UI toggles that appear to disable snapshots or telemetry do not stop capture or upload - the sidecar is started unconditionally whenever a valid JWT exists, with triggers before prompts and on task completion - and deleting snapshots simply causes immediate re‑capture. Practical mitigation is to remove and mark ~/.zcode/v2/checkpoints immutable (chflags uchg on macOS or sudo chattr +i on Linux), which blocks disk I/O and halts uploads at the kernel level at the cost of disabling the in‑app rollback/timeline feature. Because the server supplies the encryption key and retains the private key, and the behavior is not disclosed in privacy text, this architecture enables server-side decryption of full repository history and functions like silent exfiltration rather than a user-controlled backup.

Read on blog.ferstar.org3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.