Z.ai banked $5.02bn days before its coding assistant was caught packaging Git histories

The $5.02bn share-and-convertible raise closed on 13 September. Five days later a developer showed ZCode's default-on indexing had been encrypting whole workspaces toward an Alibaba Cloud bucket only Z.ai could open, and the open-source fix arrived with the development history deleted.

Vincent JiangVincent Jiang · 3 min read
Share
Z.ai cofounder Tang Jie in 2024.
1 / 6Slide 1 of 6
Z.ai cofounder Tang Jie in 2024.

On 18 September a developer publishing as ferstar traced abnormal disk usage to ZCode, Z.ai's coding assistant, and found a 313MB encrypted snapshot of a commercial project in a local checkpoints directory, its log showing 564 failed upload attempts 1. The snapshot held 42,411 files, 86.6% of them Git directories, including 102.2MB of objects carrying the project's full commit history 1.

The money had already cleared

The capital landed first. On 13 September a filing showed Z.AI had sold 21.97 million new Hong Kong shares at HK$714, a 10% discount, plus RMB20.14bn of zero-coupon convertible bonds due 2027: US$5.02bn combined, the third deal of the year and the one taking 2026 past US$9bn in total 23.

About 60% of net proceeds funds next-generation models and a fully self-training system 2. Convertible buyers accepted a yield between minus 0.5% and zero for the right to convert at a 25% premium 4. The HK$714 price sits below half July's HK$1,588 placement level, and the stock has shed nearly half its value since briefly topping a HK$1 trillion market cap in June 58.

Z.ai has pulled $9.6bn from Hong Kong in nine months

$0B$2B$4B$6BJan 2026: IPO$0.56BJul 2026: placement$4BSep 2026: shares + convertibles$5.02BClosed 13 September; flaw published 18 September
Data
Value
Jan 2026: IPO$0.56B
Jul 2026: placement$4B
Sep 2026: shares + convertibles$5.02B
Gross proceeds per transaction, US$bn. September combines the HK$714 share placement with RMB20.14bn of zero-coupon convertible bonds due 2027. Sources: Reuters filing report and Crypto Briefing, 13 September 2026; Linklaters deal release.2,3,5

Keys the customer never held

ZCode encrypted file contents with AES-256 and wrapped the key with RSA, fetching the public key from Z.ai's own servers; the private key stayed with the vendor, so users could not open their own files or independently confirm deletion 17. Snapshots were addressed to an Alibaba Cloud bucket called zcode-prod, with no toggle to switch the capture off and nothing in the privacy policy about workspace snapshots 67.

The bucket's host is Alibaba: the same company that in July banned Claude Code over alleged covert tracking of Chinese users 17. Chengming Technology said six of its coding workspaces had gone to the cloud, complete source code, database passwords and employees' personal information among them; on Monday it retracted the claim, citing "wrong evidence" 7.

The fix is real, and it is missing its memory

Z.ai disabled the workflow, shipped ZCode v3.14.0, open-sourced the tool and switched on zero-data retention; an industry-ministry think tank and security firm NSFOCUS verified the bucket and its contents gone 67. Ferstar's second look confirms the upload pipeline is removed 1.

But the published repository carries two commits. The development history is gone, and so is the code that did the uploading. The only party able to verify the deletion is the party that did the deleting. No one has said how many workspaces were captured or for how long, and the promised full assessment report has no date beyond "soon" 17.

A safety-first public record, priced for buyers who came for the economics

The response is unusually complete: two apologies, an open repository, rewards for researchers 17. This is also the lab that held GLM-5.3 back two weeks for safety review, a first for a Chinese developer 7.

The economics are thinner than the raise suggests. First-half revenue quintupled to $142M, the net loss narrowed to 2 billion yuan, and J.P. Morgan expects adjusted profit only in 2028 8. No independent report carries an API price for GLM-5.3 against OpenAI's 4; against $9bn raised this year, the public sales record is one $142M half 38.

The same charge, countries swapped

xAI's Grok Build was caught uploading whole repositories in July; Chinese state bodies called Claude Code's covert tracking a serious threat 1. September's version of the charge landed on China's open-source champion, days after the NSA, FBI and CISA alleged industrial-scale distillation by Z.ai, which Beijing called unfounded 4. Watch the report's date, whether the repository's history stays gone, and what enterprise buyers conclude about a frontier model whose deletion claims only the vendor could check.

How this brief was made

Become a contributor

Reporting on the business of AI and want it read? We take pitches from outside contributors who bring primary sources and a number worth arguing about.

Share

Deepdive

AI-generated from this story and its cited sources. Not investment advice.

Reader comments

0 comments

    Sign up

    Get your curated digest

    After email confirmation, you will receive a daily digest of the most relevant news that matter to your portfolio