Elastic medium stable kql
Unusual High Denied Topic Blocks Detected
Detects repeated compliance violation 'BLOCKED' actions coupled with specific policy name such as 'topic_policy', indicating persistent misuse or attempts to probe the model's denied topics.
Detection Logic
from logs-aws_bedrock.invocation-*
// Expand multi-value policy name field
| mv_expand gen_ai.policy.name
| mv_expand gen_ai.policy.action
// Filter for blocked topic policy violations
| where
gen_ai.policy.action == "BLOCKED"
and gen_ai.compliance.violation_detected == "true"
and gen_ai.policy.name == "topic_policy"
// keep only user info
| keep user.id
// count how many times each user triggered a blocked topic policy
| stats
Esql.ml_policy_blocked_topic_count = count()
by user.id
// Filter for excessive violations
| where Esql.ml_policy_blocked_topic_count > 5
// sort highest to lowest
| sort Esql.ml_policy_blocked_topic_count desc False Positives
- ⚠ New model deployments.
- ⚠ Testing updates to compliance policies.
Field Validations
Loading…
Comments (0)
Loading comments...