A leaked API key opened xAI’s private models for about two months
An xAI staff member committed a private API key to a public GitHub repository. It gave access to at least 60 private and fine-tuned models, including unreleased Grok versions.2
48 of 50
Stopped Limited: the payment went out through the bank’s own system This case: xAI API key. The gate refuses it.
The key still worked about two months after the first alert.
The commit. An xAI technical staff member committed a private API key to a public GitHub repository.
2 March 2025. GitGuardian alerted the employee. The key kept working.
30 April. GitGuardian alerted xAI’s security team. The repository came down hours later.2
With the sealed gate, the leaked key would have been refused off its machine.
Only a SealedBox key could have leaked, and it works only through the gate, where one stop ends it. Press Play to watch a leaked key used elsewhere.5
bound_to: machine_a403- request
POST /s/model/v1/chat/completions {"model":"private-ft-7"}from: laptop_unknownRefused403standin_bound_elsewhere - request
POST /s/model/v1/chat/completions {}after: stopStopped423
RefusedA SealedBox key used off its machine is refused, and one stop ends it.
xAI could have tied every model key to its own machine in three steps.
Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7
Or in three lines of code.
The same three steps, from the terminal.
sealedbox keys sealCode gets sbk_live_6Ua2…p7.sealedbox rules addOff its own machine, the key is refused.sealedbox approvals connectAsk-first calls go to #security.mcpServers.gate.urlOne URL, with the SealedBox key in the header.Put the gate in front of your agent today.
Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.
$ sealedbox try5-minute practice run9What the gate doesn’t change, and three failures like this one.
Names and logos belong to their owners. Their use here reports public events and implies no endorsement.
What could someone do with the key from the repo?
Nothing from their own machine. A SealedBox key used off its own SealedBox machine is refused.
How quickly does a stop take effect?
On the next call. A stop from the console, API or SDK ends every key of that agent on every gate instance.
Would we know if the key was used outside the gate?
A month-end check against the service’s own log shows any use without a receipt.
What can the key reach on its own machine?
Only the services and calls its rules allow. Each is checked at the gate before the real key opens.
Can we limit a key to certain models?
Yes. Rules read the JSON body of each call, so a rule can allow named models and refuse the rest.
Could the real xAI key be worked out from the leaked one?
No. A SealedBox key holds no secret; the real key is sealed and opens only inside the gate’s chip.