GitLost Prompt Injection Made GitHub Agentic Workflows Leak Private Repo Data
Emerging Technology Risk · 14 sources · Updated 4mo ago · First seen Jul 7, 2026

Researchers at Noma Security disclosed GitLost, a prompt injection technique that can make GitHub Agentic Workflows expose data from private repositories through public issue comments. In the demonstrated attack, an adversary needed only to open a crafted issue in a public repository; if the workflow had broad cross-repository read access and permission to post publicly, the agent could be steered into retrieving content from a private repository in the same organization and publishing it as part of its response. The proof of concept showed the agent reading a private repository README and using its own authorized access as the exfiltration path, without the attacker needing credentials, coding skills, or direct access to the private repo.
Noma said GitHub had been notified through responsible disclosure and published workflow reproductions and proof-of-concept evidence after testing. The researchers also reported that GitHub’s prompt-based output protections could be bypassed with a one-word prefix—"Additionally,"—causing the model to comply with the malicious instruction instead of refusing it. The findings highlight an architectural risk in AI agents that combine access to sensitive internal data, ingestion of untrusted public input, and an outward publishing channel; recommended mitigations include minimizing token and repository scope, limiting what agents can publish publicly, restricting which users can trigger agent actions, and requiring human review before public posting.


