Ensure that the content policy filter categories (HATE, INSULTS, SEXUAL, VIOLENCE, and MISCONDUCT) configured for your Amazon Bedrock guardrails have both the input and output filter strength set to at least MEDIUM. This rule extends the coverage provided by the "Configure Prompt Attack Strength for Amazon Bedrock Guardrails" rule, which only evaluates the PROMPT_ATTACK filter category, to the remaining five content filter categories.
Content filters in Amazon Bedrock guardrails detect and filter harmful user inputs and model-generated outputs based on a confidence classification (NONE, LOW, MEDIUM, or HIGH) across the HATE, INSULTS, SEXUAL, VIOLENCE, and MISCONDUCT categories. If the input or output strength for any of these categories is configured with a low threshold (LOW or NONE), the guardrail becomes significantly less effective at detecting and blocking harmful content, allowing more borderline or harmful content to pass through undetected. An identity with the bedrock:UpdateGuardrail permission can systematically weaken these filter thresholds, making the underlying model significantly more susceptible to generating or relaying harmful content. Configuring at least a MEDIUM filter strength for both inputs and outputs across all content policy filter categories ensures a consistent and adequate level of protection against harmful content in your generative AI applications.
Audit
To determine if the content policy filter categories configured for your Amazon Bedrock guardrails have an input and output filter strength set to at least MEDIUM, perform the following operations:
Remediation / Resolution
To ensure that all content policy filter categories in your Amazon Bedrock guardrails have an input and output filter strength set to at least MEDIUM, perform the following operations:
References
- AWS Documentation
- Generative AI Data Governance – Amazon Bedrock Guardrails – AWS
- Detect and filter harmful content by using Amazon Bedrock Guardrails - Amazon Bedrock
- Create your guardrail - Amazon Bedrock
- Block harmful words and conversations with content filters - Amazon Bedrock
- Create a guardrail - Amazon Bedrock
- GetGuardrail - Amazon Bedrock
- GuardrailContentPolicyConfig - Amazon Bedrock
- AWS Command Line Interface (CLI) Documentation
- list-guardrails
- get-guardrail
- update-guardrail