xAI's Grok Build CLI Uploads Git Repositories to a Google Cloud Bucket
TL;DR Highlight
Packet captures showed Grok Build CLI uploading whole repos; a silent server-side flag then stopped it
Who Should Read
Developers and security owners planning to run AI coding CLIs against private internal codebases
Core Mechanics
- The whole repository was uploaded
- Researcher cereblab captured Grok Build CLI 0.2.93 on macOS with mitmproxy.
- All tracked files plus full Git history went to a bucket named grok-code-session-traces.
- Upload was about 26,000x the task traffic
- On a 12 GB test repo, the model request channel carried about 192 KB.
- The storage upload carried roughly 5.1 GB.
- Uploads were independent of files the agent opened
- The upload ran regardless of which files the agent actually opened for its coding task.
- Secrets left unredacted
- A canary credential (a fake key planted to detect leaks) in .env appeared verbatim in the captured traffic.
- Turning off "Improve the model" did not help
- With the toggle off, the server still returned trace_upload_enabled: true and uploads continued.
- The setting covers training consent, not whether code leaves the machine.
- A silent server-side flag stopped it
- A day after the report, the same 0.2.93 client received disable_codebase_upload: true and trace_upload_enabled: false.
- Six retests showed no repository uploads.
- This was verified on one machine and one account, and xAI gave no advisory, explanation, or deletion answer.
Community Reactions
- Earlier HN discussion exists
- A note says the behavior was first discussed in the post "What xAI's Grok build CLI sends to xAI: A wire-level analysis", which drew 203 comments.
- This article covers the follow-up retest.
How to Apply
- Capture AI CLI traffic with mitmproxy
- Before adopting a new coding agent CLI, run it against an empty test repo with a fake .env behind mitmproxy.
- Check for the fake key string and the upload volume to non-model hosts.
- Plant a canary secret before real code
- Put an identifiable fake key in the test repo's .env.
- If it shows up in captures, do not use the tool on internal code.
- Restrict egress instead of trusting toggles
- Allowlist the domains AI CLIs may reach from dev environments.
- Block storage uploads to anything besides the model API.
Try It
# Paste into Claude or ChatGPT: pre-adoption data-exfiltration check plan for an AI coding CLI (simplified version of the captures in the article)
Before using the AI coding CLI "{{CLI name}}" on internal code, I want to audit it.
I plan to capture traffic with mitmproxy. My OS is {{OS}}.
Give me step by step:
1. Commands to create an empty test repo and a fake .env (canary key)
2. How to configure mitmproxy to intercept the CLI's HTTPS traffic
3. What to check in captures: whether the canary key leaves in plaintext, upload volume to non-model storage hosts, and differences when settings toggles are off
4. A checklist to judge the result
Next to try: paste the capture summary and ask for a verdict on exfiltration and riskTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques