Homeโ€บTechnologyโ€บSpaceXAI Grok Coding Tool Uploads Entire Codebases to Cloud
SpaceXAI Grok Coding Tool Uploads Entire Codebases to Cloud
TechnologyThe Vergeยท July 14, 2026(7d ago)

SpaceXAI Grok Coding Tool Uploads Entire Codebases to Cloud

SpaceXAI's Grok coding tool was discovered silently uploading entire user codebases to Google Cloud without user knowledge. The dangerous behavior was flagged by security researchers and has since been disabled.

## Background

A serious privacy issue has emerged in SpaceXAI's Grok Build, an AI-powered coding assistant designed to help developers write and modify code. The tool was spotted silently uploading complete user codebases to Google Cloud storage without clear user consent, raising fresh concerns about how much data these assistants actually transmit.

## What Researchers Discovered

Security researchers at Cereblab published their findings on Monday, revealing that the Grok Build command-line interface was packaging full code repositories and sending them to external servers. Alarmingly, the upload included files the tool had been explicitly told not to open, along with secrets that developers had already deleted from their commit history.

## Comparison With Competing AI Tools

The behavior was significantly more aggressive than comparable AI coding assistants like Anthropic's Claude Code and others on the market. While rival tools tend to collect only small code snippets for context, the Grok coding tool was transmitting entire project structures in the background, exposing far more sensitive material than developers likely expected.

## SpaceXAI's Response

According to the researchers, the company's servers began returning a "disable_codebase_upload: true" flag by Monday afternoon, indicating that an internal fix had already been deployed. Once that flag was active, the codebase upload process no longer fired during testing. Elon Musk has reportedly responded on social media, though the company has not yet issued a detailed public statement.

## Why This Matters for Developers

For developers and engineering teams, this episode highlights the need to scrutinize what any AI coding tool actually sends to the cloud. Corporate secrets, API keys, and proprietary algorithms could have been exposed to third-party servers during the window when the tool was operating this way, making transparency and data handling policies more important than ever.