Unusual High Confidence Content Filter Blocks Detected
Detects repeated high-confidence 'BLOCKED' actions coupled with specific 'Content Filter' policy violation having codes such as 'MISCONDUCT', 'HATE', 'SEXUAL', INSULTS', 'PROMPT_ATTACK', 'VIOLENCE' indicating persistent misuse or attempts to probe the model's ethical boundaries.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2024/05/05"
3integration = ["aws_bedrock"]
4maturity = "production"
5updated_date = "2026/09/25"
6
7[rule]
8author = ["Elastic"]
9description = """
10Detects repeated high-confidence 'BLOCKED' actions coupled with specific 'Content Filter' policy violation having codes
11such as 'MISCONDUCT', 'HATE', 'SEXUAL', INSULTS', 'PROMPT_ATTACK', 'VIOLENCE' indicating persistent misuse or attempts
12to probe the model's ethical boundaries.
13"""
14false_positives = ["New model deployments.", "Testing updates to compliance policies."]
15from = "now-60m"
16interval = "10m"
17language = "esql"
18license = "Elastic License v2"
19name = "Unusual High Confidence Content Filter Blocks Detected"
20note = """## Triage and analysis
21
22### Investigating Unusual High Confidence Content Filter Blocks Detected
23
24Amazon Bedrock Guardrail is a set of features within Amazon Bedrock designed to help businesses apply robust safety and privacy controls to their generative AI applications.
25
26It enables users to set guidelines and filters that manage content quality, relevancy, and adherence to responsible AI practices.
27
28Through Guardrail, organizations can enable Content filter for Hate, Insults, Sexual Violence and Misconduct along with Prompt Attack filters prompts
29to prevent the model from generating content on specific, undesired subjects, and they can establish thresholds for harmful content categories.
30
31#### Possible investigation steps
32
33- Identify the user account whose prompts caused high confidence content filter blocks and whether it should perform this kind of action.
34- Investigate other alerts associated with the user account during the past 48 hours.
35- Consider the time of day. If the user is a human (not a program or script), did the activity take place during a normal time of day?
36- Examine the account's prompts and responses in the last 24 hours.
37- If you suspect the account has been compromised, scope potentially compromised assets by tracking Amazon Bedrock model access, prompts generated, and responses to the prompts by the account in the last 24 hours.
38
39### False positive analysis
40
41- Verify the user account that queried denied topics, is not testing any new model deployments or updated compliance policies in Amazon Bedrock guardrails.
42
43### Response and remediation
44
45- Initiate the incident response process based on the outcome of the triage.
46- Disable or limit the account during the investigation and response.
47- Identify the possible impact of the incident and prioritize accordingly; the following actions can help you gain context:
48 - Identify the account role in the cloud environment.
49 - Identify if the attacker is moving laterally and compromising other Amazon Bedrock Services.
50 - Identify any regulatory or legal ramifications related to this activity.
51- Review the permissions assigned to the implicated user group or role behind these requests to ensure they are authorized and expected to access bedrock and ensure that the least privilege principle is being followed.
52- Determine the initial vector abused by the attacker and take action to prevent reinfection via the same vector.
53- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
54"""
55references = [
56 "https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-components.html",
57 "https://atlas.mitre.org/techniques/AML.T0051",
58 "https://atlas.mitre.org/techniques/AML.T0054",
59 "https://www.elastic.co/security-labs/elastic-advances-llm-security",
60]
61risk_score = 47
62rule_id = "4f855297-c8e0-4097-9d97-d653f7e471c4"
63setup = """## Setup
64
65This rule requires that guardrails are configured in AWS Bedrock. For more information, see the AWS Bedrock documentation:
66
67https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-create.html
68"""
69severity = "medium"
70tags = [
71 "Domain: GenAI",
72 "Data Source: AWS Bedrock",
73 "Data Source: AWS S3",
74 "Use Case: Policy Violation",
75 "Resources: Investigation Guide",
76 "Noise: Low",
77 "Performance: Fast",
78 "Rule Type: ES|QL",
79 "Platform: AWS",
80 "Domain: Cloud",
81 "Service: AWS S3",
82 "Service: AWS Bedrock",
83 "Mitre Atlas: AML.T0051",
84 "Mitre Atlas: AML.T0054",
85]
86timestamp_override = "event.ingested"
87type = "esql"
88
89query = '''
90from logs-aws_bedrock.invocation-*
91
92// Expand multi-value fields
93| mv_expand gen_ai.compliance.violation_code
94| mv_expand gen_ai.policy.confidence
95| mv_expand gen_ai.policy.name
96| mv_expand gen_ai.policy.action
97
98// Filter for high-confidence content policy blocks with targeted violations
99| where
100 gen_ai.policy.action == "BLOCKED"
101 and gen_ai.policy.name == "content_policy"
102 and gen_ai.policy.confidence like "HIGH"
103 and gen_ai.compliance.violation_code in ("HATE", "MISCONDUCT", "SEXUAL", "INSULTS", "PROMPT_ATTACK", "VIOLENCE")
104
105// keep ECS + compliance fields
106| keep
107 user.id,
108 gen_ai.compliance.violation_code
109
110// count blocked violations per user per violation type
111| stats
112 Esql.ml_policy_blocked_violation_count = count()
113 by
114 user.id,
115 gen_ai.compliance.violation_code
116
117// Aggregate all violation types per user
118| stats
119 Esql.ml_policy_blocked_violation_total_count = sum(Esql.ml_policy_blocked_violation_count)
120 by
121 user.id
122
123// Filter for users with more than 5 total violations
124| where Esql.ml_policy_blocked_violation_total_count > 5
125
126// sort by violation volume
127| sort Esql.ml_policy_blocked_violation_total_count desc
128'''
129
130
131[[rule.threat_mappings]]
132framework = "MITRE ATLAS"
133version = "2026.08"
134[[rule.threat_mappings.threat]]
135framework = "MITRE ATLAS"
136[[rule.threat_mappings.threat.technique]]
137id = "AML.T0051"
138name = "LLM Prompt Injection"
139reference = "https://atlas.mitre.org/techniques/AML.T0051/"
140
141
142[rule.threat_mappings.threat.tactic]
143id = "AML.TA0005"
144name = "Execution"
145reference = "https://atlas.mitre.org/tactics/AML.TA0005/"
146[[rule.threat_mappings.threat]]
147framework = "MITRE ATLAS"
148[[rule.threat_mappings.threat.technique]]
149id = "AML.T0054"
150name = "LLM Jailbreak"
151reference = "https://atlas.mitre.org/techniques/AML.T0054/"
152
153
154[rule.threat_mappings.threat.tactic]
155id = "AML.TA0007"
156name = "Defense Evasion"
157reference = "https://atlas.mitre.org/tactics/AML.TA0007/"
Triage and analysis
Investigating Unusual High Confidence Content Filter Blocks Detected
Amazon Bedrock Guardrail is a set of features within Amazon Bedrock designed to help businesses apply robust safety and privacy controls to their generative AI applications.
It enables users to set guidelines and filters that manage content quality, relevancy, and adherence to responsible AI practices.
Through Guardrail, organizations can enable Content filter for Hate, Insults, Sexual Violence and Misconduct along with Prompt Attack filters prompts to prevent the model from generating content on specific, undesired subjects, and they can establish thresholds for harmful content categories.
Possible investigation steps
- Identify the user account whose prompts caused high confidence content filter blocks and whether it should perform this kind of action.
- Investigate other alerts associated with the user account during the past 48 hours.
- Consider the time of day. If the user is a human (not a program or script), did the activity take place during a normal time of day?
- Examine the account's prompts and responses in the last 24 hours.
- If you suspect the account has been compromised, scope potentially compromised assets by tracking Amazon Bedrock model access, prompts generated, and responses to the prompts by the account in the last 24 hours.
False positive analysis
- Verify the user account that queried denied topics, is not testing any new model deployments or updated compliance policies in Amazon Bedrock guardrails.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Disable or limit the account during the investigation and response.
- Identify the possible impact of the incident and prioritize accordingly; the following actions can help you gain context:
- Identify the account role in the cloud environment.
- Identify if the attacker is moving laterally and compromising other Amazon Bedrock Services.
- Identify any regulatory or legal ramifications related to this activity.
- Review the permissions assigned to the implicated user group or role behind these requests to ensure they are authorized and expected to access bedrock and ensure that the least privilege principle is being followed.
- Determine the initial vector abused by the attacker and take action to prevent reinfection via the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
References
Related rules
- AWS Bedrock Guardrails Detected Multiple Policy Violations Within a Single Blocked Request
- Unusual High Denied Topic Blocks Detected
- AWS Bedrock Guardrails Detected Multiple Violations by a Single User Over a Session
- AWS Bedrock Invocations without Guardrails Detected by a Single User Over a Session
- Unusual High Denied Sensitive Information Policy Blocks Detected