Skip to main content
Cloud Security Maturity Model AWS v3.0.0
c3.17

Agentic Security Review

Efficient

Effort: Medium Impact: Medium Multi-cloud

As AI coding assistants and autonomous agents become part of the software delivery process, your security review needs to cover what these agents produce and the tools they can reach. Agent-generated code, dependencies, configuration, MCP (Model Context Protocol) servers, and the prompts themselves can all introduce risks — leaked secrets, prompt injection, and known vulnerabilities — that traditional scanners are not designed to catch.

The recommendation at this phase is to add an agentic security review to your pipeline: a step that evaluates the security posture of the AI agents you use and the artifacts they generate, in addition to your normal application security testing (see DevSecOps).

Open-source tooling: ship-safe

A useful starting point is the open-source project ship-safe, an AI-powered security scanner for developers. It runs multiple specialized security agents in parallel against a codebase from a single command, scanning code, dependencies, configuration, MCP servers, and AI prompts to flag leaked secrets, prompt-injection vectors, and known CVEs. Use it to add an agent-aware review stage to your pipeline so issues are surfaced before code reaches production.

  • Treat agent-generated changes with the same scrutiny as human-written code: scan for vulnerabilities, secrets, and insecure configuration in the pipeline.
  • Review the MCP servers and tools your agents can call, and apply least privilege to the credentials and permissions they hold.
  • Test for prompt-injection and data-exfiltration paths in agent workflows, and fail the build when a high or critical finding is detected.

Risk Mitigation

  • AI coding assistants and autonomous agents can introduce vulnerabilities, leak secrets, or follow prompt-injection instructions that traditional scanners miss.
  • Code, dependencies, configuration, MCP servers, and AI prompts are increasingly generated or modified by agents, expanding the attack surface beyond hand-written code.

Guidance for Assessments

  • Do you review the security of the AI agents and assistants used in your software delivery process?
  • Are you scanning agent-generated code, dependencies, and configuration for vulnerabilities, leaked secrets, and prompt injection before it ships?
  • Do you assess the MCP servers and tools your agents can access, and constrain their permissions?