Amazon Bedrock Guardrails expands support for code domain
AWS•Blog post••by Phu Mon Htut, Bharathi Srinivasan, Jianfeng He, Koushik Kethamakka, Antonio Rodriguez, Hang Su and Shyam Srinivasan•AWS Artificial Intelligence Blog
Amazon Bedrock Guardrails now extends its safety controls to protect code generation across twelve programming languages, addressing critical security challenges in AI-assisted software development. In this post, we explore how to configure content filters, prompt attack detection, denied topics, and sensitive information filters to safeguard against threats like prompt injection, data exfiltration, and malicious code generation while maintaining developer productivity .
Bedrock Guardrails now applies content filters, prompt attack detection, denied topics and PII filters to code in prompts, comments, variables and strings, across twelve programming languages.
Who it is for
Teams building AI coding assistants or agents on Bedrock that need to block malicious code requests, prompt injection and data leaks.
Key points
Requires cross-Region inference, since the Standard Tier that supports the code modality needs CRIS.
Standard Tier covers Python, JavaScript, TypeScript, Java, C#, C++, PHP, Shell, HTML, SQL, C and Go.
Denied topics and PII filtering are configured per guardrail; the post gives no pricing.
AI:AWS WAF gains an AI Security managed rule group and API Gateway gains API Portal, which together find and protect LLM, MCP and A2A endpoints; the feature is now generally available.
AI:AgentCore policy can now evaluate agent actions and gateway inputs with Bedrock Guardrails, to detect and block prompt injection, harmful content and sensitive data before they reach downstream systems.
AI:Bedrock can serve as the inference backend for Codex with supported OpenAI models, and AWS gives a staged pilot path: Native AWS Access first, then AgentCore Gateway or an LLM Gateway for request-path controls.