More Info:
Bedrock guardrail prompt attack strength should not be lowRisk Level
HighAddress
SecurityCompliance Standards
- APRA CPS 234 (Australia)
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS Critical Security Controls v8
- CMMC 2.0
- DPDPA
- Digital Operational Resilience Act (EU)
- ISO/IEC 27018
- ISO/IEC 27701
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- SOC2
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- StateRAMP
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate “Bedrock Guardrail Prompt Attack Strength Should Not Be Low” in the AWS console, you need to edit the guardrail and change the Prompt attack protection strength from Low to Medium or High.Follow these steps:
-
Open the Bedrock console
- Go to: https://console.aws.amazon.com/bedrock/
- Make sure you’re in the correct AWS Region (top‑right of the console).
-
Navigate to Guardrails
- In the left navigation pane, select Guardrails.
-
Select the affected guardrail
- In the Guardrails list, find the guardrail that your security tool flagged.
- Click the Guardrail name to open its details.
-
Edit the guardrail
- On the guardrail detail page, choose Edit (top right).
-
Locate Prompt attack protection settings
- In the edit view, scroll to the Safety and content filters (or similar) section.
- Find the Prompt attack protection (or Prompt attack safety) configuration.
- There will be a Strength setting with options like Low, Medium, and High.
-
Change the strength
- Change Prompt attack protection strength from Low to Medium or High.
- Ensure the setting is not left at Low for any enabled models/usages under this guardrail.
-
Save the guardrail
- Scroll down and click Save changes.
- If prompted, confirm the update.
-
Re‑validate
- Re-run your security/compliance scan or check your policy evaluation to verify the finding is cleared.
Using CLI
Using CLI
To remediate “Bedrock Guardrail Prompt Attack Strength Should Not Be Low” using AWS CLI, you need to update the guardrail’s contextual grounding / prompt‑attack configuration so that the strength/threshold is
Note the
If there is no DRAFT version, you can fetch the latest version instead:
Change any Or, if your guardrail uses a direct “strength” setting such as:Change it to:Do not change the
Confirm no errors are returned.
Note the new
Confirm that the prompt attack / INJECTION threshold or strength is
MEDIUM or HIGH instead of LOW.Below is a minimal, step‑by‑step approach.1. Identify the guardrail
If you already know the Guardrail ID, skip to step 2.List all guardrails:guardrailId (and optionally name) of the guardrail you need to fix.2. Get the current guardrail configuration
3. Edit the prompt‑attack / contextual‑grounding section
Openguardrail-current.json in an editor.Look for the contextual grounding / prompt attack configuration, which typically looks like one of these patterns (names may slightly vary depending on API version):Pattern A (filters list):"threshold": "LOW" for the prompt‑attack / injection type(s) to "MEDIUM" or "HIGH", for example:guardrailId, arn, status, version, or timestamps; just adjust the relevant thresholds/strength.Save the edited file as guardrail-updated.json.4. Remove read‑only fields before update
Theget-guardrail output usually contains read‑only fields (like status, version, arn, createdAt, updatedAt). These must not be passed into update-guardrail.Either:- Manually delete those read‑only keys from
guardrail-updated.json, keeping only the updatable fields such as:namedescriptioncontentPolicyConfigcontextualGroundingPolicyConfigsensitiveInformationPolicyConfigtopicPolicyConfigblockedInputMessaging,blockedOutputsMessaging, etc.
- Create a minimal update file that only contains the fields you want to change (e.g. just
contextualGroundingPolicyConfigplusguardrailIdandname/descriptionif needed).
guardrail-updated.json:5. Apply the update
6. (Optional) Publish a new version
If your workflows require a non‑DRAFT version:version from the output. Use this version when configuring Bedrock model invocations.7. Verify
Re-fetch to ensure config is set correctly:MEDIUM or HIGH, not LOW.Using Python
Using Python
To remediate this, you need to update the Guardrail configuration so that the Prompt Attack protection strength is not
Make sure your AWS CLI/SDK credentials and region are configured (and that your IAM role/user can
Look for the section related to prompt attack protection (names can differ slightly depending on SDK version; examples):
The exact field name can differ by SDK version; conceptually it looks like:You should start from the current structure returned by
5. Call
You must pass all required fields (name, description, and all other policy blocks) plus the updated prompt attack settings. Use the structure from Adjust the argument names to match what
LOW (set it to MEDIUM or HIGH) using the Bedrock control-plane API (not the runtime).Below is a minimal, step‑by‑step approach in Python using boto3.1. Install and configure AWS credentials
bedrock:GetGuardrail and bedrock:UpdateGuardrail).2. Initialize the Bedrock client in Python
3. Get the existing Guardrail config
You need theguardrailIdentifier (ID or ARN) and (optionally) guardrailVersion.promptAttackProtectionpromptAttackSettings- or a similarly named structure under guardrail config.
4. Modify the prompt attack strength
You must change the strength fromLOW to MEDIUM or HIGH.The exact field name can differ by SDK version; conceptually it looks like:
get_guardrail, modify only the relevant field(s), and send it back.Example pattern (pseudo‑code — adjust keys to match your response):5. Call update_guardrail with the new settings
You must pass all required fields (name, description, and all other policy blocks) plus the updated prompt attack settings. Use the structure from get_guardrail as your base.Typical pattern:get_guardrail returns in your environment. If the SDK complains about missing/unknown keys, print get_guardrail’s output and match it directly with the AWS API reference for UpdateGuardrail.6. (Optional) Promote the updated draft to a version
If you updated theDRAFT version and your governance process requires a numbered version:Summary
- Use
boto3.client("bedrock"). get_guardrail→ read current prompt attack setting.- Change strength from
LOW→MEDIUMorHIGH(keepingstatus=ENABLED). - Call
update_guardrailwith the modified configuration. - Optionally create a new Guardrail version.
get_guardrail JSON here, I can give you an exact, ready‑to‑run update_guardrail snippet with the correct field names.
