Grok Build was transferring complete Git repositories to xAI's cloud, which included secrets that had been committed.
On July 12, a security researcher released a wire-level analysis revealing that xAI's Grok Build coding CLI was bundling entire tracked repositories from developers, which included complete Git history, committed secrets, and API keys, and sending them to a Google Cloud Storage bucket. The analysis indicated that the amount of uploaded data was approximately 27,800 times more than what the coding task required. The researcher, operating under the name cereblab, tested version 0.2.93 of Grok Build, intercepted the upload, cloned the git bundle from the request, and retrieved a file that the AI agent had been specifically instructed not to access. xAI had promoted the tool by asserting that "nothing from your codebase transmitted to xAI servers during a session," which the wire data directly contradicts.
Claims suggest that the privacy toggle intended to prevent data transmission was ineffective, as highlighted by multiple reports. Grok has previously faced privacy-related issues, including the unauthorized use of X user data for training, which regulators considered a "very likely" violation of EU law. A quarter of European companies have completely prohibited Grok in favor of other options with stronger security measures.
Elon Musk acknowledged the uploads and stated that SpaceXAI would erase all previous Grok Build user data. The company outlined a “zero data retention” policy and introduced a /privacy endpoint. A subsequent test by the same client noticed a server-side flag that disabled the uploads. However, an independent audit has yet to verify the deletion. Grok Build was launched alongside Grok 4.5 as xAI's response to Claude Code and Cursor, making the privacy violation particularly detrimental for a product intended to earn the trust of enterprise developers.
Other articles
Grok Build was transferring complete Git repositories to xAI's cloud, which included secrets that had been committed.
A researcher demonstrated that Grok Build CLI transferred entire repositories, sending 27,800 times more data than necessary, to a Google Cloud bucket. xAI had claimed that no code was sent.
