Grok Build CLI 被抓到靜默上傳整個 Git Repo 到 Google Cloud
- URL: https://x.com/IntCyberDigest/status/2076689215258014069
- Date Saved: 2026-09-19
- Source: X (@IntCyberDigest, @cereblab, The Register, International Cyber Digest)
- Tags: security-privacy, dev-tools
- Repo: https://github.com/cereblab/grok-build-exfil-repro (⭐ 71)
- Original Analysis: https://gist.github.com/cereblab/dc9a40bc26120f4540e4e09b75ffb547
- Cereblab Report: https://cereblab.com
- The Register: https://www.theregister.com/ai-and-ml/2026/07/14/musk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud/5271123
Summary
安全研究員 Cereblab 用 mitmproxy 攔截 Grok Build CLI v0.2.93 流量,發現嚴重數據外洩行為。
發現的問題
- Grok Build 會把整個 repo(包括完整 .git 歷史)打包成 git bundle 上傳到 Google Cloud Storage bucket
grok-code-session-traces - 12GB 測試 repo:模型任務只需 192KB,但上傳了 5.1GB(27,800 倍)
- .env 裡的 canary 密鑰被完整無遮掩上傳
- 即使 prompt 只是「reply OK, do not read any files」,照樣上傳整個 repo
- 「Improve the model」開關關掉無效,伺服器照返回
trace_upload_enabled: true - 有用戶發現整個 home 目錄被上傳(含 SSH keys、密碼管理器資料庫)
與其他工具對比(Cereblab 測試)
- Claude Code:只上傳實際打開的文件 ✅
- Cursor(Codebase Indexing 開啟時):上傳文件明文到 api2.cursor.sh(Privacy Mode 無效)⚠️
- Grok Build:上傳整個 repo + git 歷史 ❌(已修復)
事件時間線
- 2026-07-12: Cereblab 發布 wire-level 分析 gist(HN 228 comments)
- 2026-07-13: xAI 靜默推送
disable_codebase_upload: true修復 - 2026-07-13: @IntCyberDigest 發推報導(8,492 likes, 1,099 RT)
- 2026-07-14: Musk 在 X 承諾刪除所有已上傳用戶數據:「completely and utterly deleted」
- xAI 推薦用
/privacy指令,但研究員指出這只控制 data retention,不是停止上傳的開關 - 無正式安全通報,changelog 完全沒提
關鍵 X 帖文
- @IntCyberDigest: 8,492 likes — 最大傳播帖,完整摘要事件
- @scaling01 (359 likes): 最早傳播之一,引用 gist 原文
- @op7418 歸藏 (71 likes): 中文圈傳播「老马的 grok build CLI 会打包上传你项目的整个代码库」
- @astuyve AJ Stuyvenberg (60 likes): 「So Grok CLI uploads your entire repo to their blob store?!」
與 ZCode 的對比
兩者行為模式幾乎一致:
- 靜默上傳整個 repo + .git 歷史
- UI 隱私開關是假的(只控制訓練/保留,不停止上傳)
- 被抓到後才修復,無正式公告
- 差異:ZCode 用 RSA 加密上傳到阿里雲 OSS;Grok Build 上傳 git bundle 到 GCS