#12614·prowler

[New Check]: CloudWatch alarms cover Bedrock runtime metrics

Author: HugoPBritoCreated Aug 28, 2026Updated Oct 1, 2026
Labelsfeature-requestnew-checkprovider/awsgood first issue

Existing check search

  • I have searched existing issues, Prowler Hub, and the public roadmap, and this check does not already exist.

Provider

AWS

New provider name

No response

Service or product area

cloudwatch

Suggested check name

cloudwatch_bedrock_runtime_alarms_configured

Context and goal

  • Source control: BR-32 — CloudWatch Alarms on Bedrock Metrics.
  • Semantic requirement: Verifies CloudWatch alarms exist on Amazon Bedrock runtime metrics (the AWS/Bedrock namespace) to detect abuse, denial-of-wallet, sustained throttling, and content-filter spikes. Uses DescribeAlarms and matches alarms that target the AWS/Bedrock namespace directly or via a metric-math expression. Only assessed in regions that have Bedrock resources.
  • Valid cloud-posture assertion: CloudWatch alarms are inventoried, but no check requires AWS/Bedrock runtime alarms or metric-math references. The proposed check evaluates a durable AWS control-plane property with deterministic resource-level or regional posture semantics; it does not treat optional product adoption or manual governance evidence as failure.
  • Resource scope: Each AWS region with Bedrock resources, evaluated as one regional posture result.
  • Initiative tracker: https://github.com/prowler-cloud/prowler/issues/12597

Expected behavior

  • Resource or scope to evaluate: Each AWS region with Bedrock resources, evaluated as one regional posture result.
  • PASS when: at least one enabled alarm directly or through metric math references the AWS/Bedrock namespace.
  • FAIL when: Bedrock resources exist but no qualifying alarm exists.
  • MANUAL when: Required detail or policy data is unavailable or indeterminate after collection; never emit a false PASS for unreadable in-scope data.
  • No resources: Return no findings. For regional/account-level posture checks, return no finding when the audited service has no relevant resources in that region.
  • Error behavior: Preserve Prowler's normal service-error reporting and do not convert AccessDenied, unsupported-region responses, or partial inventory into PASS.

References

Suggested severity

Medium

Additional implementation notes

  • Collector change: Extend CloudWatch alarm metric parsing to include Metrics[].MetricStat.Metric.Namespace and expression references.
  • Dependencies: None beyond the stated service collector change.
  • Emit one finding per resource unless the scope above explicitly defines a regional/account-level posture result.
  • Add metadata and implementation files following the AWS check conventions, plus collector/model updates where required.
  • Acceptance tests must cover PASS, FAIL, unreadable/indeterminate MANUAL behavior, empty inventory, API error handling, and all stated edge conditions.
  • Tests must prove the exact AWS response fields above and ensure unrelated resources/configurations are not reported.
  • Keep this CheckID atomic; do not combine it with adjacent assertions that have different resources, APIs, or remediation.

Validation evidence required

Before this implementation can be considered ready for merge:

  • The pull request must complete a CodeRabbit review, and all actionable findings must be addressed or explicitly resolved with technical justification.
  • The contributor must provide execution evidence for one PASS case and one FAIL case using representative AWS resources. The evidence must include the executed Prowler command and the resulting finding output, demonstrating the expected status and status_extended message.
  • All execution evidence must be censored before publication. Account IDs, resource names, ARNs, credentials, tokens, endpoints, and any other sensitive or identifying information must be visibly masked or removed from screenshots, logs, and command output.
  • Unit tests are required, but they do not replace this runtime evidence.