Skip to content
MediumNewsLLM-specific

Grok Build Uploaded Entire Git Repositories to xAI Storage, Not Just Files It Read

Published
Record updated
View JSON

Summary

xAI's Grok Build CLI, tested at version 0.2.93, uploaded entire Git repositories, including full commit history, to an xAI-run Google Cloud Storage bucket, not only the files a task needed. A researcher captured the uploads and recovered a file the agent had been told not to open, with the storage channel moving 5.10 GiB against about 192 KB of model-turn traffic on a 12 GB repo. Credentials in a tracked .env file were also sent unredacted and stored, and the "Improve the model" toggle did not stop the repository upload.

Mitigation

On July 13 the same 0.2.93 binary stopped making /v1/storage requests, and the server returned disable_codebase_upload: true and trace_upload_enabled: false. xAI has not confirmed whether this applies to every account or is permanent, and has not issued a security advisory or changelog note.