AI Security Maturity Model·AWS v1.0.0

Drag to explore · pinch to zoom

Advanced AI Application SecurityDefense-in-depth layer: AI Application Capability 5 · Generative AI agentsUse case: AI that acts 👤 CustomerAWS Shared Responsibility Model: who implements and operates this control. Customer = you own it; AWS = AWS operates it and you inherit it; Shared = both have obligations.

c5.10 Adversarially test and review agents

Continuously test agents against prompt attacks and review their design and code, so weaknesses are found before attackers exploit them.

Foundational
Enhanced
Advanced
Effort: High Impact: Medium GenAI scopesFrom the AWS Generative AI Security Scoping Matrix.: 3 · Pre-trained models; 4 · Fine-tuned models Agentic security dimensionsFrom the AWS Agentic AI Security Scoping Matrix.: Guardrails & monitoring

Implementation guidance

How to implement on AWS

Use AWS Security Agent to review architecture and pull requests and to run on-demand penetration-testing scenarios. Use AgentCore Evaluations to assess agent quality online and on-demand, and run adversarial/jailbreak test suites before and after deployment.

Acceptance criteria

Agents undergo adversarial testing and security review before release; AgentCore Evaluations run on an ongoing basis; findings are remediated.

Practical implementation

How this control is implemented in each reference architecture:

Agents are adversarially tested and security-reviewed in a non-production account of the OU before promotion, with AgentCore Evaluations running continuously in the Generative AI account.

  1. Use AWS Security Agent to review architecture and pull requests and to run on-demand penetration-testing scenarios in a development account of the OU.
    Generative AI OU (development account) AWS Security Agent
  2. Run AgentCore Evaluations plus adversarial/jailbreak test suites before promotion, and record results as the gate to production.
    Generative AI OU (development account) → Generative AI account AgentCore Evaluations
  3. Pair every negative test (for example an unapproved model, an unapproved tool, or another tenant's identity) with a positive twin in the same run that proves the call would otherwise succeed. Require each denial to name the expected control (policy, guardrail, or IAM), so a test cannot pass for the wrong reason.
    Generative AI OU (development account) AgentCore Evaluations
  4. Continue AgentCore Evaluations online in production and remediate findings.
    Generative AI account AgentCore Evaluations CloudWatch

How to validate: Agents undergo adversarial testing and security review before release; AgentCore Evaluations run on an ongoing basis; findings are remediated. Every negative test has a positive twin in the same run, and each denial names the expected control.

Avoid: Shipping an agent after a happy-path demo. Agents face adversarial input; test with jailbreak suites and review before and after release.

Generative AI OU (multi-account) →

Adversarial testing, security review, and continuous AgentCore Evaluations run against a pre-production configuration in the account before agents serve production traffic.

  1. Use AWS Security Agent to review architecture/PRs and run on-demand pen-test scenarios.
    Generative AI tier (IAM role) AWS Security Agent
  2. Run AgentCore Evaluations and adversarial/jailbreak suites before promoting to production use.
    Application tier (IAM role) AgentCore Evaluations
  3. Pair every negative test (for example an unapproved model, an unapproved tool, or another tenant's identity) with a positive twin in the same run that proves the call would otherwise succeed. Require each denial to name the expected control (policy, guardrail, or IAM), so a test cannot pass for the wrong reason.
    Application tier (IAM role) AgentCore Evaluations
  4. Keep AgentCore Evaluations running online and remediate findings.
    In-account logging AgentCore Evaluations CloudWatch

How to validate: Agents undergo adversarial testing and review before release; AgentCore Evaluations run continuously; findings are remediated. Every negative test has a positive twin in the same run, and each denial names the expected control.

Avoid: Testing agents only on expected prompts. Run adversarial suites and keep evaluating after launch.

Single account (entry point) →

Threats addressed

  • Undiscovered prompt-injection or reasoning-manipulation weaknesses.
  • Security regressions introduced as agents evolve.

AWS services

AWS Security Agent Amazon Bedrock AgentCore Evaluations

Framework mappings

OWASP GenAI/LLM Top 10 (2026)

  • LLM01 Prompt Injection
  • LLM03 Excessive Agency

NIST AI Risk Management Framework (AI 100-1)

  • MEASURE.1 Appropriate methods and metrics are identified and applied
  • MEASURE.2 AI systems are evaluated for trustworthy characteristics
  • MEASURE.4 Feedback about efficacy of measurement is gathered

AWS Well-Architected Generative AI Lens (Security)

  • GENSEC05-BP01 Implement least privilege and permission boundaries for agentic workflows

OWASP GenAI Top 10 for Agentic Applications (2025)

  • ASI10 Rogue Agents
  • ASI04 Agentic Supply Chain

Learning resources

References

  • AWS SRA for AI — Capability 5, Application security