Why AI Agent Security Starts With Permissions, Not Prompts

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
…