Why AI Agent Security Starts With Permissions, Not Prompts

https://hackernoon.imgix.net/images/x2tcDBGSZLhfhRD7pK75yW0DKIa2-iy83brc.png

A pull request title is about the least dangerous-looking text in software. In October 2025, a researcher reported to Anthropic that one could take over its Claude Code Security Review action. The action put the title straight into the agent's prompt. The agent ran with no tool restrictions, in a process that inherited the job's environment, including GITHUB_TOKEN and ANTHROPIC_API_KEY. A crafted title got it to run commands such as ps, and the output came back in a PR comment.

The same research, published in April 2026 as "Comment and Control", reached two more agents. In the Gemini CLI Action, a fake "Trusted Content Section" added to an issue led the agent to post GEMINI_API_KEY as a public comment. GitHub's Copilot Agent, once someone assigned it the issue, followed instructions hidden in an HTML comment that the rendered page doesn't show, then committed its base64-encoded process listing to a PR.

...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE