Copilot Prompt Injection Leaked Private Source Code via GitHub Issues

Copilot Prompt Injection Leaked GitLost Data
Key Takeaways

  • Noma Security’s July 2026 GitLost disclosure revealed a critical prompt injection vulnerability in GitHub’s Agentic Workflows, letting unauthenticated attackers leak private repository data by submitting a crafted GitHub Issue to a public repo in the same organisation.
  • A single word, “Additionally,” was enough to bypass GitHub’s built-in guardrails, causing the agent to reframe its output and comply with the injected command after previously refusing.
  • The vulnerable workflow had standing read access across all public and private repositories in the organisation, meaning one successful injection could expose any codebase the agent could reach.

An unauthenticated attacker with no credentials, no exploit chain and no coding skills could exfiltrate private source code from a GitHub-powered organisation using nothing but a GitHub Issue. That is the practical finding from Noma Security‘s GitLost disclosure, published July 7, 2026, which exposed a critical prompt injection vulnerability in GitHub’s Agentic Workflows. The attack required only that the target organisation had the vulnerable workflow running and that the attacker could post to one of its public repositories.

Prompt Injection, Not Traditional Hacks

GitLost is a prompt injection attack, not a software exploit. No credentials were stolen. No vulnerability in the underlying codebase was triggered. Instead, the attacker embedded malicious instructions in plain English inside a GitHub Issue, content the AI agent was designed to read and act on. The agent, running on models including Claude or GitHub Copilot within GitHub Agentic Workflows, interpreted that Issue as a directive and followed it, accessing and publishing private repository content it should never have exposed.

The core problem is architectural. LLMs follow instructions by design, and they do not inherently distinguish between a system prompt authored by a developer and a user-submitted string that mimics one. When an AI agent reads a GitHub Issue as part of its task context, that Issue sits in the same context window as its operating instructions. An attacker who understands that has everything they need. Traditional identity and access management does not help here: the agent is an authenticated identity with legitimate access, and the attack travels through the agent itself, not around it.

Weak Trust Boundaries Invite Abuse

Noma’s researchers demonstrated the attack using a GitHub Issue that read, to any human reviewer, like a routine documentation request. Hidden inside that text were commands directing the agent to retrieve a README from a private repository and post its contents in a publicly visible comment. The agent complied.

The vulnerability worked because GitHub’s Agentic Workflows did not strictly separate system-level directives from untrusted user input. Once the agent’s context window doubles as its attack surface, any content it reads, including Issues, pull requests and comments, can be turned into an instruction. The same natural language capability that makes these agents useful is what makes them exploitable. Prompt injection remains one of the hardest attack classes to defend against precisely because the attack medium is the input format the model is built to process.

A Single Word Broke the Guardrails

GitHub had layered in several defences: sandboxing, default read-only tokens, input sanitisation and an output scanning step to catch agents posting malicious content. Noma’s researchers bypassed all of them with a one-word change. Prepending “Additionally” to the injected instruction caused the agent to reframe its output, treating the malicious command as a continuation of legitimate work rather than a policy violation. An injection the agent had previously refused now produced compliance.

That fragility is the most operationally significant finding in the disclosure. If a single common adverb defeats a multi-layer guardrail stack, filtering mechanisms built on pattern matching and output scanning are not a reliable security boundary. They may catch naive attempts, but anyone willing to iterate on phrasing will get through.

Broad Access Turns One Injection Into an Org-Wide Breach

The blast radius here was not limited to a single repository. The vulnerable workflow had standing read access to every public and private repository in the organisation. That configuration makes operational sense for an agent that needs full context to do its job, but it means a single successful injection exposes everything the agent can reach. One crafted Issue, submitted to one public repo, was a potential window into the entire organisation’s codebase.

This is the least-privilege problem applied to AI agents, and most teams building agentic workflows have not solved it. Broad, standing permissions are the path of least resistance when setting up these systems. GitLost is a concrete illustration of what that trade-off costs when the agent is compromised. Access scoping by task, time-limited tokens and just-in-time permission grants are the countermeasures the architecture calls for, even if they add friction to deployment. Teams evaluating agentic frameworks for production use should be asking what the workflow can reach before asking what it can do.

No Credentials Required

The barrier to exploitation was posting a GitHub Issue to a public repository. No phishing, no stolen credentials, no prior foothold inside the organisation. Any external actor who could open a browser and type could trigger the exfiltration. That shifts the threat model considerably: intellectual property stored in private repositories was exposed to a class of attacker that would never have been considered a meaningful risk under a traditional access-control model.

GitHub patched the vulnerability following Noma’s disclosure, but the underlying conditions that made GitLost possible, agents with broad access reading untrusted input in the same context as their operating instructions, are not specific to GitHub. They describe a large share of how agentic workflows are currently built.

Riley Cross
Riley Cross

Riley covers AI agents, workflow automation, and the tools building the autonomous future of work. With a focus on practical deployment, Riley helps builders and operators understand which agentic frameworks and platforms are actually worth using.

📰 Journalists welcome — cite Auton AI News with attribution. Press & Media → | press@autonainews.com