# GitLost：我们如何骗GitHub AI泄露私有仓库

Original title: GitLost: We Tricked GitHub's AI Agent into Leaking Private Repos

> Hacker News story 48827858 · language: zh · submitted 2026-07-08
> Web version: https://zeli.app/zh/story/48827858
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 16 · by [ColinEberhardt](<https://news.ycombinator.com/user?id=ColinEberhardt>) · 💬 3
[original](<https://noma.security/blog/gitlost-how-we-tricked-githubs-ai-agent-into-leaking-private-repos/>) · [HN discussion](<https://news.ycombinator.com/item?id=48827858>)

## Summary

Noma Labs 发现 GitHub 新推出的 Agentic Workflows 存在严重漏洞，我们将其命名为 GitLost。攻击者无需任何代码技能或凭证，只需在公共仓库提交一个精心构造的 GitHub Issue，就能利用提示词注入（prompt injection）攻击，诱导 GitHub 的 AI Agent 读取并公开同一组织下的私有仓库代码。更令人震惊的是，即使 GitHub 设置了防护机制，攻击者仅通过添加“Additionally”这个词，就能绕过限制，让 AI 乖乖泄露敏感数据。这证明了在代理式 AI 系统中，AI 的上下文窗口就是其攻击面，任何被 AI 读取的内容都可能被武器化。

## Key quote

> 提示注入攻击对于代理式 AI 系统而言，就像 SQL 注入对于 Web 应用一样：这是一种需要同样系统化策略和防御手段的、系统性的类别级漏洞。

---

## Cite

- Page: https://zeli.app/zh/story/48827858
- Date: 2026-07-08
- Source: noma.security (https://noma.security/blog/gitlost-how-we-tricked-githubs-ai-agent-into-leaking-private-repos/)
- Hacker News: https://news.ycombinator.com/item?id=48827858

## Other languages

- en: https://zeli.app/story/48827858 · markdown: https://zeli.app/story/48827858.md
- ja: https://zeli.app/ja/story/48827858 · markdown: https://zeli.app/ja/story/48827858.md
- ko: https://zeli.app/ko/story/48827858 · markdown: https://zeli.app/ko/story/48827858.md
- de: https://zeli.app/de/story/48827858 · markdown: https://zeli.app/de/story/48827858.md
- es: https://zeli.app/es/story/48827858 · markdown: https://zeli.app/es/story/48827858.md
