
TL;DR
A security researcher intercepted Grok Build's network traffic and found it uploads entire repositories - including .env files with secrets - to xAI servers. Here's what the data shows.
| Resource | Link |
|---|---|
| Original Wire-Level Analysis | gist.github.com/cereblab/dc9a40bc26120f4540e4e09b75ffb547 |
| Hacker News Discussion | news.ycombinator.com/item?id=48877371 |
| Grok Build CLI | x.ai/grok-build |
| xAI Developer Docs | docs.x.ai/developers |
| mitmproxy (Proxy Tool Used) | mitmproxy.org |
Last updated: July 13, 2026
A security researcher at Cereblab ran xAI's Grok Build CLI through a proxy and captured everything it sends home. The findings are raising serious questions about what coding agents do with your codebase.
The wire-level analysis, published as a GitHub Gist and discussed extensively on Hacker News, documents three primary data transmission behaviors in Grok Build CLI version 0.2.93.
The CLI transmits file contents to xAI servers without redaction. This includes .env secrets files. The researcher captured traffic showing API keys and database passwords appearing verbatim in both the live model-turn channel (POST /v1/responses) and in persisted archives uploaded via POST /v1/storage.
This is the baseline expectation for any coding agent - it needs to see your code to help you write it. But the scope of what gets transmitted goes much further.
Beyond files the agent actively reads during your session, Grok uploads entire repository snapshots independent of what code it actually processes.
The numbers from the researcher's testing:
The researcher proved the upload captures the full codebase by cloning the git bundles uploaded via POST /v1/storage and recovering files that were never read during the agent session.
The uploads land in a GCS bucket called grok-code-session-traces. The researcher identified this through binary strings in captured traffic, metadata inspection, and direct observation of GCS PUT requests.
The discussion on Hacker News has been substantial, with several key threads emerging.
One commenter suggested a benign explanation: uploading the full codebase lets the model inspect it during "thinking" without round-tripping back to the client for tool calls. Others pointed out this is a weak justification given the privacy implications.
The security-conscious crowd is recommending sandboxing approaches. One detailed comment described using bubblewrap to isolate coding tools so they can only read the working project directory with .git read-only and sensitive directories hidden, plus network namespace isolation that only allows connections to specific LLM provider hostnames.
Several commenters noted the timing irony - concerns about Chinese AI companies copying code have been prominent, while a US-based company is uploading entire repositories without clear disclosure.
A Grok user shared that there is apparently a config option to disable this:
[harness]
disable_codebase_upload=true
However, the researcher's analysis found that even with the "Improve the model" toggle disabled in the UI, the server still returned trace_upload_enabled: true. The relationship between these settings is undocumented.
From the archive
Jul 13, 2026 • 9 min read
Jul 13, 2026 • 7 min read
Jul 12, 2026 • 9 min read
Jul 12, 2026 • 11 min read
This research lands in a context of increasing scrutiny on coding agent telemetry. Earlier analysis comparing Claude Code and OpenCode found significant differences in how much data different harnesses send before even reading your prompt.
The tension is fundamental: coding agents need context to be useful, but the boundary between "context for the current task" and "persistent data collection" is not always clear - or clearly communicated.
As one HN commenter put it: "With all the coding agent options, you're choosing to trust your computer, code, and business to whichever harness, model, and provider you pick. It's not a great state of affairs, but that's where we are. Choose wisely."
If you're using Grok Build or evaluating coding agents generally:
Check configuration options. The disable_codebase_upload=true setting exists, though the researcher's findings suggest server-side behavior may not fully respect client preferences in all cases.
Separate credentials from code. Never store production secrets in .env files within repositories that coding agents access. Use external secret managers, environment variable injection at runtime, or at minimum keep credentials in gitignored files outside the project directory.
Consider network isolation. Tools like bubblewrap can restrict which hosts coding tools can reach. This doesn't prevent data transmission to the LLM provider, but it can limit unexpected communication with other services.
Prefer open-source harnesses with API access. Tools like OpenCode let you use models via their API while maintaining more control over what leaves your machine. The tradeoff is potentially reduced performance compared to native agent runners with custom optimizations.
Audit what you're sending. If you're working with sensitive code, run your coding tools through a proxy periodically and review the traffic. The researcher used mitmproxy; Charles Proxy and Proxyman are other options.
This analysis highlights a gap in the current coding agent ecosystem. Users are making implicit trust decisions without full information about what data leaves their machine.
The technical capability exists to upload anything a tool can access. The question is what policies and disclosures are in place, and whether those policies are actually enforced at the protocol level.
For Grok Build specifically, the mechanism for repository uploads was undocumented in CLI setup materials the researcher reviewed. That's the core issue - not that data collection happens, but that the scope of data collection exceeds what users reasonably expect based on available documentation.
Until coding agents standardize around transparent telemetry disclosure - perhaps through required data manifests or auditable upload logs - the burden falls on developers to verify tool behavior independently.
According to the wire-level analysis, Grok Build CLI uploads file contents (including .env secrets) via the model channel, plus entire repository snapshots via a separate storage channel. A 12 GB test repository generated 5.10 GiB of uploads independent of what code the agent actually processed during the session.
A config option disable_codebase_upload=true exists in the [harness] section. However, the researcher found that even with the "Improve the model" toggle disabled in the UI, the server still returned trace_upload_enabled: true. The relationship between these settings is undocumented.
Run your coding tools through a proxy like mitmproxy, Charles Proxy, or Proxyman and review the traffic. The researcher's methodology involved capturing all network traffic during Grok Build sessions and analyzing the payloads.
Different harnesses have different telemetry behaviors. Earlier analysis comparing Claude Code and OpenCode found significant differences in what data is sent before even reading your prompt. Open-source harnesses with API access generally offer more transparency about data transmission.
Never store production secrets in .env files within repositories that coding agents access. Use external secret managers, environment variable injection at runtime, or keep credentials in gitignored files outside the project directory.
Read next
Days after getting caught uploading entire codebases to xAI servers, Grok Build is now open source on GitHub. The HN community isn't convinced it's enough.
6 min readSecurity researcher discovers TP-Link Kasa cameras exposed precise home coordinates via unauthenticated UDP - a vulnerability publicly documented since 2020 but only patched in 2026.
7 min readSecurity researchers disclosed a Cursor vulnerability that auto-executes malicious git.exe files from repos - after waiting 7 months with no fix. Here's what developers need to know.
7 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
AI app builder - describe what you want, get a deployed full-stack app with React, Supabase, and auth. No coding requi...
View ToolStackBlitz's in-browser AI app builder. Full-stack apps from a prompt - runs Node.js, installs packages, and deploys....
View ToolFull-stack AI dev environment in the browser. Describe an app, get a deployed project with database, auth, and hosting....
View ToolxAI's model with real-time X/Twitter data access. Grok 3 rivals top models on reasoning. Built-in web search and current...
View ToolWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsSet up Codex Chronicle on macOS, manage permissions, and understand privacy, security, and troubleshooting.
Getting StartedA complete, citation-backed Claude Code course with setup, prompting systems, MCP, CI, security, cost controls, and capstone workflows.
ai-development
In this video, we explore Rich Sutton's 'Bitter Lesson' and its implications for the future of software development, particularly as we approach 2026. We discuss the key principles from Sutton's...

In this video, I introduce the beta release of Grok 2 and Grok 2 Mini. I discuss the new models available on the X platform and their impressive performance, including their ranking on the...

Days after getting caught uploading entire codebases to xAI servers, Grok Build is now open source on GitHub. The HN com...

A federal case in Atlanta is testing whether using a privacy-focused mobile OS can be treated as destruction of evidence...

Security researcher discovers TP-Link Kasa cameras exposed precise home coordinates via unauthenticated UDP - a vulnerab...

Security researchers disclosed a Cursor vulnerability that auto-executes malicious git.exe files from repos - after wait...

Open-source tool gives Claude Code, Codex, and other agents their own isolated Linux VM on your machine - network firewa...

A developer reverse-engineered Claude Code and found hidden markers that classify users by timezone, domain, and API key...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.