Elon Musk was forced to take action after Grok Build – his company’s command line AI platform – was caught over-collecting data by researchers. According to a report published by Cereblab, Grok Build was capable of sending entire code repos – including secrets and other sensitive data – even when processing seemingly innocent requests.
According to Cereblab, when Grok Build was asked to analyze a file, it uploaded the contents of that file to a Google Cloud Storage bucket, all without any kind of redaction or obfuscation. In fact, the researcher claimed that Grok Build sent “your entire repository – every tracked file and its git history – to xAI’s cloud” in a thread on X.
All Cereblab had to do to trigger this behavior was tell Grok Build to reply with “OK” and not to open any files. Instead, the AI tool uploaded the user’s repo in its entirety, including secrets that had been deleted months prior.
Following up on Cereblab’s findings, @a_green_being on X reported that Grok Build uploaded their complete user directory, including “SSH keys, my password manager database, my documents, photos, videos, everything.” Since Grok Build was installed in their computer’s home directory, they added that “Now I’m thinking they also have all my browser data … session cookies, browsing history, crypto wallets.”
That’s obviously far beyond the scope of what is needed for simple user requests. When Cereblab conducted similar tests with Claude Code, Gemini and Codex, “all three stay local, only sending files they actually open.” Grok Build, in other words, appears to be by far the leakiest AI assistant.
‘The right default is off’
Fortunately, Cereblab’s analysis appears to have caught the attention of xAI and of Elon Musk in particular. Cereblab decided to repeat their experiment after Grok Build was updated, but found that the AI had been modified with a new “disable_codebase_upload: true” argument, which prevented the previous vulnerability from taking place.
Cereblab commented that it would be a “real win” to have uploaded files retroactively deleted, and Elon Musk has now confirmed that that has happened. Musk posted on X, saying: “As a precautionary measure, all user data that was uploaded to SpaceXAI before now will be completely and utterly deleted. Zero anything whatsoever will remain.”
But Cereblab took issue with the company pointing users to Grok Build’s “/privacy” command — which disables data retention and deletes previously synced data — as the answer. The researcher noted it is only a “per-session retention toggle,” not the change that actually stopped the uploads, and argued the burden shouldn’t fall on users at all: “No developer should have to run an opt-out after every session to keep their own code off someone else’s servers. The right default is off.”
This episode serves as an urgent warning that reaches well beyond one product. Any AI assistant sits between your most sensitive data and a vendor’s cloud, and you rarely know what it sends, or how much, until someone goes looking. The question worth putting to your own AI stack is a simple one — what is this tool sending, and did you ever agree to it?
Image: “Elon Musk – March 28, 2024” by Wcamp9, via Wikimedia Commons, licensed under CC BY 4.0. Cropped from the original.