grokpatrol

Detects, on your machine, whether the Grok Build CLI collected and queued your
git repositories for upload to xAI — and tells you which secrets went with them.

Live incident. The Grok Build CLI was found silently uploading whole git repositories to
xAI. If you have run it, the question is not whether it could — it's what left your disk.
The Grok Build CLI was found to silently upload entire git repositories to Google Cloud Storage. The upload was performed by a background collector that ran outside the tool-call permission system, so it fired even in sessions where the model was denied file access. What it shipped:
- every tracked file at git HEAD,
- every git object reachable from HEAD,
- files deleted from the checkout but still reachable in git history — which is
exactly where secrets tend to hide.
Confirmed affected: 0.2.93. Reported still present in versions through at least 0.2.99.
grokpatrol detects Grok versions 0.1.212 through the latest observed, 1.0.77
(grokver.LatestObserved); a newer build is flagged, because its config keys, log events or
queue layout may have changed.
Most published indicators were network-based — you had to be watching the wire while it
happened. grokpatrol answers the question you can still ask afterwards: what evidence
is left on this disk, which repos were taken, and what do I have to rotate?
It also covers the second Grok Build incident, apps published from grok.com that open for
anyone (GhostShares). Every scan lists the
Grok Build apps (*.grok.me) this machine has opened. The separate grokpatrol-online build
checks which of them open without sign-in, scans the public ones for leaked keys, finds your org's
apps in public name lists, and can show a desktop alert within minutes of an app going public. See
Grok Build apps. The standard grokpatrol binary still makes no network
calls.
Install
1. One-liner
curl -fsSL https://raw.githubusercontent.com/optimuslabs-io/grokpatrol/main/install.sh | sh
Detects your OS and architecture, downloads the matching release binary, verifies it
against SHA256SUMS before installing (aborting on any mismatch), and installs to
~/.local/bin if that is on your PATH, else /usr/local/bin.
macOS and Linux only; Windows is not currently built or supported.
2. Build from source through the Go module proxy
go install github.com/optimuslabs-io/grokpatrol/cmd/grokpatrol@latest
3. Download and verify
Grab the binary for your platform plus SHA256SUMS from the
releases page, then:
shasum -a 256 -c --ignore-missing SHA256SUMS # sha256sum on Linux
# Prove the binary was built by this repo's release workflow (sigstore):
gh attestation verify grokpatrol_<tag>_<os>_<arch> -R optimuslabs-io/grokpatrol
chmod +x grokpatrol_<tag>_<os>_<arch> && mv grokpatrol_<tag>_<os>_<arch> /usr/local/bin/grokpatrol
<tag> looks like v0.1.16; <os> ∈ {darwin, linux}, <arch> ∈ {amd64, arm64}.
AGENTS.md has a copy-paste snippet that resolves the latest tag and asset name
for you, no hardcoding.
The checksum proves the download arrived intact. The attestation proves something
stronger: the binary was built from this repository's source by its release workflow,
recorded in a transparency log that a compromise of this repo could not rewrite.
Use