← All news·2026-07-12·3 min read

Grok Build CLI Silently Uploads Your Entire Repo — Passwords Included

xAI's Grok Build CLI uploads entire repositories to Google Cloud Storage by default — including .env files with credentials; a 12 GB repo sent 5.1 GB of data while the model processed just 192 KB, a 27,800× gap. There's no way to disable uploads through settings.

aixaigroksecurityprivacy

The xAI Grok Build CLI will upload your whole repo, including .env files containing passwords, to Google Cloud Storage (specifically, the grok-code-session-traces bucket). Sending a 12 GB repo resulted in 5.1 GB being uploaded, despite the model only needing 192 KB (that’s a ratio of 27,800!). Turning off “Don’t improve the model” won’t fix this either — the server still has trace_upload_enabled = true.

Now that’s what I call paranoid! In enterprise environments, you’ll definitely want to monitor CLI usage. Also, if your AI bot turns into a security breach, it’s already a legal issue, not a tech one.

Source: gist.github.com

Free course

Stop reading about AI — start building with it

The free Claude Code course: your first site, tool or game — no coding. No upsells, no cross-sells — nothing to buy here.

Start free →
EAEvgenii Arsentev

Author

Evgenii Arsentev

PhD · Founder & CEO, Dad4Kids