Skip to content
Submit incident
AII-1000-31819
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

xAI Grok Build uploaded entire private code repositories to cloud storage

SpaceXAI's Grok Build coding tool was uploading users' entire code repositories, including sensitive files and deleted secrets, to Google Cloud storage. Researchers at Cereblab discovered the excessive data retention, which SpaceXAI subsequently disabled, and Elon Musk pledged to delete all previously uploaded data.

14 July 2026 Β· SpaceXAI Β· Privacy and surveillance
14 July 2026
AII-1000-318193 sources ↓
Quick facts
Category
Privacy and surveillance
Country
United States
Source
The Verge
Date
14 July 2026
Drafted by
Raidu Incident Detection

What happened

SpaceXAI's Grok Build CLI tool was uploading users' entire code repositories to Google Cloud, including files it was instructed not to open and secrets deleted from history.

Researchers at Cereblab published findings on Monday showing the excessive data retention, significantly more than similar tools like Claude Code. SpaceXAI disabled the upload feature after the report, with servers returning a 'disable_codebase_upload: true' flag as of Monday.

Reported impact

The uploaded data potentially included proprietary source code, information about security vulnerabilities, personal data, infrastructure details, and credentials, according to Dr. Lukasz Olejnik, an independent security researcher at King's College London, who confirmed the data retention was 'excessive.'

Index analysis

SpaceXAI initially responded by pointing users to a /privacy command for per-session retention toggles, but Cereblab clarified this was not the mechanism that fixed the underlying upload issue.

Governance controls

Elon Musk stated that all previously uploaded data would be 'completely and utterly deleted.' Musk also claimed privacy settings are always respected but asked users to allow SpaceXAI to retain data, saying it is 'helpful for debugging issues.'

Classification

Category
Privacy and surveillance
Industry
IT infrastructure and hosting
Country
United States
Harm status
Actual harm
Intent
Unintentional
Timing
Post-deployment
Harm types
Economic or property
Harmed
Consumers, Business
Failure modes
Data leak, Agent misaction
Consequences
System suspension or termination
AI systems
Grok Build

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

The Verge
SpaceXAI's Grok programming tool was uploading its users' entire codebase to cloud storage
14 July 2026
Hindustan Times
Why Elon Musk's xAI is facing backlash over claims it uploaded users' code
14 July 2026
TheRegister.com
Musk promises purge after Grok Build caught sending entire repos to the cloud
14 July 2026