Balancing speed and safety: A control framework for AI coding agents
- Published
- Record updated
Summary
This AWS Security Blog post presents an application security control framework for AI coding agents such as Kiro and Claude Code, which can open many pull requests quickly and reach beyond the IDE through the Model Context Protocol (MCP). The framework has two pillars: author-time controls that shape agent output in the IDE, and build-time controls that verify and gate code before production. It lists risks ordered by severity, starting with prompt and context injection (R001), and uses AWS Kiro and AWS CodePipeline as a running example.
Mitigation
For R001, treat non-developer input as untrusted, separate the orchestrating agent from the agent exposed to untrusted content, grant the exposed agent only read-only, least-privilege access, require human approval for irreversible actions, and use version-control steering files to prevent silent tampering. For R002, use security requirements in a steering document plus policy-as-code scanning (Checkov, cfn-nag) in the IDE and pipeline. For R003, use branch protection rules requiring PR approval, pre-commit hooks for security checks, and sandboxed agent runs that prevent direct pushes to protected branches.
Topics
Related items
- InfoAnthropic seemed poised to end privacy — then its research droppedSame vendor, The Verge (AI)
- InfoOpenAI and Anthropic AI agents cheat far less than rivals, new tests findSame vendor, TechCrunch (Security)
- InfoAnthropic cryptography disclosure draws backlash after RSA panicSame vendor, BleepingComputer
- InfoAmazon releases open-weight AI model as potential China crackdown loomsSame vendor, CNBC Technology
- MediumGoogle and Anthropic AI Found an 18-Year-Old UEFI Flaw That Can Bypass Secure BootSame vendor, The Hacker News