Hidden instructions made MCP agents copy private data into public places
Researchers hid instructions in a public GitHub issue and a support ticket. Agents then copied private repository data into a public pull request and secret tokens into the ticket.2
5 of 50
Stopped Limited: the payment went out through the bank’s own system This case: GitHub MCP and Supabase MCP. The gate asks first.
Agents followed instructions hidden in an issue and a support ticket.
May 2025. Invariant Labs planted instructions in an issue on a public GitHub repository.
The owner asked. Asked about the issues, the owner’s agent pulled private repository data into a public pull request.
July 2025. General Analysis did the same with a support ticket. Cursor’s agent posted the integration_tokens table into the thread.2
With the sealed gate, the public post would have had to wait for approval.
After a private read, nothing would have gone public without a person’s OK, and secrets would have been removed on the way in. Press Play to watch the same call.5
mcp.no-leak@1mcp.redact@1- request
tools/call {"name":"create_pull_request","arguments":{"repo":"owner/public-repo"}}Asks first - result
tools/call {"name":"execute_sql"} returns integration_tokens rows{redacted: [secrets]}
Asks firstAnd secrets in tool results are removed before the agent sees them.
A repo owner could make public writes ask first after a private read, 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 four lines of code.
The same three steps, from the terminal.
sealedbox keys sealThe agent gets sbk_live_2Vn7…d3.sealedbox rules addPublic writes wait; secrets are removed.sealedbox approvals connectAsk-first calls go to #dev.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 happens to a secret in a tool result?
It is removed before the agent sees it. Results through the gate’s MCP address are redacted of card numbers, US SSNs, IBANs and secrets.
Could the agent slip private data out in a link instead?
After a private read, a call carrying that private text, as read or encoded, is refused. The check misses facts the agent restates in its own words.
What about the all-powerful service_role key?
Sealed with SealedBox, it never reaches the agent. It opens only inside the gate, for one call at a time, after the rules pass.
What does it take to connect an MCP client?
One URL in the client’s settings, with the agent’s SealedBox key as the bearer token.