Musk promises purge after Grok Build caught sending entire repos to the cloud
The researcher who exposed Grok Build uploading users' entire repositories to cloud storage says the transfers have stopped after a server-side change. Elon Musk has separately promised that all previously uploaded user data will be deleted.
AI safety researcher Cereblab published a report on Sunday about their investigation into Grok Build, SpaceXAI's command-line interface (CLI), and the data exchanged between the CLI and SpaceXAI's servers.
Cereblab found that when Grok Build reads or processes a file, the contents of that file are transmitted without redaction to a Google Cloud Storage bucket used by SpaceXAI. Further, they claimed that Grok Build packages entire repos and uploads them as Git bundles, instead of just uploading the files required to answer a user's prompt.
REG AD
According to Cereblab's report, SpaceXAI's data retention went far beyond that of other CLIs, such as Claude Code, Gemini, and Codex, which open individual files rather than entire repos before uploading them along with their Git histories.
REG AD
The researcher tested the behavior using a benign prompt. They instructed the CLI to simply reply with "OK," and specifically ordered it not to open any files.
Grok Build uploaded the entire repo regardless, along with its full Git history containing secrets that were deleted months prior – a finding Cereblab reproduced using a separate repo.
Other Grok Build users reported similar results after Cereblab published their report, including one whose entire user directory, containing SSH keys, password manager databases, and more, was opened and uploaded.
The findings attracted enough attention for SpaceXAI execs and Musk to comment on them publicly, as well as prompting the company to quickly implement a remedy.
Cereblab confirmed that after the CLI's devs set disable\_codebase\_upload to "true," Grok Build stopped transmitting entire repos to its servers.
The confirmation came hours after SpaceXAI weighed in, trying to reassure onlookers that Grok Build remained safe for use, especially in enterprise environments.
A public statement issued via X said that Grok Build respects customers who enable zero data retention (ZDR), and for those who haven't enabled it, such as non-enterprise customers, running a quick command deletes all data previously collected on a given user.
"We care deeply about your privacy and respect customer choice," SpaceXAI said. "For teams using zero data retention, no trace and code data is ever retained. All API key use of Grok Build also respects ZDR.
REG AD
"If ZDR is disabled, the /privacy command is available in the CLI to disable data retention, which also deletes previously synced data.
"Run the /privacy command to view or change your settings at any time."
Technical staff members Andrew Milich and Jason Ginsberg both repeated the company's assurances, responding to outraged techies before Musk himself chimed in with a trademark "true."
Musk promised that the business would delete all user data uploaded to it prior to the code change preventing whole-repo uploads.
"As a precautionary measure, all user data that was uploaded to SpaceXAI before now will be completely and utterly deleted," he said, responding to Milich's community outreach. "Zero anything whatsoever will remain."
In a separate post, Musk asked users to keep sharing data anyway, despite the disclosure that his company had been caught hoovering up entire user repos, on the basis that retaining "some" data helps with debugging.
The Register cannot independently verify whether SpaceXAI has deleted the data as promised.
However, Grok Build no longer rips user repos and stores them in the cloud, although Cereblab is still unhappy about the company's recommendation to use the /privacy command to adjust how exposed user code is to data retention measures.
REG AD
"What actually stopped the upload was a silent global flag – disable\_codebase\_upload: true – that applies whether you opt in or out," they wrote.
"/privacy is a per-session retention toggle, not the switch that fixed this, so it shouldn't be pointed to as the control. And 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." ®
[](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.theregister.com%2Fai-and-ml%2F2026%2F07%2F14%2Fmusk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud%2F5271123) [](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.theregister.com%2Fai-and-ml%2F2026%2F07%2F14%2Fmusk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud%2F5271123) [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.theregister.com%2Fai-and-ml%2F2026%2F07%2F14%2Fmusk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud%2F5271123) [](https://bsky.app/intent/compose?text=Musk%20promises%20purge%20after%20Grok%20Build%20caught%20sending%20entire%20repos%20to%20the%20cloud%0Ahttps%3A%2F%2Fwww.theregister.com%2Fai-and-ml%2F2026%2F07%2F14%2Fmusk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud%2F5271123) [](https://www.reddit.com/submit?url=https%3A%2F%2Fwww.theregister.com%2Fai-and-ml%2F2026%2F07%2F14%2Fmusk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud%2F5271123&title=Musk%20promises%20purge%20after%20Grok%20Build%20caught%20sending%20entire%20repos%20to%20the%20cloud) [](https://api.whatsapp.com/send?text=Musk%20promises%20purge%20after%20Grok%20Build%20caught%20sending%20entire%20repos%20to%20the%20cloud%0Ahttps%3A%2F%2Fwww.theregister.com%2Fai-and-ml%2F2026%2F07%2F14%2Fmusk-promises-purge-after-grok-build-caught-sending-entire-repos-to-the-cloud%2F5271123)
REG AD
MOST POPULAR
-
Security GitHub AI agent leaks private repos when asked nicely
-
applications Microsoft to switch off OWA Light after nearly two decades
-
software Court tosses Microsoft's appeal in pre-owned software licenses battle
-
ai and ml Even banks and hyperscalers are now sounding the alarm about the AI bubble
-
DevOps HTTP gets a QUERY method so complex searches can stop pretending to be POST - AI and ML OpenAI hides Codex agent instructions behind encryption, leaving developers in the dark Developers worry encrypted MultiAgentV2 messages will make debugging and auditing harder
- AI and ML If you want Claude to speak nicely to you, try Hindi or Arabic Anthropic finds Claude expresses different values across languages
- ai and ml New York becomes first state to halt datacenter buildouts 50 MW-plus bit barn builds on hold while Empire State hashes out rules to protect the environment and ratepayers
- on-prem IBM's mainframe sales get mugged by AI hardware panic, stock sheds more than a quarter of its value CEO Krishna: Customers blew their Z budgets on servers and storage before prices spike, Q2 financials 'disappointing'
- AI and ML Anthropic's extravagant tokenizer complicates AI pricing Token consumption doesn't tell the whole tale but it shouldn't be ignored
- Security Russians are posing as Signal support to launch phishing attacks PLUS: US takes down Iranian propaganda sites; Marketing company asks 'Why Do We Have Your Information?' And more!
- Security Microsoft patches failed to fix on-prem SharePoint, which is now under zero-day attack PLUS: China upgrades smartphone surveillance tools; Ring eases anti-snooping stance; and more
- Black Hat and DEF CON DEF CON Franklin project enlists hackers to harden critical infrastructure Voting village reports have been so successful, says Jeff Moss, that the whole of DEF CON will now be included
- Security EQT buys majority share in Swiss cybersecurity biz Acronis Went at equivalent of $3.5B+ valuation for entire firm, though portion sold not specified
- Malware Month Ten years since the first corp ransomware, Mikko Hyppönen sees no end in sight On the plus side, infosec's a good bet for a long, stable career
- Baddies caught exploiting extensions bugs with perfect 10 scores on vulnerable Joomla websites Flaws in iCagenda, Balbooa Forms extensions can impact open source CMS that powers a million sites worldwide
- Frame: A new X11 server – implemented directly in assembly Joins yserver, Phoenix, and of course XLibre – and outlier Arcan
- Cinnamon 6.8 will support Wayland – if you want it Next version of Linux Mint’s desktop has both kinds of display server
- KDE Plasma users face a dire omen of change: 6.6.6 arrives 6.7 is now current, and in 6.8 you're getting Wayland whether you like it or not
- Collabora releases CODE 26.04 as rivalry between FOSS cloudy office suites heats up Now with Markdown support and smarter formula error handling – plus integrated AI, though it's off by default
- Blast from the past as GIMP 0.54 is revived in Flatpak form Retro-computing fun for the nostalgic with first (and last) release to use Motif instead of GTK


