SpaceXAI's Grok Build Tool Was Uploading Users' Entire Codebases to Cloud Without Adequate Controls
Key Takeaways
- ▸Cereblab researchers discovered Grok Build was uploading entire codebases to Google Cloud without explicit user opt-in, capturing sensitive files and secrets
- ▸SpaceXAI disabled the feature and Elon Musk promised complete deletion of previously uploaded data
- ▸Security experts called the data retention 'excessive' and flagged risks to proprietary code, credentials, and infrastructure details
Summary
Security researchers at Cereblab discovered that SpaceXAI's Grok Build AI coding tool was uploading users' entire codebases to Google Cloud storage, including files the tool was instructed not to access and deleted secrets. The discovery exposed a significant gap in data retention practices compared to competing tools like Claude Code. SpaceXAI disabled the feature after the discovery was reported, and Elon Musk pledged to "completely and utterly delete" all previously uploaded data. Security experts warn that the retained data potentially included proprietary source code, vulnerability information, personal data, infrastructure details, and credentials—far exceeding industry standards for development tools. While SpaceXAI claimed users could control data retention via a privacy command, researchers noted the tool lacked meaningful user consent mechanisms before uploading.
- The incident reveals a critical transparency gap in AI development tools regarding data handling practices and user control
Editorial Opinion
This incident exposes a troubling assumption that many users make about AI development tools—that their code remains private by default. The fact that SpaceXAI implemented such extensive data retention without prominent, affirmative user consent is a serious breach of developer trust. While the company's swift response to disable the feature is commendable, it underscores the need for stronger industry standards and regulatory scrutiny around how AI coding assistants handle proprietary codebases.



