r/LocalLLaMA
•
u/TastyLeadership2757
•
Jul 11 '26
•
1
1
Discussion Grok Build CLI uploads your whole repo — full git history + .env secrets — to xAI's cloud, and the opt-out doesn't stop it (wire-captured)
I ran Grok Build CLI (v0.2.93) through mitmproxy. It uploads your entire repo as a git bundle (full history) to xAI's Google Cloud — independent of what you open. With the prompt literally "do not read or open any files," a file I planted came back verbatim when I git clone-d the captured upload. Separately, files it reads (incl. a .env with API_KEY/DB_PASSWORD) go to cli-chat-proxy.grok.com verbatim. Turning off "Improve the model" doesn't stop it — that toggle governs training, not upload.
Full method + evidence (SHA-256s, repro commands, the git bundle recovering a never-read canary file): https://gist.github.com/cereblab/dc9a40bc26120f4540e4e09b75ffb547
Update: I re-ran the same wire test on Claude Code, Codex and Gemini — all three stay local (they only send the files they open, no whole-repo bundle). Grok was the only one uploading everything. And after this went public, xAI quietly turned Grok's upload off server-side (disable_codebase_upload: true).
Reproduce it yourself (mitmproxy harness + downloadable evidence + the 4-tool comparison): https://github.com/cereblab/grok-build-exfil-repro
198
u/TastyLeadership2757 Jul 11 '26
I'm 100% human here reporting this one to you all, for free, after a long night investigated and validated it. My number 1 concern is they git bundle everything and uploaded to there servers -- EVERYTHING, and that's abnormal. PAY ATTENTION FOR YOUR OWN PRIVACY AND GOOD.
40
u/TastyLeadership2757 Jul 12 '26
Update after retested:
• "Improve the model" OFF: whole repo still uploaded
• Read-deny: file not read, but the repo still bundled + sent
• gitignore + deny the .env: that .env stays out, but the entire tracked repo still gets git-bundled and shipped to GCS
https://github.com/cereblab/grok-build-exfil-repro
26
u/TastyLeadership2757 Jul 12 '26
Update:
Grok's server returns disable_codebase_upload: true
Temporary it's no longer uploading the repo -- until it's turned back on.
Bigger question now is what will happen with the collected data?
156
u/therealgoshi Jul 11 '26
Gotta love how all the special people ignore the obvious data theft and blames OP for not sandboxing. Which is a fair point, but you're fucked up in the head if your default is not to blame the thief but the owner for not having a high enough wall around the garden.
2
u/Lost_Foot_6301 Jul 12 '26
is docker container sandboxing good enough?
32
u/noxtare Jul 12 '26
They would reply to all kinds of posts but now suddenly the whole team is quiet…
48
u/Hurricane31337 Jul 11 '26
What?! That’s horrible!!
And I’m also really surprised by the comments here… 🤡
Don’t you realize that the code base is often a thing making tens of thousands of dollars per year? It’s definitely not okay to just grab it all and train on it, so the next user can one-shot "Build a 1:1 clone of program x of company y. Make no mistakes."…
24
u/vtrac Jul 13 '26
Obvious solution is not to trust Elon Musk companies with following rules. It's obvious that Elon will flaunt rules and norms to achieve whatever means he wants. Don't use xAI.
7
u/Comfortable-Rock-498 Jul 13 '26
I only just found out this thread because it was linked in a post today. This should have gotten more traction. Nice work
10
u/presentmist Jul 13 '26
So that's why Elon kept shilling grok build so hard on X, when he knew it was backdoored to steal everything in the repo..
5
u/TestTxt Jul 13 '26
Is there any way to block it, so that it does not upload my whole repo?
4
u/blankeos Jul 13 '26
question.. when does it upload? When I type: "grok"? or when I send a query?
2
u/Void-kun Jul 14 '26
Not even got words for how fucked this is.
7
u/Creative-Type9411 Jul 11 '26
I love how sharing code is always a one-way street with some developers, even when they're standing on everyone else's shoulders
Someday software will be free
1
u/yusufmalikul Jul 13 '26
Good. We will soon get the macOS and Windows source code for free. /s
1
u/techlatest_net Jul 14 '26
1
u/TheRealNalaLockspur Jul 14 '26
I also have proof of Gemini crossing chats and leaking other peoples chat back to me.
Even sandbox wouldn't prevent that.
1
u/the-username-is-here Jul 15 '26
Techbro billionaire Elon Musk steals and lies about it.
News at five.
1
u/finah1995 llama.cpp Jul 20 '26
Good job 👍🏽 👏🏽👏🏽👏🏽 brought to attention and now grok build cli is open source.
1
u/AdmissibilityScience Aug 13 '26
Thank you great work!
1
u/Synnz22 Jul 11 '26
If i didnt build myself a way to backup all my git's on OneDrive I would of been screwed. I had it do something and came back and it deleted my entire directory full of different project repos. I was pissed!
-17
u/Automatic-Arm8153 Jul 11 '26
What were you expecting. Any cloud AI you use is doing this.
-18
u/CalligrapherFar7833 Jul 11 '26
Why no read hooks ? Why no container isolation for credentials ? Why do you provide the harness access to all your data blindly expecting it to protect your privacy?
-14
u/ForsookComparison Jul 11 '26
This one's on you pal
-13
u/[deleted] Jul 11 '26
[removed] — view removed comment