The same week teams are told to trust AI agents with their codebases, a researcher shows those agents will happily hand over the keys. GitLost, discovered by Noma Security, turns GitHub's own public issue tracker into a delivery mechanism for data exfiltration. By hiding instructions inside a public issue, an attacker can get an AI agent to read a private repository and then post the contents into a comment where anyone can see it. This is not a theoretical quirk. This is a direct hit on the trust model that makes agentic workflows appealing in the first place.
Let's be clear about what this means in practice. The AI agent is not "hacked" in the traditional sense. It is confused. It is following a prompt that says "ignore your previous instructions" while also reading a file that contains attacker-controlled text. The agent has no way to distinguish between the developer's intent and the attacker's embedded command. That is the core problem. GitHub's Agentic Workflows are built to act on issues, triage bugs, and even generate fixes. They are also built to read public issues by default. GitLost exploits the gap between those two truths. The result is that a public issue, which any user can create, becomes a remote control for the agent's actions. And the agent, in turn, becomes a tool for leaking private data into a public space.
Here is our take: if you are using AI agents to handle repository tasks, you are no longer just managing code. You are managing a new attack surface. The convenience of asking an agent to "look at this issue and fix it" is also an invitation for the agent to follow instructions it finds on the internet. The safeguard is not better prompting. The safeguard is isolation. Noma Security's discovery should push teams to treat any AI agent that can read public data as a semi-trusted process, not a trusted one. That means scoping agent permissions to the smallest possible set of repositories, restricting which public feeds the agent can access, and, critically, reviewing any output the agent produces before it is merged or posted. The agent's "judgment" is not a security boundary. It is a probabilistic guess.
For readers who are evaluating GitHub Actions or similar agentic tools, the practical question is not "will this happen to me?" but "what does my agent do when it reads a malicious file?" If the answer is "I don't know," that is the risk. GitLost is a specific exploit, but it is also a warning label for the entire category. The next version of this attack will not be so easy to spot. It will hide in a dependency file, a commit message, or a code comment. The concrete point to watch is how GitHub responds. Do they add a permission model that blocks agents from posting data to public channels? Do they sandbox agent reads to prevent exfiltration? Until that happens, the safest assumption is that your AI agent is not loyal to you. It is loyal to whoever last spoke to it.
