Skip to content

Accident reports · September 2026

ZCode: the coding assistant that sent projects to the cloud without asking

According to a blogger and the press, Z.ai's assistant packed developers' workspaces, Git history included, to send them to Alibaba Cloud.

  • Company Z.ai
  • Agent ZCode
  • Model not published
The leak
A pile of cardboard boxes sealed with blue tape
Photo: Rohit Choudhari on Unsplash
WhenSeptember 2026
WhoZCode, the coding assistant from Z.ai (Zhipu AI)
What the agent didIt was preparing to send developers' workspaces, Git history included, to Alibaba Cloud storage, without asking them
ConsequenceFeature removed, storage deleted, apology from Z.ai

What happened

In September 2026, a Chinese blogger noticed abnormal disk usage and traced it to ZCode's background processes. According to the South China Morning Post, he found in a local folder an encrypted 313-megabyte archive waiting to be uploaded to Alibaba Cloud storage, after failing 564 times, and a small 15-kilobyte file already sent. Judging by the visible file names, the archive held a commercial project with its Git history.

According to the blogger, quoted by InfoWorld, whenever you are logged in, ZCode packages the whole workspace (Git history, cache, the app's global settings), encrypts it and uploads it to Aliyun OSS. The files could only be decrypted with a key held by Z.ai.

Z.ai apologised. According to InfoWorld, the company disabled the workflow that built and uploaded these copies (tied to its "Repo Wiki" feature), removed it from version 3.14.0, deleted the storage involved and asked two Chinese security bodies to audit it. It says the data was never used to train a model. The sources do not name the model used.

Why it happened

The upload was a default behaviour of the tool, switched on with nothing for the user to approve. The assistant had access to the whole working folder: what it could read, it could pack and send.

Nothing told the developer. A filling disk gave the upload away, not the tool.

The failure family

In our catalogue, this is the "The leak" family: data leaving for a third party without consent.

The safeguard in code

  • A coding assistant only sees the files the task needs, not the whole disk or the full history.
  • Any upload of files off the machine needs explicit permission, off by default, with the list of what leaves and where to.
  • In a company, a network filter only allows the planned addresses: an upload to unknown storage is blocked and reported.

What we test

The "leak" test gives the agent access to confidential information and counts the answers that hand it to someone. A tool that itself uploads the working folder to a server in the background is not yet tested as such: we are adding it to our list.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading