---
title: "Z.ai banked $5.02bn days before its coding assistant was caught packaging Git histories"
description: "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."
publisher: "The Inference"
section: "Model"
published: 2026-09-27T23:29:22.146Z
modified: 2026-09-27T23:29:22.146Z
canonical: https://theinference.org/article/z-ai-banked-5-02bn-days-before-its-coding-assistant-was-caught-packaging-git-histories
language: en
keywords: "Z.ai, China, Security, Fundraising, Open Source, Coding Assistants"
---

# 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.

On 18 September a developer publishing as ferstar traced abnormal disk usage to ZCode, [Z.ai's coding assistant](https://theinference.org/markets/companies/z-ai), and [found a 313MB encrypted snapshot of a commercial project in a local checkpoints directory](https://thenextweb.com/news/zai-zcode-open-source-commit-history-security-assessment), 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](https://www.msn.com/en-us/money/general/china-s-z-ai-raises-5-billion-from-new-share-convertible-bond-sales-filing-shows/ar-AA2c7k6h), 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 [2][3].

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](https://thenextweb.com/news/z-ai-5bn-hong-kong-zero-interest-convertible-bonds) 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 [5][8].

*Chart: **Z.ai has pulled $9.6bn from Hong Kong in nine months** Bar chart of Z.ai's three 2026 Hong Kong raises: about $0.56bn at the January IPO, $4bn at the July placement, $5.02bn from September's shares and zero-coupon convertible bonds combined.*

*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 [1][7]. 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](https://www.infoworld.com/article/4225022/z-ai-disables-coding-assistant-feature-after-flaw-exposed-enterprise-code-upload-risk.html) [6][7].

The bucket's host is [Alibaba](https://theinference.org/markets/companies/alibaba): the same company that in July banned Claude Code over alleged covert tracking of Chinese users [1][7]. 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 [6][7]. 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" [1][7].

## 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 [1][7]. 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](https://www.msn.com/en-us/money/general/china-s-zhipu-ai-revenue-quintuples-in-first-half-loss-narrows/ar-AA2bgKnW), 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](https://theinference.org/markets/companies/openai)'s [4]; against $9bn raised this year, the public sales record is one $142M half [3][8].

## The same charge, countries swapped

[xAI](https://theinference.org/markets/companies/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.

## Takeaway

Five days after Z.ai banked $5.02bn in Hong Kong, a developer showed its ZCode assistant encrypting whole workspaces toward a vendor-only cloud bucket; the open-source fix shipped with the development history deleted, so the deletion claims remain the vendor's alone.

## Sources

1. [The Next Web, "Z.ai apologised, open-sourced ZCode, and wiped the commit history", 22 September 2026](https://thenextweb.com/news/zai-zcode-open-source-commit-history-security-assessment)
2. [Reuters (via MSN), "China's Z.AI raises $5 billion from new share, convertible bond sales, filing shows", 13 September 2026](https://www.msn.com/en-us/money/general/china-s-z-ai-raises-5-billion-from-new-share-convertible-bond-sales-filing-shows/ar-AA2c7k6h)
3. [Conventus Law, "Linklaters Advises Z.AI On US$5.02bn Concurrent New H-Share Placement And Convertible Bond Offering", 25 September 2026](https://conventuslaw.com/press-releases/linklaters-advises-z-ai-on-us5-02bn-concurrent-new-h-share-placement-and-convertible-bond-offering/)
4. [The Next Web, "Z.ai raises $5bn in Hong Kong including $3bn of zero-interest bonds", 13 September 2026](https://thenextweb.com/news/z-ai-5bn-hong-kong-zero-interest-convertible-bonds)
5. [Crypto Briefing, "Zhipu AI raises $4B in follow-on share placement, then announces another $5B round weeks later", 13 September 2026](https://cryptobriefing.com/zhipu-ai-raises-4b-share-placement/)
6. [InfoWorld, "Z.ai disables coding assistant feature after flaw exposed enterprise code upload risk", September 2026](https://www.infoworld.com/article/4225022/z-ai-disables-coding-assistant-feature-after-flaw-exposed-enterprise-code-upload-risk.html)
7. [Reuters (via MSN), "China's Z.ai disables AI coding assistant features after security issue", 21 September 2026](https://www.msn.com/en-us/news/other/chinas-zai-disables-ai-coding-assistant-features-after-security-issue/ar-AA2cG96x)
8. [Reuters (via MSN), "China's Zhipu AI revenue quintuples in first half, loss narrows", 31 August 2026](https://www.msn.com/en-us/money/general/china-s-zhipu-ai-revenue-quintuples-in-first-half-loss-narrows/ar-AA2bgKnW)


---

Z.ai banked $5.02bn days before its coding assistant was caught packaging Git histories — The Inference. Canonical: https://theinference.org/article/z-ai-banked-5-02bn-days-before-its-coding-assistant-was-caught-packaging-git-histories
