EYES ONLY · Metatron · 1 September 2026 · FINAL

SENTINEL
Matrix

V-04 · Reported 2026-07-12 · 146 days open

Silent Codebase Upload

criticalPartialcereblab (wire-level analysis)

Marketed as local-first. On the wire: POST /v1/storage uploaded git bundles — every tracked file plus history — to an xAI-managed GCS bucket named grok-code-session-traces. “Reply OK, do not read any files” still uploaded the repo. Turning off Improve the model did not stop it. A 12 GB test repo sent 192 KB on the model channel and 5.10 GiB on storage — about 27,800×. xAI flipped disable_codebase_upload server-side around 13 July. That flag is not yours. Local config.toml with disable_codebase_upload = true is the hard veto.

Two channels · Grok Build CLI 0.2.93

12 GB test repository

Model channel

192 KB

POST /v1/responses

Storage channel

5.10 GiB

27,800× the model channel

The visible sliver is what the model needed. The rest is the repository leaving the machine.

Attack chain

  1. 1

    Two channels

    Model turns go to POST /v1/responses. A second, undocumented POST /v1/storage ships the workspace.

  2. 2

    Bundle the repo

    A git bundle is a single-file archive of complete history — every commit, every file version.

  3. 3

    Ignore the user

    Instructions not to read files, and the privacy toggle, do not bind the storage pipeline.

  4. 4

    Land in GCS

    Objects land under gs://grok-code-session-traces/…. HTTP 200 on the chunks.

What leaves

  • Entire Git repositories as bundles
  • Unredacted .env API keys
  • Secrets deleted from HEAD but alive in history
  • SSH keys and config files (reported)

Why defenses fail

  • Telemetry and harvest were on by default.
  • User-facing privacy controls did not bind the storage pipeline.
  • A server-side flag can be flipped back without a client change.
  • No consent dialog before a whole-repo upload.

The fix

Local hard veto

disable_codebase_upload = true in ~/.grok/config.toml. This is the last gate in the upload pipeline.

Defense in depth

GROK_TELEMETRY_TRACE_UPLOAD=false and GROK_TELEMETRY_ENABLED=false in the shell profile.

Rotate secrets

If Build ran against a folder with keys, assume they left the machine. Rotate all of them.

Re-verify after updates

Client auto-updates. Re-run verification. Do not trust a silent server flag as the permanent fix.