Ensure that your Amazon Bedrock guardrails have at least one topic policy configured with a denied topic (a topic policy of type DENY) to restrict the scope of conversations handled by your generative AI application. Denied topics allow you to explicitly define subjects that are undesirable in the context of your application, and instruct the guardrail to block prompts and responses that fall within those topics.
Topic policies in Amazon Bedrock guardrails evaluate model prompts and responses against a set of denied topics that you define, such as investment advice, competitor information, internal processes, or attack methodologies. If a denied topic is detected, the guardrail blocks the prompt or response before it reaches the end user or the foundation model. Without at least one denied topic configured, a guardrail has no mechanism to restrict the scope of conversations to the intended domain of your application, allowing the model to engage with off-topic, sensitive, or potentially harmful subjects. An identity with the bedrock:UpdateGuardrail permission can remove topic restrictions from a guardrail to reduce its filtering scope, allowing the underlying model to discuss sensitive topics such as competitor data, internal processes, or attack methodologies that should otherwise be blocked.
Audit
To determine if your Amazon Bedrock guardrails have at least one topic policy with denied topics configured, perform the following operations:
Remediation / Resolution
To ensure that your Amazon Bedrock guardrails have at least one topic policy with denied topics configured, 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 denied topics to help remove harmful content - Amazon Bedrock
- Create a guardrail - Amazon Bedrock
- GetGuardrail - Amazon Bedrock
- GuardrailTopicPolicyConfig - Amazon Bedrock
- AWS Command Line Interface (CLI) Documentation
- list-guardrails
- get-guardrail
- update-guardrail