Security

Z.ai's coding agent swallowed 42,411 files, and the developers got the bill

ZCode packed a developer's whole workspace into an archive only Z.ai could open, then logged 564 failed attempts to ship it to Alibaba Cloud. The fix and the audits describe an empty bucket, and the listing had compounded to near nine times its IPO price by late August.

Vincent JiangVincent Jiangthree-minute read
Share
The Z.ai logo, a stylized white Z on a dark rounded square
1 / 6Slide 1 of 6
Z.ai, the Chinese AI company behind the GLM models and the ZCode coding agent, disabled the agent's coding-assistant features after the data-capture finding.

Two Z.ai−7.17% — Z.ai, down 7.17 percent today stories ran through the same fortnight and never touched. The first is a trust scandal: ZCode, the company's coding agent, was caught packing a developer's entire workspace into an encrypted archive and logging 564 failed attempts to upload it to Alibaba+6.31% — Alibaba, up 6.31 percent today Cloud 12.

The second is a commercial account: a company-built AI agent standing up inference on more than 100,000 Chinese-made accelerators 3, under a listing that had compounded to near nine times its January IPO price by late August 4. Developers are paying for the first. The second is the business.

The capture ran unconditionally, sealed with a key only Z.ai held

On 18 September 2026 the developer who writes as ferstar traced a swollen ZCode directory to a 313MB encrypted snapshot of a commercial project: 42,411 files, the bulk of it Git history and cached assets 125. The archive sat pending after 564 failed uploads; a second snapshot, a 538-file public repository compressed to about 15KB, did reach Alibaba's storage 12.

The contents were sealed with AES-256-CTR, the key wrapped with RSA-OAEP, its private half held only on Z.ai's servers, so neither ferstar nor the ZCode client could open what had been taken 126. Capture ran unconditionally: the two visible settings governed downstream use, not whether the snapshot was taken 1. Z.ai traced the origin to a "Codebase Indexing" feature enabled by default 7.

The packed archive was overwhelmingly Git history and cached assets

  • Git large-file cache196.1MB62.6%
  • Git objects, full history102.2MB32.7%
  • Reflog and everything else14.7MB4.7%
Data
SliceValueShare
Git large-file cache196.1MB62.6%
Git objects, full history102.2MB32.7%
Reflog and everything else14.7MB4.7%
Composition of the 313MB encrypted snapshot ferstar found on 18 September 2026, in megabytes, as stated in The Next Web's account of his analysis; the third slice is derived by subtraction. Source: The Next Web, 22 September 2026.1

Deletion attested by the deleter

Version 3.14.0 removed the Repo Wiki entry point and the repository-upload workflow, and the source shipped on GitHub under Apache-2.0 689. CAICT, the ministry-affiliated assessment body, found the zcode-prod bucket in a zero-data state, and NSFOCUS confirmed the bucket and every object in it deleted 89. Z.ai says the data "has never been used for model training" and has promised the full assessment reports 69.

The published repository carries two commits: the development history and the upload code are gone, so the old behavior can no longer be inspected 16. Nobody has said how long it ran or how many workspaces it captured 1. A leading Chinese robotics firm has banned Z.ai's tools internally 10. The gravest corporate allegation, six workspaces including database passwords, was retracted by its own author as wrong evidence 17.

The machine never stopped

A day before ferstar's post, Z.ai described GLM-5.3-Flash reaching production on that 100,000-plus accelerator cluster in under two weeks, with throughput roughly tripled, after the model processed 62 trillion tokens in six days as the anonymous Ox Alpha; the figures are the company's own 34. The listing, Knowledge Atlas Technology until July, priced at HK$116.20 and traded near HK$1,100 in late August, on 2025 revenue of 724.3 million yuan against a 4.7 billion yuan net loss 4.

Through the scandal's own week, a 26 September Hong Kong Connect flow note still featured the stock among its highlighted names; the direction of those flows sits behind a paywall, so whether mainland money was buying or selling cannot be read from it 11.

Every attestation comes from the party that held the key

The trust bill is itemized to the file. The compounding is itemized to the token. Deletion is attested by the only party that ever held the key, the training denial is the company's word, and the full CAICT and NSFOCUS reports have no release date 168. Until they surface, the ledger closes on one signature.

Get Security by email, free

The breaches, flaws and security vendors AI is putting to the test. In our daily email, every weekday.

Loading BABA

Reader comments

0 comments

    More in Security

    All in this topic →

    Security

    DNI warns of more 'bumps in the road' as outages hit Microsoft, banks and air traffic control

    Jay Clayton casts the outage wave as AI-era modernization friction, not an attack. With the AI 100 down 14.7% in a month, investors in Microsoft, the banks, airlines and cyber names are left pricing the difference between a bad patch and a breach.

    Security

    Netskope joins the Russell 3000 and index funds must buy at the December 11 close at 11.9 times sales

    Funds that copy Russell indexes trade the addition at the December 11 close, paying 11.9 times trailing sales for annual recurring revenue growth that has slowed from 34 to 27 percent. December's fiscal third-quarter report, not the index trade, is the test.

    Security

    Fastly's four top officers sold $3.2 million of stock around a 12.6% pop on its Comcast deal

    The Form 4s landed the evening of November 19, the first filings to show where management sold during this week's 12.6% pop on a Comcast gaming deal that names no commercial terms. The stake for investors is whether Fastly is priced on its security line, about $45 million a quarter, or on launch traffic its own chief financial officer calls the forecast's biggest unknown.

    Security

    AI found the 9.2 Java flaw beneath Jira and Confluence for under $200; Atlassian can't patch it

    Calif used OpenAI's Codex to find Java4Shell, rated 9.2 by its finders and 8.1 by OpenJDK, and reached default installs of Jira, Confluence, Jenkins and Keycloak with no login. The bug sits in Java, not in Atlassian's code, so Atlassian's 318-entry November bulletin cannot list it, and the patch clock sits with distributors that shipped days after Oracle.

    Security

    CISA sat four years on a report warning US telecom networks were open to spies

    Our call: the disclosure repriced nothing; the trade, if there is one, starts on January 3, 2027, when a Democratic Congress and a live FCC docket can turn this report into mandatory security standards for US phone companies.

    Security

    San Diego switches off 500 Flock cameras, the largest exit yet, as cities replace them with Axon

    The largest city to quit Flock Safety's license plate readers went dark this week, and Santa Ana followed a night later. The spend survives the votes: switchers are re-leasing the same job from listed rival Axon at equal or higher rates, while one university signed fresh Flock paper and one city moved to renew.

    Subscribe to TheInference for free