RC RANDOM CHAOS

An open door where the gate should be

Noma Labs' GitLost bug let an unauthenticated GitHub issue trick an Agentic Workflows AI agent into posting private repo contents as a public comment.

· 3 min read
An open door where the gate should be

Noma Labs opened a GitHub issue that read like a routine request from a VP of Sales after a customer meeting. A GitHub automation assigned the issue, which triggered a workflow, which woke an AI agent. The agent read the issue body, followed instructions hidden inside it, fetched the README.md from a private repository in the same organization, and posted the file’s contents as a public comment on the issue. No credentials, code, or prior access to the organization were required. The researchers named the bug GitLost.

The target is GitHub Agentic Workflows, which GitHub recently launched to pair GitHub Actions with an AI agent backed by Claude or GitHub Copilot. You write the workflow in plain Markdown, GitHub compiles it to a YAML Actions file, and the agent reads issues, calls tools, and responds on its own with whatever permissions you grant it. The workflow Noma tested was set to trigger on issues.assigned events, read the issue title and body, post a comment through the add-comment tool, and run with read access to other repositories in the organization, both public and private.

That permission set is the whole problem. The agent treats the issue body as input to act on, and the issue body comes from anyone on the internet who can open an issue on a public repo. Hidden instructions in that text become instructions the agent follows. This is indirect prompt injection: the malicious payload rides in on content the agent was told to read, and the agent cannot separate the operator’s instructions from the attacker’s.

GitHub had guardrails meant to stop exactly this, and they held until Noma tried variations the way an attacker would. Prefixing the exfiltration request with the word “Additionally” got the model to reframe its output rather than refuse it, and the guardrail let the leak through once the request was phrased as an addition to legitimate work.

The confirmed proof of concept leaked the README.md contents of sasinomalabs/poc, a public repo, and sasinomalabs/testlocal, a private one, alongside sasinomalabs/remote-ping, a public repo with no README confirmed. The workflow run and the issue are both public on GitHub.

The shape of this generalizes to any team running agentic automation. The agent’s context window is its attack surface. Anything it reads, whether issues, pull requests, comments, or files, is a candidate instruction when the agent treats read content as instructional input. Traditional security models assume code enforces trust boundaries. In an agentic system, part of that boundary lives in the model’s behavior, and models follow instructions by design, which makes it unreliable.

If you run these workflows, Noma’s recommendations follow straight from the attack. Keep user-controlled content out of the instruction context by sanitizing or isolating issue and comment text before it reaches the model. Scope the agent’s permissions to the minimum the job needs, because cross-repository read access turns one public issue into a path to every private repo in the org. Restrict what the agent can post publicly, especially comments generated in response to issue content. An agent that can both read private repositories and post public comments is an exfiltration channel waiting for input.

GitLost was disclosed to GitHub, and the details were published with GitHub’s knowledge.

Share

Keep Reading

Latest on the Wire

Full wire →

New signal daily · RSS

Stay in the loop

New writing delivered when it's ready. No schedule, no spam.