Elastic low stable kql
AWS Bedrock Guardrails Detected Multiple Policy Violations Within a Single Blocked Request
Identifies multiple violations of AWS Bedrock guardrails within a single request, resulting in a block action, increasing the likelihood of malicious intent. Multiple violations implies that a user may be intentionally attempting to cirvumvent security controls, access sensitive information, or possibly exploit a vulnerability in the system.
Detection Logic
from logs-aws_bedrock.invocation-*
// Expand multi-value policy action field
| mv_expand gen_ai.policy.action
// Filter for policy-blocked requests
| where gen_ai.policy.action == "BLOCKED"
// count number of policy matches per request (multi-valued)
| eval Esql.ml_policy_violations_mv_count = mv_count(gen_ai.policy.name)
// Filter for requests with more than one policy match
| where Esql.ml_policy_violations_mv_count > 1
// keep relevant fields
| keep
gen_ai.policy.action,
Esql.ml_policy_violations_mv_count,
user.id,
gen_ai.request.model.id,
cloud.account.id
// Aggregate requests with multiple violations
| stats
Esql.ml_policy_violations_total_unique_requests_count = count(*)
by
Esql.ml_policy_violations_mv_count,
user.id,
gen_ai.request.model.id,
cloud.account.id
// sort by number of unique requests
| sort Esql.ml_policy_violations_total_unique_requests_count desc False Positives
- ⚠ Legitimate misunderstanding by users or overly strict policies
Field Validations
Loading…
Comments (0)
Loading comments...