Bedrock Guardrail Coverage Auditor
Mindset
One-line takeaway: the verdict is always the worst finding across
all dimensions, evaluated in the precedence
NO_GUARDRAIL > INCOMPLETE_COVERAGE > WEAK_FILTER > CONFIG_GAP > OK.
Bedrock Guardrails are the application-layer safety control for generative
AI on AWS. Three structural facts drive the audit:
- A guardrail in DRAFT status provides ZERO enforcement. Only
status: READY intercepts requests. DRAFT is a saved configuration that
has never been activated — the most common false sense of security in
Bedrock deployments.
- Guardrails are per-request, not per-model. The
guardrailIdentifier
is passed in each converse/invoke-model call or via
guardrailConfiguration on an Agent or Knowledge Base. An application
that omits the guardrail ID bypasses every filter.
outputStrength: NONE is worse than inputStrength: NONE. Blocking
harmful prompts but allowing harmful model responses only protects half
the surface. For generative AI, the output path is where novel harmful
content is generated.
Quick reference — verdict thresholds
| Condition |
Verdict |
Risk |
Step |
No guardrail exists, or all guardrails status: DRAFT |
NO_GUARDRAIL |
CRITICAL |
1 |
| Guardrail READY but any model/agent/KB/application omits guardrail ID |
INCOMPLETE_COVERAGE |
HIGH |
2 |
Any core category (HATE/INSULT/SEXUAL/VIOLENCE) outputStrength: NONE |
WEAK_FILTER |
HIGH |
3 |
| Contextual grounding threshold < 0.2 (effectively disabled) |
WEAK_FILTER |
HIGH |
4 |
blockedInputMessaging/blockedOutputsMessaging empty or default |
CONFIG_GAP |
MEDIUM |
5 |
Production caller references guardrailVersion: DRAFT |
CONFIG_GAP |
MEDIUM |
5 |
| All dimensions pass (READY, full coverage, strong filters, proper config) |
OK |
LOW |
6 |
Pre-flight: deployment context gate
Before evaluating the guardrail config, classify the deployment context.
Multi-guardrail sweep (pagination): aws bedrock list-guardrails
returns at most 30 per page. Use --next-token to drain all pages. For
each guardrail, page aws bedrock list-agents and
aws bedrock list-knowledge-bases — both paginate and silently truncate.
| Attribute |
Value |
Effect |
status |
DRAFT |
NOT enforced. Jump to Step 1 — highest priority. |
status |
READY |
Proceed with full audit. |
| Guardrail count |
0 |
Every model is unguarded — NO_GUARDRAIL. |
| Resource type |
Agent / KB |
Has own guardrailConfiguration — check independently. |
| Cross-region profile |
Yes |
Guardrail evaluated in invocation region — verify per-region. |
If the guardrail config is malformed (invalid JSON, missing status),
output VERDICT: ERROR with a re-fetch remediation.
Process — Classification logic (apply in order, aggregate worst)
Step 0: Expert knowledge — non-obvious Bedrock Guardrails behaviors
DRAFT is a saved configuration, not an active control.
create-guardrail creates in DRAFT status. It must be promoted to READY
via create-guardrail-version before intercepting any request. A DRAFT
guardrail with perfect filters is functionally identical to no guardrail.
outputStrength is the generative-AI-critical axis. Content filters
have separate inputStrength (prompt) and outputStrength (response).
inputStrength: HIGH + outputStrength: NONE blocks harmful prompts
but does NOT prevent the model from generating harmful text. Always
verify outputStrength first.
Grounding threshold 0.0 is silently disabled. Unlike content filters
(explicit NONE), grounding uses a float 0.0–1.0. Threshold 0.0 means
everything passes — configured but zero detection. Below 0.2 catches
almost nothing. Production range is 0.5–0.75.
Grounding threshold tradeoff is asymmetric. Above 0.85 causes
excessive false-positive blocking; below 0.2 provides no meaningful
check. Sweet spot for RAG workloads: 0.55–0.70.
Guardrails are caller-side, not model-side. No model-level attachment.
guardrailIdentifier is per converse/invoke-model call. An IAM
principal calling InvokeModel directly bypasses every guardrail —
guardrails are application-layer, not IAM/network controls.
Agents and KBs have separate guardrail fields. create-agent and
create-knowledge-base each accept guardrailConfiguration. An agent
without this field processes input unguarded even if the underlying model
is invoked with a guardrail elsewhere.
guardrailVersion: DRAFT in production is a live-edit risk. Numbered
versions are immutable. DRAFT is the working copy — any update-guardrail
instantly changes production behaviour for every caller referencing DRAFT.
Guardrails are regional. A guardrail in us-east-1 has no effect in
eu-west-1. Multi-region deployments need per-region guardrails.
Cross-region inference profiles evaluate the guardrail in the invocation
region.
Filter evaluation order: content policy → topic policy → word policy
→ sensitive information (PII) → contextual grounding. First-matching
filter is returned in actionReason.
CONDUCT and MISCONDUCT are newer categories. The original four are
HATE, INSULT, SEXUAL, VIOLENCE. CONDUCT (criminal/weaponisation) and
MISCONDUCT (financial fraud) were added later. Guardrails created before
these categories shipped default to NONE.
PII action: ANONYMIZE vs BLOCK. ANONYMIZE masks PII and passes the
response; BLOCK denies the entire request. Missing PII policy means the
model freely surfaces or echoes PII.
blockedInputMessaging/blockedOutputsMessaging are UX-critical.
Empty or default messages leave users confused when content is blocked.
Grounding requires model support. Only available on Claude family,
Amazon Nova, and certain Titan models. Third-party models on Bedrock may
not support it — the filter is silently ignored.
Guardrail quotas. Max 10 guardrails per account/region (adjustable).
Up to 30 denied topics, 10,000 custom words per guardrail.
Step 1: Guardrail existence and status (highest priority)
If no guardrail exists in the account/region, OR every guardrail has
status: DRAFT, classify as NO_GUARDRAIL with CRITICAL risk.
A DRAFT guardrail is functionally identical to no guardrail — it has never
been promoted to READY and intercepts zero requests. This short-circuits
the audit: no filter configuration in DRAFT provides protection.
Step 2: Model/resource coverage
If a guardrail is READY, verify every Bedrock resource serving end-user
traffic references it:
- Agents — check
guardrailConfiguration.guardrailIdentifier
(aws bedrock get-agent).
- Knowledge Bases — check
guardrailConfiguration
(aws bedrock get-knowledge-base).
- Application callers — every
converse/invoke-model call must pass
guardrailIdentifier (requires code-level review; API has no "list
callers" operation).
If ANY resource omits the guardrail ID, classify as
INCOMPLETE_COVERAGE with HIGH risk. Unguarded resources have zero
protection despite the guardrail existing and being correctly configured.
Report coverage as a percentage and list each unguarded resource.
Step 3: Content filter strength
For each of the four core categories (HATE, INSULT, SEXUAL, VIOLENCE),
evaluate outputStrength:
| Condition |
Finding |
All four outputStrength: NONE |
Content policy disabled → WEAK_FILTER |
Any one outputStrength: NONE |
That category unprotected on output → WEAK_FILTER |
| All present with at least LOW |
Minimum baseline met — evaluate quality |
| All at HIGH |
Strong posture |
inputStrength: if NONE on any category, flag as additional WEAK_FILTER
finding. Should be at least MEDIUM for all four in production.
CONDUCT/MISCONDUCT: evaluate based on workload risk profile (additive
findings, not core requirements).
Step 4: Contextual grounding, denied topics, and word filters
Contextual grounding:
| Threshold |
Assessment |
| ≤ 0.1 |
Effectively disabled → WEAK_FILTER |
| 0.11–0.2 |
Very weak — borderline |
| 0.21–0.5 |
Moderate — acceptable for low-stakes |
| 0.51–0.75 |
Strong — recommended production range |
| > 0.85 |
Excessive — high false-positive rate |
If contextualGroundingPolicy is absent entirely, classify as
CONFIG_GAP (recommended but not configured — no hallucination layer).
If present with threshold ≤ 0.1, classify as WEAK_FILTER (configured
but effectively disabled).
Denied topics: absent topicPolicy or zero topics → additive CONFIG_GAP
(no domain restriction). Acceptable for general-purpose assistants; a gap
for domain-specific workloads.
Word filters: managedWordListsEnabled: false and no custom words →
additive CONFIG_GAP (no baseline profanity/hate-speech filtering).
Step 5: Configuration gaps
Evaluate operational quality — CONFIG_GAP (MEDIUM) findings:
- Empty
blockedInputMessaging/blockedOutputsMessaging — users get
no explanation when blocked.
guardrailVersion: DRAFT in production caller — live-edit risk;
production must pin a numbered version.
- Missing PII policy — model can freely surface PII.
- Cross-region deployment without per-region guardrails.
- Missing CloudWatch metrics on guardrail activations — no visibility
into trigger frequency for threshold tuning.
Step 6: Aggregation — worst finding wins
verdict = max(step1, step2, step3, step4, step5)
in precedence: NO_GUARDRAIL > INCOMPLETE_COVERAGE > WEAK_FILTER > CONFIG_GAP > OK
If all steps pass → OK.
Output format (per guardrail or deployment)
GUARDRAIL: <guardrail-id or name>
VERDICT: NO_GUARDRAIL | INCOMPLETE_COVERAGE | WEAK_FILTER | CONFIG_GAP | OK
RISK: CRITICAL | HIGH | MEDIUM | LOW
REASON: <1-2 sentences citing the worst finding and its step>
FINDINGS:
- [CRITICAL] <description (Step N)>
- [HIGH] <description (Step N)>
- [OK] <dimension that passed>
REMEDIATION: <specific action per finding, or "None required" if OK>
Worked example — partial coverage with weak output filter
GUARDRAIL: prod-content-guard (grn-abc123)
VERDICT: INCOMPLETE_COVERAGE
RISK: HIGH
REASON: Guardrail is READY with strong content filters, but 2 of 5 Bedrock
resources omit the guardrail ID — those resources are completely unguarded
(Step 2). INSULT outputStrength is NONE, leaving that output path unprotected
(Step 3).
FINDINGS:
- [HIGH] Agent "content-writer" has no guardrailConfiguration (Step 2)
- [HIGH] Application "summarizer-app" omits guardrailIdentifier (Step 2)
- [HIGH] INSULT outputStrength: NONE (Step 3)
- [OK] Guardrail status READY (Step 1)
- [OK] SEXUAL/VIOLENCE/HATE at HIGH outputStrength (Step 3)
- [OK] Grounding threshold 0.55, relevance 0.55 (Step 4)
REMEDIATION:
1. Add guardrailConfiguration to agent "content-writer":
aws bedrock update-agent --agent-id <id> \
--guardrail-configuration guardrailIdentifier=grn-abc123,guardrailVersion=1
2. Update summarizer-app to pass guardrailIdentifier in converse calls.
3. Set INSULT outputStrength to HIGH via update-guardrail.
Edge-case handling
Multiple guardrails in one account. Audit each independently; report
the worst verdict. If models are distributed across guardrails, coverage
must account for which guardrail each model references.
Guardrail shared across agents and KBs. A single guardrail referenced
by multiple resources is normal. Verify each points to the correct version.
Cross-account deployment. Guardrails are account-scoped — cannot be
shared cross-account. Each account needs its own. Flag as CONFIG_GAP if
multi-account deployment lacks per-account guardrails.
Model without grounding support. If the model lacks grounding
capability, the filter is silently ignored. Do NOT flag as WEAK_FILTER —
note as informational. It is a model limitation, not a config error.
Guardrail in different region than invocation. The converse API
returns ValidationException. Flag as CONFIG_GAP for cross-region inference
without per-region guardrails.
Application code not available. Note that coverage cannot be fully
verified. Recommend CloudWatch metrics on guardrail interventions to
detect unguarded call paths empirically.
Anti-Patterns — NEVER
NEVER treat status: DRAFT as providing protection. DRAFT intercepts
zero requests — it is functionally identical to no guardrail. This is the
most dangerous false positive in Bedrock auditing.
NEVER assume that because a guardrail exists with strong filters, all
models are protected. Guardrails are per-request. An application omitting
guardrailIdentifier bypasses every filter. Always verify caller-level
coverage.
NEVER classify outputStrength: NONE on all four core categories as
anything other than WEAK_FILTER. The content policy is effectively
disabled.
NEVER treat a grounding threshold of 0.0 as "configured and active." It
means everything passes — the filter is present but functionally
disabled. This is WEAK_FILTER, not CONFIG_GAP.
NEVER assume DRAFT version is safe for production. DRAFT is a live-edit
target — any update-guardrail instantly changes production. Production
must reference a numbered version.
NEVER ignore the input/output strength asymmetry. inputStrength: HIGH
outputStrength: NONE blocks prompts but NOT model-generated harmful
content. The output filter is the generative-AI-critical axis.
NEVER assume a us-east-1 guardrail protects models in other regions.
Guardrails are regional. Multi-region needs per-region guardrails.
NEVER flag a model lacking contextual grounding support as WEAK_FILTER.
Grounding requires model-level support; the filter is silently ignored.
This is a model limitation, not a config error.
NEVER recommend deleting a guardrail without verifying no resources
reference it. Deleting an active guardrail causes ValidationException on
the next invocation.
NEVER assume managed word lists are enabled by default. The
managedWordListsEnabled flag must be explicitly set.
NEVER conflate "no denied topics" with "no topic filtering." Content
filters still apply. Missing denied topics is CONFIG_GAP (domain gap).
NEVER assume CloudWatch logs guardrail interventions by default. Log-level
detail requires explicit configuration. Without monitoring, thresholds
cannot be tuned.
NEVER treat ANONYMIZE PII action as equivalent to BLOCK. ANONYMIZE passes
the response with masked PII; BLOCK denies entirely. The choice depends
on data-handling requirements.
Pre-flight safety checks (run before any remediation CLI)
MANDATORY CONFIRMATION GATE. Before any state-changing operation
(update-guardrail, create-guardrail-version, update-agent,
delete-guardrail), emit:
CONFIRM: About to <action> on guardrail <id>. Proceed? (yes/no)
Back up the current config:
aws bedrock get-guardrail --guardrail-id <id> --guardrail-version DRAFT --output json > /tmp/<id>-backup-$(date +%s).json
Verify no production callers reference a guardrail before deleting.
Promote DRAFT to numbered version before production rollout:
aws bedrock create-guardrail-version --guardrail-id <id>
After increasing filter strength (MEDIUM→HIGH), test with sample
inputs. Higher strength increases false-positive blocking.
Cross-region sync: apply the same config in each region independently.
Bedrock does not sync guardrails across regions.
Remediation guidance
Ordering principle: always prefer adding protection over removing it.
For NO_GUARDRAIL — missing or DRAFT
- If no guardrail:
aws bedrock create-guardrail --name prod-guard --content-policy-config file://content.json ...
- If DRAFT:
aws bedrock create-guardrail-version --guardrail-id <id>
- Update every agent/KB/application to reference the guardrail.
For INCOMPLETE_COVERAGE — missing model references
- List unguarded agents:
aws bedrock list-agents --query 'agentSummaries[?guardrailConfiguration==null]'
- List unguarded KBs:
aws bedrock list-knowledge-bases --query 'knowledgeBaseSummaries[?guardrailConfiguration==null]'
- Add guardrail ID to each resource. Add
guardrailIdentifier to every
converse call in application code.
For WEAK_FILTER — disabled or weak filters
- Set all four core categories to at least MEDIUM outputStrength:
aws bedrock update-guardrail --guardrail-id <id> --content-policy-config '[...]'
- For grounding ≤ 0.1, increase to 0.5+:
aws bedrock update-guardrail --guardrail-id <id> --contextual-grounding-policy-config '[{"type":"GROUNDING","threshold":0.55},...]'
- Promote DRAFT to a new version and update callers.
For CONFIG_GAP — operational gaps
- Set
blockedInputMessaging/blockedOutputsMessaging to clear messages.
- Pin production callers to numbered versions.
- Add denied topics for domain-specific restrictions.
- Enable managed word lists.
- Add PII filter if handling user data.
- Create guardrails in every invocation region.
For OK
- No remediation required.
- Recommend periodic threshold tuning via CloudWatch metrics.
- Add CloudWatch alarms on intervention-rate spikes.
- For multi-region, verify per-region guardrails.
Deep reference: Guardrails internals
Filter evaluation pipeline
When converse includes guardrailIdentifier, Bedrock evaluates through
the pipeline in fixed order: content policy → topic policy → word policy →
sensitive information (PII) → contextual grounding. The first filter to
trigger returns the block response with actionReason.
DRAFT vs numbered version lifecycle
A guardrail starts as DRAFT (create-guardrail). Edits via
update-guardrail modify DRAFT. create-guardrail-version snapshots DRAFT
into an immutable numbered version. Production callers reference numbered
versions; referencing DRAFT means every edit instantly changes production.
Regional isolation
Guardrail ARN includes region:
arn:aws:bedrock:<region>:<account>:guardrail/<id>. Multi-region
deployments require creating the guardrail in each region independently.
Cross-region inference profiles evaluate the guardrail in the invocation
region, not the model's home region.
Recent AWS features (2024-2026)
- Guardrails GA and enhanced (2024-2025): Bedrock Guardrails moved from preview to GA with new policy types: contextual grounding control (grounding and relevance filters), denied topics, content filters (hate, insult, sexual, violence), word filters, and sensitive information filters (PII and regex). Auditors must check whether all applicable policy types are configured, not just content filters.
- Cross-region inference profiles (2024): Guardrails now evaluate on cross-region inference profiles in the invocation region. Auditors should verify that guardrail coverage follows models deployed via inference profiles — a guardrail created in one region may not protect a model invoked through a cross-region profile.
- Guardrail versioning (2024-2025): Guardrails support versioned drafts (DRAFT vs READY). Auditors should check that production applications reference a READY-published guardrail version, not a DRAFT, and that outdated versions are cleaned up.
- Application-level guardrail bypass: Bedrock applications (Agents, Knowledge Bases) can reference guardrails. Auditors should verify that every model-invoking application has a guardrail attached — the audit surface includes not just standalone models but Agents, Knowledge Bases, and inference profiles.
Domain
AWS CloudOps / Bedrock Generative AI Safety & Compliance.
AWS documentation
1---2name: bedrock-guardrail-coverage-auditor3description: Audits Amazon Bedrock Guardrails configurations for model coverage gaps, weak or disabled content filters (hate, insult, sexual, violence), missing or low-threshold contextual grounding, absent denied topics and word filters, DRAFT-vs-READY enforcement status, and per-application bypass risk. Emits a deterministic verdict (NO_GUARDRAIL | INCOMPLETE_COVERAGE | WEAK_FILTER | CONFIG_GAP | OK) per guardrail or Bedrock deployment with enumerated findings and specific remediation. Use when reviewing Bedrock Guardrails, checking which models are protected, validating content-filter strength, auditing grounding thresholds, or hardening generative AI safety posture before production deployment.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline guardrail-config classification. Live-account audits use aws bedrock get-guardrail, aws bedrock list-guardrails, aws bedrock list-agents, and aws bedrock list-knowledge-bases (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/bedrock-guardrail-coverage-auditor8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: AI/ML15 verdict_shape: NO_GUARDRAIL | INCOMPLETE_COVERAGE | WEAK_FILTER | CONFIG_GAP | OK16 when_to_use: Reviewing a Bedrock Guardrail configuration before production deployment, checking which models or agents are protected by a guardrail, validating content-filter strength levels, auditing contextual grounding thresholds, inspecting denied-topic or word-filter coverage, or hardening generative AI safety posture across a Bedrock deployment.17 activation_triggers: audit this Bedrock guardrail, are my Bedrock models protected, check guardrail coverage, content filter too weak, grounding threshold too low, is this guardrail in DRAFT, which models have guardrails, Bedrock agent unguarded, knowledge base guardrail missing, LLM safety audit18 invocation_schema: 'Input: either (a) a Bedrock Guardrail configuration (contentPolicy, contextualGroundingPolicy, topicPolicy, wordPolicy, status, version) optionally paired with a model/resource coverage manifest, OR (b) a guardrail ID/ARN for live-account audit. Output: deterministic GUARDRAIL/VERDICT/RISK/REASON/FINDINGS/REMEDIATION block per guardrail or deployment, where VERDICT is one of NO_GUARDRAIL, INCOMPLETE_COVERAGE, WEAK_FILTER, CONFIG_GAP, OK, or ERROR.'19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 keywords: Bedrock Guardrails, content filter, hate, insult, sexual, violence, contextual grounding, grounding threshold, relevance threshold, denied topics, word filter, profanity filter, PII filter, model coverage, guardrail status, DRAFT guardrail, READY guardrail, guardrail version, blocked messaging, generative AI safety, LLM guardrail audit, Bedrock agent guardrail, knowledge base guardrail, hallucination detection22 tags: bedrock, ai-ml, security, guardrails, content-filter, grounding, generative-ai, llm-safety, audit23---2425# Bedrock Guardrail Coverage Auditor2627## Mindset2829**One-line takeaway:** the verdict is always the **worst** finding across30all dimensions, evaluated in the precedence31`NO_GUARDRAIL > INCOMPLETE_COVERAGE > WEAK_FILTER > CONFIG_GAP > OK`.3233Bedrock Guardrails are the application-layer safety control for generative34AI on AWS. Three structural facts drive the audit:3536- **A guardrail in DRAFT status provides ZERO enforcement.** Only37 `status: READY` intercepts requests. DRAFT is a saved configuration that38 has never been activated — the most common false sense of security in39 Bedrock deployments.40- **Guardrails are per-request, not per-model.** The `guardrailIdentifier`41 is passed in each `converse`/`invoke-model` call or via42 `guardrailConfiguration` on an Agent or Knowledge Base. An application43 that omits the guardrail ID bypasses every filter.44- **`outputStrength: NONE` is worse than `inputStrength: NONE`.** Blocking45 harmful prompts but allowing harmful model responses only protects half46 the surface. For generative AI, the output path is where novel harmful47 content is generated.4849## Quick reference — verdict thresholds5051| Condition | Verdict | Risk | Step |52|---|---|---|---|53| No guardrail exists, or all guardrails `status: DRAFT` | **NO_GUARDRAIL** | CRITICAL | 1 |54| Guardrail READY but any model/agent/KB/application omits guardrail ID | **INCOMPLETE_COVERAGE** | HIGH | 2 |55| Any core category (HATE/INSULT/SEXUAL/VIOLENCE) `outputStrength: NONE` | **WEAK_FILTER** | HIGH | 3 |56| Contextual grounding threshold < 0.2 (effectively disabled) | **WEAK_FILTER** | HIGH | 4 |57| `blockedInputMessaging`/`blockedOutputsMessaging` empty or default | **CONFIG_GAP** | MEDIUM | 5 |58| Production caller references `guardrailVersion: DRAFT` | **CONFIG_GAP** | MEDIUM | 5 |59| All dimensions pass (READY, full coverage, strong filters, proper config) | **OK** | LOW | 6 |6061## Pre-flight: deployment context gate6263Before evaluating the guardrail config, classify the deployment context.6465**Multi-guardrail sweep (pagination):** `aws bedrock list-guardrails`66returns at most 30 per page. Use `--next-token` to drain all pages. For67each guardrail, page `aws bedrock list-agents` and68`aws bedrock list-knowledge-bases` — both paginate and silently truncate.6970| Attribute | Value | Effect |71|---|---|---|72| `status` | `DRAFT` | **NOT enforced.** Jump to Step 1 — highest priority. |73| `status` | `READY` | Proceed with full audit. |74| Guardrail count | 0 | Every model is unguarded — NO_GUARDRAIL. |75| Resource type | Agent / KB | Has own `guardrailConfiguration` — check independently. |76| Cross-region profile | Yes | Guardrail evaluated in invocation region — verify per-region. |7778**If the guardrail config is malformed** (invalid JSON, missing `status`),79output `VERDICT: ERROR` with a re-fetch remediation.8081## Process — Classification logic (apply in order, aggregate worst)8283### Step 0: Expert knowledge — non-obvious Bedrock Guardrails behaviors8485- **DRAFT is a saved configuration, not an active control.**86 `create-guardrail` creates in DRAFT status. It must be promoted to READY87 via `create-guardrail-version` before intercepting any request. A DRAFT88 guardrail with perfect filters is functionally identical to no guardrail.8990- **`outputStrength` is the generative-AI-critical axis.** Content filters91 have separate `inputStrength` (prompt) and `outputStrength` (response).92 `inputStrength: HIGH` + `outputStrength: NONE` blocks harmful prompts93 but does NOT prevent the model from generating harmful text. Always94 verify `outputStrength` first.9596- **Grounding threshold 0.0 is silently disabled.** Unlike content filters97 (explicit `NONE`), grounding uses a float 0.0–1.0. Threshold 0.0 means98 everything passes — configured but zero detection. Below 0.2 catches99 almost nothing. Production range is 0.5–0.75.100101- **Grounding threshold tradeoff is asymmetric.** Above 0.85 causes102 excessive false-positive blocking; below 0.2 provides no meaningful103 check. Sweet spot for RAG workloads: 0.55–0.70.104105- **Guardrails are caller-side, not model-side.** No model-level attachment.106 `guardrailIdentifier` is per `converse`/`invoke-model` call. An IAM107 principal calling `InvokeModel` directly bypasses every guardrail —108 guardrails are application-layer, not IAM/network controls.109110- **Agents and KBs have separate guardrail fields.** `create-agent` and111 `create-knowledge-base` each accept `guardrailConfiguration`. An agent112 without this field processes input unguarded even if the underlying model113 is invoked with a guardrail elsewhere.114115- **`guardrailVersion: DRAFT` in production is a live-edit risk.** Numbered116 versions are immutable. DRAFT is the working copy — any `update-guardrail`117 instantly changes production behaviour for every caller referencing DRAFT.118119- **Guardrails are regional.** A guardrail in us-east-1 has no effect in120 eu-west-1. Multi-region deployments need per-region guardrails.121 Cross-region inference profiles evaluate the guardrail in the invocation122 region.123124- **Filter evaluation order:** content policy → topic policy → word policy125 → sensitive information (PII) → contextual grounding. First-matching126 filter is returned in `actionReason`.127128- **CONDUCT and MISCONDUCT are newer categories.** The original four are129 HATE, INSULT, SEXUAL, VIOLENCE. CONDUCT (criminal/weaponisation) and130 MISCONDUCT (financial fraud) were added later. Guardrails created before131 these categories shipped default to NONE.132133- **PII action: ANONYMIZE vs BLOCK.** ANONYMIZE masks PII and passes the134 response; BLOCK denies the entire request. Missing PII policy means the135 model freely surfaces or echoes PII.136137- **`blockedInputMessaging`/`blockedOutputsMessaging` are UX-critical.**138 Empty or default messages leave users confused when content is blocked.139140- **Grounding requires model support.** Only available on Claude family,141 Amazon Nova, and certain Titan models. Third-party models on Bedrock may142 not support it — the filter is silently ignored.143144- **Guardrail quotas.** Max 10 guardrails per account/region (adjustable).145 Up to 30 denied topics, 10,000 custom words per guardrail.146147### Step 1: Guardrail existence and status (highest priority)148149If no guardrail exists in the account/region, OR every guardrail has150`status: DRAFT`, classify as **NO_GUARDRAIL** with **CRITICAL** risk.151152A DRAFT guardrail is functionally identical to no guardrail — it has never153been promoted to READY and intercepts zero requests. This short-circuits154the audit: no filter configuration in DRAFT provides protection.155156### Step 2: Model/resource coverage157158If a guardrail is READY, verify every Bedrock resource serving end-user159traffic references it:160161- **Agents** — check `guardrailConfiguration.guardrailIdentifier`162 (`aws bedrock get-agent`).163- **Knowledge Bases** — check `guardrailConfiguration`164 (`aws bedrock get-knowledge-base`).165- **Application callers** — every `converse`/`invoke-model` call must pass166 `guardrailIdentifier` (requires code-level review; API has no "list167 callers" operation).168169If ANY resource omits the guardrail ID, classify as170**INCOMPLETE_COVERAGE** with **HIGH** risk. Unguarded resources have zero171protection despite the guardrail existing and being correctly configured.172Report coverage as a percentage and list each unguarded resource.173174### Step 3: Content filter strength175176For each of the four core categories (HATE, INSULT, SEXUAL, VIOLENCE),177evaluate `outputStrength`:178179| Condition | Finding |180|---|---|181| All four `outputStrength: NONE` | Content policy disabled → **WEAK_FILTER** |182| Any one `outputStrength: NONE` | That category unprotected on output → **WEAK_FILTER** |183| All present with at least LOW | Minimum baseline met — evaluate quality |184| All at HIGH | Strong posture |185186**inputStrength:** if NONE on any category, flag as additional WEAK_FILTER187finding. Should be at least MEDIUM for all four in production.188189**CONDUCT/MISCONDUCT:** evaluate based on workload risk profile (additive190findings, not core requirements).191192### Step 4: Contextual grounding, denied topics, and word filters193194**Contextual grounding:**195196| Threshold | Assessment |197|---|---|198| ≤ 0.1 | Effectively disabled → **WEAK_FILTER** |199| 0.11–0.2 | Very weak — borderline |200| 0.21–0.5 | Moderate — acceptable for low-stakes |201| 0.51–0.75 | Strong — recommended production range |202| > 0.85 | Excessive — high false-positive rate |203204If `contextualGroundingPolicy` is **absent entirely**, classify as205**CONFIG_GAP** (recommended but not configured — no hallucination layer).206If present with threshold ≤ 0.1, classify as **WEAK_FILTER** (configured207but effectively disabled).208209**Denied topics:** absent `topicPolicy` or zero topics → additive CONFIG_GAP210(no domain restriction). Acceptable for general-purpose assistants; a gap211for domain-specific workloads.212213**Word filters:** `managedWordListsEnabled: false` and no custom words →214additive CONFIG_GAP (no baseline profanity/hate-speech filtering).215216### Step 5: Configuration gaps217218Evaluate operational quality — **CONFIG_GAP** (MEDIUM) findings:219220- **Empty `blockedInputMessaging`/`blockedOutputsMessaging`** — users get221 no explanation when blocked.222- **`guardrailVersion: DRAFT` in production caller** — live-edit risk;223 production must pin a numbered version.224- **Missing PII policy** — model can freely surface PII.225- **Cross-region deployment without per-region guardrails**.226- **Missing CloudWatch metrics on guardrail activations** — no visibility227 into trigger frequency for threshold tuning.228229### Step 6: Aggregation — worst finding wins230231```text232verdict = max(step1, step2, step3, step4, step5)233 in precedence: NO_GUARDRAIL > INCOMPLETE_COVERAGE > WEAK_FILTER > CONFIG_GAP > OK234```235236If all steps pass → **OK**.237238## Output format (per guardrail or deployment)239240```text241GUARDRAIL: <guardrail-id or name>242VERDICT: NO_GUARDRAIL | INCOMPLETE_COVERAGE | WEAK_FILTER | CONFIG_GAP | OK243RISK: CRITICAL | HIGH | MEDIUM | LOW244REASON: <1-2 sentences citing the worst finding and its step>245FINDINGS:246 - [CRITICAL] <description (Step N)>247 - [HIGH] <description (Step N)>248 - [OK] <dimension that passed>249REMEDIATION: <specific action per finding, or "None required" if OK>250```251252### Worked example — partial coverage with weak output filter253254```text255GUARDRAIL: prod-content-guard (grn-abc123)256VERDICT: INCOMPLETE_COVERAGE257RISK: HIGH258REASON: Guardrail is READY with strong content filters, but 2 of 5 Bedrock259resources omit the guardrail ID — those resources are completely unguarded260(Step 2). INSULT outputStrength is NONE, leaving that output path unprotected261(Step 3).262FINDINGS:263 - [HIGH] Agent "content-writer" has no guardrailConfiguration (Step 2)264 - [HIGH] Application "summarizer-app" omits guardrailIdentifier (Step 2)265 - [HIGH] INSULT outputStrength: NONE (Step 3)266 - [OK] Guardrail status READY (Step 1)267 - [OK] SEXUAL/VIOLENCE/HATE at HIGH outputStrength (Step 3)268 - [OK] Grounding threshold 0.55, relevance 0.55 (Step 4)269REMEDIATION:270 1. Add guardrailConfiguration to agent "content-writer":271 aws bedrock update-agent --agent-id <id> \272 --guardrail-configuration guardrailIdentifier=grn-abc123,guardrailVersion=1273 2. Update summarizer-app to pass guardrailIdentifier in converse calls.274 3. Set INSULT outputStrength to HIGH via update-guardrail.275```276277## Edge-case handling278279- **Multiple guardrails in one account.** Audit each independently; report280 the worst verdict. If models are distributed across guardrails, coverage281 must account for which guardrail each model references.282283- **Guardrail shared across agents and KBs.** A single guardrail referenced284 by multiple resources is normal. Verify each points to the correct version.285286- **Cross-account deployment.** Guardrails are account-scoped — cannot be287 shared cross-account. Each account needs its own. Flag as CONFIG_GAP if288 multi-account deployment lacks per-account guardrails.289290- **Model without grounding support.** If the model lacks grounding291 capability, the filter is silently ignored. Do NOT flag as WEAK_FILTER —292 note as informational. It is a model limitation, not a config error.293294- **Guardrail in different region than invocation.** The converse API295 returns ValidationException. Flag as CONFIG_GAP for cross-region inference296 without per-region guardrails.297298- **Application code not available.** Note that coverage cannot be fully299 verified. Recommend CloudWatch metrics on guardrail interventions to300 detect unguarded call paths empirically.301302## Anti-Patterns — NEVER303304- NEVER treat `status: DRAFT` as providing protection. DRAFT intercepts305 zero requests — it is functionally identical to no guardrail. This is the306 most dangerous false positive in Bedrock auditing.307308- NEVER assume that because a guardrail exists with strong filters, all309 models are protected. Guardrails are per-request. An application omitting310 `guardrailIdentifier` bypasses every filter. Always verify caller-level311 coverage.312313- NEVER classify `outputStrength: NONE` on all four core categories as314 anything other than WEAK_FILTER. The content policy is effectively315 disabled.316317- NEVER treat a grounding threshold of 0.0 as "configured and active." It318 means everything passes — the filter is present but functionally319 disabled. This is WEAK_FILTER, not CONFIG_GAP.320321- NEVER assume DRAFT version is safe for production. DRAFT is a live-edit322 target — any `update-guardrail` instantly changes production. Production323 must reference a numbered version.324325- NEVER ignore the input/output strength asymmetry. `inputStrength: HIGH`326 + `outputStrength: NONE` blocks prompts but NOT model-generated harmful327 content. The output filter is the generative-AI-critical axis.328329- NEVER assume a us-east-1 guardrail protects models in other regions.330 Guardrails are regional. Multi-region needs per-region guardrails.331332- NEVER flag a model lacking contextual grounding support as WEAK_FILTER.333 Grounding requires model-level support; the filter is silently ignored.334 This is a model limitation, not a config error.335336- NEVER recommend deleting a guardrail without verifying no resources337 reference it. Deleting an active guardrail causes ValidationException on338 the next invocation.339340- NEVER assume managed word lists are enabled by default. The341 `managedWordListsEnabled` flag must be explicitly set.342343- NEVER conflate "no denied topics" with "no topic filtering." Content344 filters still apply. Missing denied topics is CONFIG_GAP (domain gap).345346- NEVER assume CloudWatch logs guardrail interventions by default. Log-level347 detail requires explicit configuration. Without monitoring, thresholds348 cannot be tuned.349350- NEVER treat ANONYMIZE PII action as equivalent to BLOCK. ANONYMIZE passes351 the response with masked PII; BLOCK denies entirely. The choice depends352 on data-handling requirements.353354## Pre-flight safety checks (run before any remediation CLI)355356- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation357 (update-guardrail, create-guardrail-version, update-agent,358 delete-guardrail), emit:359 `CONFIRM: About to <action> on guardrail <id>. Proceed? (yes/no)`360361- **Back up the current config:**362 `aws bedrock get-guardrail --guardrail-id <id> --guardrail-version DRAFT363 --output json > /tmp/<id>-backup-$(date +%s).json`364365- **Verify no production callers reference a guardrail before deleting.**366367- **Promote DRAFT to numbered version before production rollout:**368 `aws bedrock create-guardrail-version --guardrail-id <id>`369370- **After increasing filter strength (MEDIUM→HIGH), test with sample371 inputs.** Higher strength increases false-positive blocking.372373- **Cross-region sync:** apply the same config in each region independently.374 Bedrock does not sync guardrails across regions.375376## Remediation guidance377378**Ordering principle:** always prefer adding protection over removing it.379380### For NO_GUARDRAIL — missing or DRAFT3813821. If no guardrail: `aws bedrock create-guardrail --name prod-guard383 --content-policy-config file://content.json ...`3842. If DRAFT: `aws bedrock create-guardrail-version --guardrail-id <id>`3853. Update every agent/KB/application to reference the guardrail.386387### For INCOMPLETE_COVERAGE — missing model references3883891. List unguarded agents: `aws bedrock list-agents390 --query 'agentSummaries[?guardrailConfiguration==null]'`3912. List unguarded KBs: `aws bedrock list-knowledge-bases392 --query 'knowledgeBaseSummaries[?guardrailConfiguration==null]'`3933. Add guardrail ID to each resource. Add `guardrailIdentifier` to every394 `converse` call in application code.395396### For WEAK_FILTER — disabled or weak filters3973981. Set all four core categories to at least MEDIUM outputStrength:399 `aws bedrock update-guardrail --guardrail-id <id>400 --content-policy-config '[...]'`4012. For grounding ≤ 0.1, increase to 0.5+:402 `aws bedrock update-guardrail --guardrail-id <id>403 --contextual-grounding-policy-config '[{"type":"GROUNDING","threshold":0.55},...]'`4043. Promote DRAFT to a new version and update callers.405406### For CONFIG_GAP — operational gaps4074081. Set `blockedInputMessaging`/`blockedOutputsMessaging` to clear messages.4092. Pin production callers to numbered versions.4103. Add denied topics for domain-specific restrictions.4114. Enable managed word lists.4125. Add PII filter if handling user data.4136. Create guardrails in every invocation region.414415### For OK4164171. No remediation required.4182. Recommend periodic threshold tuning via CloudWatch metrics.4193. Add CloudWatch alarms on intervention-rate spikes.4204. For multi-region, verify per-region guardrails.421422## Deep reference: Guardrails internals423424### Filter evaluation pipeline425426When `converse` includes `guardrailIdentifier`, Bedrock evaluates through427the pipeline in fixed order: content policy → topic policy → word policy →428sensitive information (PII) → contextual grounding. The first filter to429trigger returns the block response with `actionReason`.430431### DRAFT vs numbered version lifecycle432433A guardrail starts as DRAFT (`create-guardrail`). Edits via434`update-guardrail` modify DRAFT. `create-guardrail-version` snapshots DRAFT435into an immutable numbered version. Production callers reference numbered436versions; referencing DRAFT means every edit instantly changes production.437438### Regional isolation439440Guardrail ARN includes region:441`arn:aws:bedrock:<region>:<account>:guardrail/<id>`. Multi-region442deployments require creating the guardrail in each region independently.443Cross-region inference profiles evaluate the guardrail in the invocation444region, not the model's home region.445446## Recent AWS features (2024-2026)447448- **Guardrails GA and enhanced (2024-2025):** Bedrock Guardrails moved from preview to GA with new policy types: contextual grounding control (grounding and relevance filters), denied topics, content filters (hate, insult, sexual, violence), word filters, and sensitive information filters (PII and regex). Auditors must check whether all applicable policy types are configured, not just content filters.449- **Cross-region inference profiles (2024):** Guardrails now evaluate on cross-region inference profiles in the invocation region. Auditors should verify that guardrail coverage follows models deployed via inference profiles — a guardrail created in one region may not protect a model invoked through a cross-region profile.450- **Guardrail versioning (2024-2025):** Guardrails support versioned drafts (DRAFT vs READY). Auditors should check that production applications reference a READY-published guardrail version, not a DRAFT, and that outdated versions are cleaned up.451- **Application-level guardrail bypass:** Bedrock applications (Agents, Knowledge Bases) can reference guardrails. Auditors should verify that every model-invoking application has a guardrail attached — the audit surface includes not just standalone models but Agents, Knowledge Bases, and inference profiles.452453## Domain454455AWS CloudOps / Bedrock Generative AI Safety & Compliance.456457## AWS documentation458459- **Amazon Bedrock User Guide** — https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html460- **Bedrock Guardrails** — https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html461- **Bedrock API Reference** — https://docs.aws.amazon.com/bedrock/latest/APIReference/462- **Bedrock Security** — https://docs.aws.amazon.com/bedrock/latest/userguide/security.html463- **Bedrock CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/bedrock/