Researchers show GitHub AI agent can leak private repository data
A security researcher from Noma Security published a detailed report titled “GitLost: How We Tricked GitHub’s AI Agent into Leaking Private Repos,” describing a proof‑of‑concept attack that caused GitHub’s AI‑driven code assistant to expose snippets from private repositories. The author explains that by crafting a series of seemingly innocuous prompts and leveraging the model’s autocomplete behavior, the AI was induced to retrieve and display code that should have remained inaccessible, effectively bypassing the platform’s access controls. The methodology involved embedding repository identifiers within the query and exploiting the model’s tendency to surface relevant code fragments, resulting in the unintended disclosure of proprietary source code.
GitHub has acknowledged the findings and indicated that its engineering team is reviewing the reported vectors to reinforce the isolation mechanisms governing AI‑generated content. The report underscores the broader security challenges associated with integrating large language models into development workflows, particularly when those models have access to extensive codebases. As the investigation proceeds, the incident serves as a reminder for organizations to monitor AI tool outputs and to implement additional safeguards for sensitive code repositories.