ghtier

These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.

← All incidents

GitHub MCP / agentic token breadth

May 2025 – ongoing · Ongoing

An AI agent holding a token that reaches private repositories reads an issue someone wrote on a public repository, follows the instructions hidden in it, and copies private content into a public pull request or comment; no stolen credential is needed.

Full summary

In May 2025 Invariant Labs showed it with the official GitHub MCP server. A developer had Claude Desktop connected to GitHub with a token for all their repositories and asked it to look at the open issues of one of their public repositories. One issue, written by the attacker, told the agent to gather information about the owner from their other repositories and add it to the README. The agent read the private repositories and opened a public pull request containing what it found. Invariant called it a toxic agent flow: untrusted input, private data and a way to publish, all reachable by one agent. A reporter on the server's issue tracker reproduced it and found that even a token limited to public repositories could read private ones in that setup; GitHub's maintainers treated it as a general risk of agents with write tools rather than a server bug. In July 2026 Noma Security showed the same against GitHub Agentic Workflows, where an organization can give an agent read access across its repositories: a normal-looking public issue got the agent to post private contents in a public comment.

How it unfolded

Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.

Whole path

Prompt injection into an AIagentway inContents: ReadThe agent's tokenPull requests: WriteThe same tokenGet an agent to copyprivate code into publictechniqueRead or expose private code

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

Frameworks

Part of

Ongoing. First seen May 2025. Mapping by ghtier, not yet reviewed. Threat landscape

Sources

Reported by: Invariant Labs, Orca Security, Noma Security