WAF-AGN-110 – Agent-Ausgaben und -Aktionen müssen validiert, sandboxed und auf Allowlists beschränkt sein
Beschreibung
Agent-generated outputs MUST be validated against schemas, business rules, or human-defined constraints before downstream use. Agent tool invocations MUST be sandboxed and restricted to an explicit allowlist of functions and parameters. High-impact actions MUST require confirmation or human-in-the-loop approval. Validation failures MUST be logged, alerted, and used to refine guardrails.
Begründung
| Risiko | Beschreibung |
|---|---|
Risk |
Unvalidated agent outputs can trigger incorrect business decisions or data corruption. |
Risk |
Unsandboxed tool access allows prompt injection and unauthorized actions by compromised agents. |
Anforderungen
-
Agent-generated outputs MUST be validated against schemas, business rules, or human-defined constraints before downstream use.
-
Agent tool invocations MUST be sandboxed and restricted to an explicit allowlist of functions and parameters.
-
High-impact actions MUST require confirmation or human-in-the-loop approval.
-
Validation failures MUST be logged, alerted, and used to refine guardrails.
Implementierungsleitfaden
-
Document the requirement in a version-controlled policy, ADR, or standard.
-
Assign ownership and establish a review cadence (e.g., quarterly).
-
Implement the required configuration as code in Terraform or equivalent IaC.
Reifegrade
| Level | Name | Kriterien |
|---|---|---|
L1 |
Ad hoc – control not consistently applied |
* Die Anforderung ist nicht einheitlich umgesetzt; Nachweis existiert nur punktuell oder fehlt. |
L2 |
Standardised – policy defined and communicated |
* Eine dokumentierte Policy oder ein Standard beschreibt die Anforderung. |
L3 |
Integrated – automated validation in CI/CD |
* Terraform-Checks oder IaC-Gates prüfen die Anforderung automatisch in CI/CD. |
L4 |
Auditable – metrics and exceptions tracked |
* Abdeckung, Ausnahmen und Qualitätsmetriken werden quartalsweise berichtet. |
L5 |
Optimised – continuous improvement based on data |
* Die Effektivität wird kontinuierlich gemessen und automatisch optimiert. |
Checks
waf-agn-110.tf.aws.bedrock-guardrail
Engine: terraform | Provider: aws | Automated: Ja
AWS Bedrock-Agent muss Guardrails mit blockierten Ausgaben verwenden
AWS Bedrock-Agent muss Guardrails mit blockierten Ausgaben verwenden
Scope: resource — aws_bedrock_guardrail
Assertions:
* name attribute_exists — Bedrock guardrail must be configured.
Remediation: AWS Bedrock-Agent muss Guardrails mit blockierten Ausgaben verwenden
# Beispiel konform zu waf-agn-110.tf.aws.bedrock-guardrail
# Beispiel nicht konform zu waf-agn-110.tf.aws.bedrock-guardrail
waf-agn-110.config.agent-validation-policy
Engine: config | Provider: any | Automated: Nein
Agent-Output-Validierungs- und Tool-Allowlist-Policy muss existieren
Agent-Output-Validierungs- und Tool-Allowlist-Policy muss existieren
Scope: file — docs/agentic/agent-validation-policy.md
Assertions:
* exists attribute_exists — Agent validation and tool allowlist policy must exist.
Remediation: Agent-Output-Validierungs- und Tool-Allowlist-Policy muss existieren
# Beispiel konform zu waf-agn-110.config.agent-validation-policy
# Beispiel nicht konform zu waf-agn-110.config.agent-validation-policy
Evidenz
-
Terraform-Konfiguration, die die Anforderung umsetzt.
-
Policy, ADR oder Standard, der die Anforderung dokumentiert.
-
Optionale Cloud-Konsolen- oder API-Ausgaben, die den Laufzeit-Zustand bestätigen.
Verwandte Controls
-
WAF-REL-110 == Regulatorisches Mapping
-
ISO 27001:2022: A.8.3 – Information access restriction, A.8.27 – Secure system architecture
-
GDPR: Art. 32 – Security of processing
-
NIST AI Risk Management Framework: Measure 1.1 – AI system is validated
-
EU AI Act: Art. 9 – Risk management system
-
SOC 2 Type II: CC6.1 – Logical access controls