Amazon Bedrock now emits guardrail intervention data to CloudWatch, and a new pipeline can convert those events into Open Cybersecurity Schema Framework (OCSF) detection findings that land in the CloudWatch unified data store. This change lets engineers and security teams treat guardrail alerts like any other security telemetry, enabling cross‑service correlation and richer investigations.
Why Bedrock Guardrails OCSF matters
Guardrails intervene when a model generates harmful content, leaks PII, or suffers a prompt‑injection attempt. Previously those signals lived only in per‑region CloudWatch metrics and raw model logs, isolated from IAM, VPC Flow Logs, or CloudTrail data that analysts already query. By normalising the events to OCSF and storing them centrally, the same query engine can surface a user who repeatedly triggers guardrails alongside failed API calls or suspicious network traffic, turning isolated alerts into actionable patterns.
Typical architecture
The recommended implementation uses the AWS CDK to provision a Lambda function that subscribes to the CloudWatch log group where Bedrock model invocation logs are written. The function parses each guardrail record, maps fields to the OCSF DetectionFinding schema, and writes the resulting JSON to the unified data store via the CloudWatch Logs API. Because the unified store aggregates data across accounts and regions, the transformed records become immediately searchable with Athena or CloudWatch Logs Insights alongside other security sources such as CloudTrail events and VPC Flow Logs.
Operational considerations
- Schema versioning: OCSF evolves; the Lambda should be version‑controlled and tested against the schema version used by downstream analytics.
- Region aggregation: Guardrail metrics are emitted per region; the pipeline must forward all regional streams to a single unified store to avoid gaps in correlation.
- Monitoring the pipeline: Lambda errors, throttling, or data‑format mismatches should be tracked with CloudWatch metrics and alarms to ensure no guardrail event is lost.
- Cost awareness: Ingesting additional JSON records increases storage and query costs in the unified store; budgeting for the extra volume is advisable.
Security implications
Normalising guardrail events to OCSF does not change the underlying protection that Bedrock provides, but it does broaden the visibility of those interventions. Analysts can now join guardrail findings with IAM activity (e.g., failed API calls) or VPC Flow Log source IPs, revealing whether a single role is both misusing the model and exhibiting anomalous network behaviour. The unified store respects existing IAM policies, so access to the transformed findings should be governed by the same least‑privilege principles applied to other security data.
Related CloudNinjas coverage: AWS.
What This Means For Practitioners
Deploy the CDK‑defined Lambda to pull Bedrock guardrail logs, map them to OCSF, and push them into the unified data store. Verify that Athena queries return guardrail findings alongside IAM and VPC data, and set up alerts for patterns that span multiple sources. Keep an eye on the managed GuardDuty AI Protection findings, as they complement the custom OCSF pipeline and may surface additional model‑related threats without extra engineering effort.


