Grok Was Caught Uploading Your Entire Codebase

Better Stack
21,752 views July 16, 2026

xAI's Grok CLI was caught uploading entire git repositories, full history and .env secrets included, even when told not to open a single file. We break down the wire-level analysis that exposed it, how Claude Code, Codex, and Gemini handle the same test, and why the "improve the model" opt-out did nothing. EDIT: Since making this video xAI has responded further and made the Grok CLI opensource: https://x.com/SpaceXAI/status/2077494535387828644?s=20 🔗 Relevant Links Security Research: https://cereblab.com/ ❤️ More about us Radically better observability stack: https://betterstack.com/ Written tutorials: https://betterstack.com/community/ Example projects: https://github.com/BetterStackHQ 📱 Socials Twitter: https://twitter.com/betterstackhq Instagram: https://www.instagram.com/betterstackhq/ TikTok: https://www.tiktok.com/@betterstack LinkedIn: https://www.linkedin.com/company/betterstack 📌 Chapters: 0:00 - Intro 0:29 - The Viral Tweet 0:52 - The Wire-Level Analysis 1:37 - How Other Tools Compare 1:55 - xAI's Response 3:07 - The Upload Code Is Still There 3:26 - What /privacy Actually Does 4:17 - Check Your Logs & Protect Yourself 4:49 - Final Thoughts

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close