@highflame/policy 2.2.36 → 2.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_schemas/agent_ops/context.json +792 -0
- package/_schemas/agent_ops/schema.cedarschema +127 -109
- package/_schemas/agent_ops/templates/ported/agent-security/agent_identity_a2a_cross_origin.cedar +6 -4
- package/_schemas/agent_ops/templates/ported/agent-security/agent_identity_a2a_escalation.cedar +5 -4
- package/_schemas/agent_ops/templates/ported/agent-security/agent_identity_a2a_inter_agent_injection.cedar +9 -8
- package/_schemas/agent_ops/templates/ported/agent-security/agent_identity_claude_block_injection.cedar +2 -2
- package/_schemas/agent_ops/templates/ported/agent-security/agent_identity_defaults.cedar +3 -3
- package/_schemas/agent_ops/templates/ported/agent-security/agent_identity_multi_agent_trust.cedar +6 -6
- package/_schemas/agent_ops/templates/ported/content-safety/trust_safety_chat_assistant.cedar +5 -4
- package/_schemas/agent_ops/templates/ported/content-safety/trust_safety_defaults.cedar +18 -12
- package/_schemas/agent_ops/templates/ported/content-safety/trust_safety_semantic.cedar +6 -6
- package/_schemas/agent_ops/templates/ported/content-safety/trust_safety_toxicity.cedar +4 -4
- package/_schemas/agent_ops/templates/ported/data-protection/data_protection_advanced_secrets.cedar +4 -2
- package/_schemas/agent_ops/templates/ported/data-protection/data_protection_data_pipeline.cedar +2 -1
- package/_schemas/agent_ops/templates/ported/data-protection/data_protection_defaults.cedar +4 -2
- package/_schemas/agent_ops/templates/ported/data-protection/privacy_advanced_pii.cedar +42 -21
- package/_schemas/agent_ops/templates/ported/data-protection/privacy_defaults.cedar +14 -7
- package/_schemas/agent_ops/templates/ported/data-protection/privacy_pii_model.cedar +10 -5
- package/_schemas/agent_ops/templates/ported/organization/organization_team_permissions.cedar +3 -2
- package/_schemas/agent_ops/templates/ported/threat-detection/security_advanced_block_critical_severity.cedar +3 -3
- package/_schemas/agent_ops/templates/ported/threat-detection/security_chat_assistant.cedar +5 -4
- package/_schemas/agent_ops/templates/ported/threat-detection/security_data_pipeline_block_injection.cedar +3 -2
- package/_schemas/agent_ops/templates/ported/threat-detection/security_injection.cedar +9 -8
- package/_schemas/agent_ops/templates/ported/threat-detection/security_patterns.cedar +5 -3
- package/_schemas/agent_ops/templates/ported/threat-detection/semantic_defaults.cedar +9 -7
- package/_schemas/ai_gateway/context.json +278 -0
- package/_schemas/ai_gateway/schema.cedarschema +37 -7
- package/_schemas/ai_gateway/templates/defaults/agent_security.cedar +5 -16
- package/_schemas/ai_gateway/templates/defaults/pii.cedar +14 -7
- package/_schemas/ai_gateway/templates/defaults/pii_advanced.cedar +42 -21
- package/_schemas/ai_gateway/templates/defaults/pii_model.cedar +10 -5
- package/_schemas/ai_gateway/templates/defaults/semantic.cedar +9 -74
- package/_schemas/ai_gateway/templates/defaults/tools.cedar +7 -38
- package/_schemas/ai_gateway/templates/secrets.cedar +3 -3
- package/_schemas/guardrails/context.json +671 -0
- package/_schemas/guardrails/schema.cedarschema +23 -2
- package/_schemas/guardrails/templates/defaults/agent_identity.cedar +3 -3
- package/_schemas/guardrails/templates/defaults/injection.cedar +9 -8
- package/_schemas/guardrails/templates/defaults/pii.cedar +14 -7
- package/_schemas/guardrails/templates/defaults/pii_model.cedar +10 -5
- package/_schemas/guardrails/templates/defaults/secrets.cedar +4 -2
- package/_schemas/guardrails/templates/defaults/security_patterns.cedar +5 -3
- package/_schemas/guardrails/templates/defaults/semantic.cedar +6 -6
- package/_schemas/guardrails/templates/defaults/toxicity.cedar +6 -6
- package/_schemas/guardrails/templates/profiles/a2a_security/cross_origin.cedar +6 -4
- package/_schemas/guardrails/templates/profiles/a2a_security/escalation_detection.cedar +5 -4
- package/_schemas/guardrails/templates/profiles/a2a_security/inter_agent_injection.cedar +9 -8
- package/_schemas/guardrails/templates/profiles/advanced_detection/pii.cedar +42 -21
- package/_schemas/guardrails/templates/profiles/advanced_detection/secrets.cedar +4 -2
- package/_schemas/guardrails/templates/profiles/chat_assistant/security.cedar +5 -4
- package/_schemas/guardrails/templates/profiles/chat_assistant/trust_safety.cedar +5 -4
- package/_schemas/guardrails/templates/profiles/data_pipeline/data_protection.cedar +2 -1
- package/_schemas/guardrails/templates/profiles/data_pipeline/security.cedar +3 -2
- package/_schemas/guardrails/templates/profiles/multi_agent/agent_trust.cedar +6 -6
- package/_schemas/guardrails/templates/templates.json +0 -9
- package/dist/agent_ops-defaults.gen.js +177 -120
- package/dist/agent_ops-entities.gen.js +5 -1
- package/dist/ai_gateway-defaults.gen.js +90 -164
- package/dist/ai_gateway-entities.gen.js +6 -2
- package/dist/engine.d.ts +10 -0
- package/dist/engine.js +25 -1
- package/dist/guardrails-defaults.gen.js +144 -145
- package/dist/guardrails-entities.gen.js +5 -1
- package/dist/service-schemas.gen.d.ts +3 -3
- package/dist/service-schemas.gen.js +480 -118
- package/package.json +1 -1
- package/_schemas/guardrails/templates/profiles/advanced_detection/threat_severity.cedar +0 -30
- package/_schemas/mcp_gateway/context.json +0 -655
- package/_schemas/mcp_gateway/schema.cedarschema +0 -342
- package/_schemas/mcp_gateway/templates/defaults/agent_security.cedar +0 -140
- package/_schemas/mcp_gateway/templates/defaults/baseline.cedar +0 -23
- package/_schemas/mcp_gateway/templates/defaults/semantic.cedar +0 -105
- package/_schemas/mcp_gateway/templates/defaults/tools.cedar +0 -92
- package/_schemas/mcp_gateway/templates/mcp_server_allowlist.cedar +0 -33
- package/_schemas/mcp_gateway/templates/mcp_tool_permissions.cedar +0 -77
- package/_schemas/mcp_gateway/templates/templates.json +0 -89
- package/dist/mcp_gateway-context.gen.d.ts +0 -51
- package/dist/mcp_gateway-context.gen.js +0 -52
- package/dist/mcp_gateway-defaults.gen.d.ts +0 -61
- package/dist/mcp_gateway-defaults.gen.js +0 -668
- package/dist/mcp_gateway-entities.gen.d.ts +0 -11
- package/dist/mcp_gateway-entities.gen.js +0 -37
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
@reject_message("Content blocked: national identifier (SSN, passport, or driver's license) patterns detected.")
|
|
23
23
|
forbid (
|
|
24
24
|
principal,
|
|
25
|
-
action in [Guardrails::Action::"process_prompt",
|
|
25
|
+
action in [Guardrails::Action::"process_prompt",
|
|
26
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
26
27
|
resource
|
|
27
28
|
)
|
|
28
29
|
when {
|
|
@@ -44,7 +45,8 @@ when {
|
|
|
44
45
|
@reject_message("Content blocked: credit card number patterns detected.")
|
|
45
46
|
forbid (
|
|
46
47
|
principal,
|
|
47
|
-
action in [Guardrails::Action::"process_prompt",
|
|
48
|
+
action in [Guardrails::Action::"process_prompt",
|
|
49
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
48
50
|
resource
|
|
49
51
|
)
|
|
50
52
|
when {
|
|
@@ -63,7 +65,8 @@ when {
|
|
|
63
65
|
@reject_message("Content blocked: bank account (IBAN) number patterns detected.")
|
|
64
66
|
forbid (
|
|
65
67
|
principal,
|
|
66
|
-
action in [Guardrails::Action::"process_prompt",
|
|
68
|
+
action in [Guardrails::Action::"process_prompt",
|
|
69
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
67
70
|
resource
|
|
68
71
|
)
|
|
69
72
|
when {
|
|
@@ -85,7 +88,8 @@ when {
|
|
|
85
88
|
@reject_message("Content blocked: medical record identifier patterns detected.")
|
|
86
89
|
forbid (
|
|
87
90
|
principal,
|
|
88
|
-
action in [Guardrails::Action::"process_prompt",
|
|
91
|
+
action in [Guardrails::Action::"process_prompt",
|
|
92
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
89
93
|
resource
|
|
90
94
|
)
|
|
91
95
|
when {
|
|
@@ -109,7 +113,8 @@ when {
|
|
|
109
113
|
@reject_message("Content blocked: tax identifier (ITIN or EIN) patterns detected.")
|
|
110
114
|
forbid (
|
|
111
115
|
principal,
|
|
112
|
-
action in [Guardrails::Action::"process_prompt",
|
|
116
|
+
action in [Guardrails::Action::"process_prompt",
|
|
117
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
113
118
|
resource
|
|
114
119
|
)
|
|
115
120
|
when {
|
|
@@ -129,7 +134,8 @@ when {
|
|
|
129
134
|
@reject_message("Content blocked: credential or API key patterns detected.")
|
|
130
135
|
forbid (
|
|
131
136
|
principal,
|
|
132
|
-
action in [Guardrails::Action::"process_prompt",
|
|
137
|
+
action in [Guardrails::Action::"process_prompt",
|
|
138
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
133
139
|
resource
|
|
134
140
|
)
|
|
135
141
|
when {
|
|
@@ -160,7 +166,8 @@ when {
|
|
|
160
166
|
@reject_message("Content blocked: cryptocurrency wallet address patterns detected.")
|
|
161
167
|
forbid (
|
|
162
168
|
principal,
|
|
163
|
-
action in [Guardrails::Action::"process_prompt",
|
|
169
|
+
action in [Guardrails::Action::"process_prompt",
|
|
170
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
164
171
|
resource
|
|
165
172
|
)
|
|
166
173
|
when {
|
|
@@ -179,7 +186,8 @@ when {
|
|
|
179
186
|
@reject_message("Content blocked: personal name patterns detected.")
|
|
180
187
|
forbid (
|
|
181
188
|
principal,
|
|
182
|
-
action in [Guardrails::Action::"process_prompt",
|
|
189
|
+
action in [Guardrails::Action::"process_prompt",
|
|
190
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
183
191
|
resource
|
|
184
192
|
)
|
|
185
193
|
when {
|
|
@@ -198,7 +206,8 @@ when {
|
|
|
198
206
|
@reject_message("Content blocked: email address patterns detected.")
|
|
199
207
|
forbid (
|
|
200
208
|
principal,
|
|
201
|
-
action in [Guardrails::Action::"process_prompt",
|
|
209
|
+
action in [Guardrails::Action::"process_prompt",
|
|
210
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
202
211
|
resource
|
|
203
212
|
)
|
|
204
213
|
when {
|
|
@@ -217,7 +226,8 @@ when {
|
|
|
217
226
|
@reject_message("Content blocked: phone number patterns detected.")
|
|
218
227
|
forbid (
|
|
219
228
|
principal,
|
|
220
|
-
action in [Guardrails::Action::"process_prompt",
|
|
229
|
+
action in [Guardrails::Action::"process_prompt",
|
|
230
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
221
231
|
resource
|
|
222
232
|
)
|
|
223
233
|
when {
|
|
@@ -236,7 +246,8 @@ when {
|
|
|
236
246
|
@reject_message("Content blocked: date or time patterns detected.")
|
|
237
247
|
forbid (
|
|
238
248
|
principal,
|
|
239
|
-
action in [Guardrails::Action::"process_prompt",
|
|
249
|
+
action in [Guardrails::Action::"process_prompt",
|
|
250
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
240
251
|
resource
|
|
241
252
|
)
|
|
242
253
|
when {
|
|
@@ -258,7 +269,8 @@ when {
|
|
|
258
269
|
@reject_message("Content blocked: URL patterns detected.")
|
|
259
270
|
forbid (
|
|
260
271
|
principal,
|
|
261
|
-
action in [Guardrails::Action::"process_prompt",
|
|
272
|
+
action in [Guardrails::Action::"process_prompt",
|
|
273
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
262
274
|
resource
|
|
263
275
|
)
|
|
264
276
|
when {
|
|
@@ -277,7 +289,8 @@ when {
|
|
|
277
289
|
@reject_message("Content blocked: street address or location patterns detected.")
|
|
278
290
|
forbid (
|
|
279
291
|
principal,
|
|
280
|
-
action in [Guardrails::Action::"process_prompt",
|
|
292
|
+
action in [Guardrails::Action::"process_prompt",
|
|
293
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
281
294
|
resource
|
|
282
295
|
)
|
|
283
296
|
when {
|
|
@@ -298,7 +311,8 @@ when {
|
|
|
298
311
|
@reject_message("Content blocked: organization name patterns detected.")
|
|
299
312
|
forbid (
|
|
300
313
|
principal,
|
|
301
|
-
action in [Guardrails::Action::"process_prompt",
|
|
314
|
+
action in [Guardrails::Action::"process_prompt",
|
|
315
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
302
316
|
resource
|
|
303
317
|
)
|
|
304
318
|
when {
|
|
@@ -317,7 +331,8 @@ when {
|
|
|
317
331
|
@reject_message("Content blocked: occupation patterns detected.")
|
|
318
332
|
forbid (
|
|
319
333
|
principal,
|
|
320
|
-
action in [Guardrails::Action::"process_prompt",
|
|
334
|
+
action in [Guardrails::Action::"process_prompt",
|
|
335
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
321
336
|
resource
|
|
322
337
|
)
|
|
323
338
|
when {
|
|
@@ -336,7 +351,8 @@ when {
|
|
|
336
351
|
@reject_message("Content blocked: username patterns detected.")
|
|
337
352
|
forbid (
|
|
338
353
|
principal,
|
|
339
|
-
action in [Guardrails::Action::"process_prompt",
|
|
354
|
+
action in [Guardrails::Action::"process_prompt",
|
|
355
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
340
356
|
resource
|
|
341
357
|
)
|
|
342
358
|
when {
|
|
@@ -355,7 +371,8 @@ when {
|
|
|
355
371
|
@reject_message("Content blocked: employee or customer identifier patterns detected.")
|
|
356
372
|
forbid (
|
|
357
373
|
principal,
|
|
358
|
-
action in [Guardrails::Action::"process_prompt",
|
|
374
|
+
action in [Guardrails::Action::"process_prompt",
|
|
375
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
359
376
|
resource
|
|
360
377
|
)
|
|
361
378
|
when {
|
|
@@ -376,7 +393,8 @@ when {
|
|
|
376
393
|
@reject_message("Content blocked: device or network identifier patterns detected.")
|
|
377
394
|
forbid (
|
|
378
395
|
principal,
|
|
379
|
-
action in [Guardrails::Action::"process_prompt",
|
|
396
|
+
action in [Guardrails::Action::"process_prompt",
|
|
397
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
380
398
|
resource
|
|
381
399
|
)
|
|
382
400
|
when {
|
|
@@ -403,7 +421,8 @@ when {
|
|
|
403
421
|
@reject_message("Content blocked: vehicle identifier (VIN or plate) patterns detected.")
|
|
404
422
|
forbid (
|
|
405
423
|
principal,
|
|
406
|
-
action in [Guardrails::Action::"process_prompt",
|
|
424
|
+
action in [Guardrails::Action::"process_prompt",
|
|
425
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
407
426
|
resource
|
|
408
427
|
)
|
|
409
428
|
when {
|
|
@@ -423,7 +442,8 @@ when {
|
|
|
423
442
|
@reject_message("Content blocked: salary or financial amount patterns detected.")
|
|
424
443
|
forbid (
|
|
425
444
|
principal,
|
|
426
|
-
action in [Guardrails::Action::"process_prompt",
|
|
445
|
+
action in [Guardrails::Action::"process_prompt",
|
|
446
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
427
447
|
resource
|
|
428
448
|
)
|
|
429
449
|
when {
|
|
@@ -444,7 +464,8 @@ when {
|
|
|
444
464
|
@reject_message("Content blocked: sensitive attribute (ethnicity, religion, etc.) patterns detected.")
|
|
445
465
|
forbid (
|
|
446
466
|
principal,
|
|
447
|
-
action in [Guardrails::Action::"process_prompt",
|
|
467
|
+
action in [Guardrails::Action::"process_prompt",
|
|
468
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool", Guardrails::Action::"read_file", Guardrails::Action::"write_file"],
|
|
448
469
|
resource
|
|
449
470
|
)
|
|
450
471
|
when {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
@id("data-protection.advanced-block-high-risk-secrets")
|
|
20
20
|
@name("Block high-risk credential types")
|
|
21
|
-
@description("Blocks process_prompt, call_tool, read_file, and write_file when secret_types contains a cloud, GitHub, SSH, or database credential.")
|
|
21
|
+
@description("Blocks process_prompt, process_response, call_tool, read_file, and write_file when secret_types contains a cloud, GitHub, SSH, or database credential.")
|
|
22
22
|
@severity("critical")
|
|
23
23
|
@tags("category:data-protection,threat:secrets,detection:rule,owasp:llm06")
|
|
24
24
|
@reject_message("Content blocked: high-risk credentials detected (cloud keys, GitHub tokens, SSH keys, or database URLs).")
|
|
@@ -26,6 +26,7 @@ forbid (
|
|
|
26
26
|
principal,
|
|
27
27
|
action in [
|
|
28
28
|
Guardrails::Action::"process_prompt",
|
|
29
|
+
Guardrails::Action::"process_response",
|
|
29
30
|
Guardrails::Action::"call_tool",
|
|
30
31
|
Guardrails::Action::"read_file",
|
|
31
32
|
Guardrails::Action::"write_file"
|
|
@@ -48,7 +49,7 @@ when {
|
|
|
48
49
|
|
|
49
50
|
@id("data-protection.advanced-block-api-tokens")
|
|
50
51
|
@name("Block API keys and bearer tokens")
|
|
51
|
-
@description("Blocks process_prompt, call_tool, read_file, and write_file when secret_types contains api_key, bearer_token, jwt_token, or OAuth credentials.")
|
|
52
|
+
@description("Blocks process_prompt, process_response, call_tool, read_file, and write_file when secret_types contains api_key, bearer_token, jwt_token, or OAuth credentials.")
|
|
52
53
|
@severity("high")
|
|
53
54
|
@tags("category:data-protection,threat:secrets,detection:rule,owasp:llm06")
|
|
54
55
|
@reject_message("Content blocked: API keys, bearer tokens, or OAuth credentials detected.")
|
|
@@ -56,6 +57,7 @@ forbid (
|
|
|
56
57
|
principal,
|
|
57
58
|
action in [
|
|
58
59
|
Guardrails::Action::"process_prompt",
|
|
60
|
+
Guardrails::Action::"process_response",
|
|
59
61
|
Guardrails::Action::"call_tool",
|
|
60
62
|
Guardrails::Action::"read_file",
|
|
61
63
|
Guardrails::Action::"write_file"
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
@id("security.chat-block-injection")
|
|
20
20
|
@name("Block injection (chat profile)")
|
|
21
|
-
@description("Blocks process_prompt and call_tool when injection_score >= 71 (lower threshold for public chat).")
|
|
21
|
+
@description("Blocks process_prompt, process_response, and call_tool when injection_score >= 71 (lower threshold for public chat).")
|
|
22
22
|
@severity("high")
|
|
23
23
|
@tags("category:security,threat:injection,detection:ml,owasp:llm01")
|
|
24
24
|
@reject_message("Prompt blocked: prompt injection detected with high confidence (chat profile).")
|
|
25
25
|
forbid (
|
|
26
26
|
principal,
|
|
27
|
-
action in [Guardrails::Action::"process_prompt",
|
|
27
|
+
action in [Guardrails::Action::"process_prompt",
|
|
28
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool"],
|
|
28
29
|
resource
|
|
29
30
|
)
|
|
30
31
|
when {
|
|
@@ -33,13 +34,13 @@ when {
|
|
|
33
34
|
|
|
34
35
|
@id("security.chat-block-jailbreak")
|
|
35
36
|
@name("Block jailbreak (chat profile)")
|
|
36
|
-
@description("Blocks process_prompt when jailbreak_score >= 66 (lower threshold for public chat).")
|
|
37
|
+
@description("Blocks process_prompt and process_response when jailbreak_score >= 66 (lower threshold for public chat).")
|
|
37
38
|
@severity("high")
|
|
38
39
|
@tags("category:security,threat:jailbreak,detection:ml,owasp:llm02")
|
|
39
40
|
@reject_message("Prompt blocked: jailbreak attempt detected with high confidence (chat profile).")
|
|
40
41
|
forbid (
|
|
41
42
|
principal,
|
|
42
|
-
action
|
|
43
|
+
action in [Guardrails::Action::"process_prompt", Guardrails::Action::"process_response"],
|
|
43
44
|
resource
|
|
44
45
|
)
|
|
45
46
|
when {
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
|
|
20
20
|
@id("trust-safety.chat-block-toxicity")
|
|
21
21
|
@name("Block toxicity (chat profile)")
|
|
22
|
-
@description("Blocks process_prompt when any toxicity score is >= 71 (lower threshold for public chat).")
|
|
22
|
+
@description("Blocks process_prompt and process_response when any toxicity score is >= 71 (lower threshold for public chat).")
|
|
23
23
|
@severity("critical")
|
|
24
24
|
@tags("category:trust-safety,threat:harmful,threat:hate-speech,detection:ml,compliance:eu-ai-act")
|
|
25
25
|
@reject_message("Prompt blocked: toxic content detected at the chat-profile threshold.")
|
|
26
26
|
forbid (
|
|
27
27
|
principal,
|
|
28
|
-
action
|
|
28
|
+
action in [Guardrails::Action::"process_prompt", Guardrails::Action::"process_response"],
|
|
29
29
|
resource
|
|
30
30
|
)
|
|
31
31
|
when {
|
|
@@ -37,13 +37,14 @@ when {
|
|
|
37
37
|
|
|
38
38
|
@id("trust-safety.chat-block-restricted-topics")
|
|
39
39
|
@name("Block restricted topics (chat profile)")
|
|
40
|
-
@description("Blocks process_prompt and call_tool when topic_confidence >= 71 and content_topics contains a restricted category.")
|
|
40
|
+
@description("Blocks process_prompt, process_response, and call_tool when topic_confidence >= 71 and content_topics contains a restricted category.")
|
|
41
41
|
@severity("high")
|
|
42
42
|
@tags("category:trust-safety,threat:harmful,detection:ml,compliance:eu-ai-act")
|
|
43
43
|
@reject_message("Prompt blocked: content discusses a topic restricted for chat assistants.")
|
|
44
44
|
forbid (
|
|
45
45
|
principal,
|
|
46
|
-
action in [Guardrails::Action::"process_prompt",
|
|
46
|
+
action in [Guardrails::Action::"process_prompt",
|
|
47
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool"],
|
|
47
48
|
resource
|
|
48
49
|
)
|
|
49
50
|
when {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
@id("data-protection.data-pipeline-block-secrets")
|
|
19
19
|
@name("Block secrets in data pipeline")
|
|
20
|
-
@description("Blocks process_prompt, call_tool, read_file, and write_file when secrets_detected is true.")
|
|
20
|
+
@description("Blocks process_prompt, process_response, call_tool, read_file, and write_file when secrets_detected is true.")
|
|
21
21
|
@severity("critical")
|
|
22
22
|
@tags("category:data-protection,threat:secrets,detection:rule,owasp:llm06")
|
|
23
23
|
@reject_message("Request blocked: secrets detected in a data pipeline — any credential exposure is unacceptable here.")
|
|
@@ -25,6 +25,7 @@ forbid (
|
|
|
25
25
|
principal,
|
|
26
26
|
action in [
|
|
27
27
|
Guardrails::Action::"process_prompt",
|
|
28
|
+
Guardrails::Action::"process_response",
|
|
28
29
|
Guardrails::Action::"call_tool",
|
|
29
30
|
Guardrails::Action::"read_file",
|
|
30
31
|
Guardrails::Action::"write_file"
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
|
|
18
18
|
@id("security.data-pipeline-block-injection")
|
|
19
19
|
@name("Block pipeline injection (data-pipeline profile)")
|
|
20
|
-
@description("Blocks process_prompt and call_tool when injection_score >= 66 (lower threshold for data pipelines).")
|
|
20
|
+
@description("Blocks process_prompt, process_response, and call_tool when injection_score >= 66 (lower threshold for data pipelines).")
|
|
21
21
|
@severity("high")
|
|
22
22
|
@tags("category:security,threat:injection,detection:ml,owasp:llm01")
|
|
23
23
|
@reject_message("Request blocked: prompt injection detected at the data-pipeline threshold — RAG inputs are high-risk for indirect injection.")
|
|
24
24
|
forbid (
|
|
25
25
|
principal,
|
|
26
|
-
action in [Guardrails::Action::"process_prompt",
|
|
26
|
+
action in [Guardrails::Action::"process_prompt",
|
|
27
|
+
Guardrails::Action::"process_response", Guardrails::Action::"call_tool"],
|
|
27
28
|
resource
|
|
28
29
|
)
|
|
29
30
|
when {
|
|
@@ -93,13 +93,13 @@ when {
|
|
|
93
93
|
|
|
94
94
|
@id("agent-identity.multi-agent-autonomous-injection")
|
|
95
95
|
@name("Block injection on autonomous agents (stricter)")
|
|
96
|
-
@description("Blocks process_prompt when agent_type is \"autonomous\" and injection_score >= 51.")
|
|
96
|
+
@description("Blocks process_prompt and process_response when agent_type is \"autonomous\" and injection_score >= 51.")
|
|
97
97
|
@severity("high")
|
|
98
|
-
@tags("category:agent-identity,threat:injection,detection:ml,surface:process-prompt,owasp:llm01")
|
|
98
|
+
@tags("category:agent-identity,threat:injection,detection:ml,surface:process-prompt,surface:process-response,owasp:llm01")
|
|
99
99
|
@reject_message("Prompt blocked: lower injection threshold applies to autonomous agents and was exceeded.")
|
|
100
100
|
forbid (
|
|
101
101
|
principal is Guardrails::Agent,
|
|
102
|
-
action
|
|
102
|
+
action in [Guardrails::Action::"process_prompt", Guardrails::Action::"process_response"],
|
|
103
103
|
resource
|
|
104
104
|
)
|
|
105
105
|
when {
|
|
@@ -109,13 +109,13 @@ when {
|
|
|
109
109
|
|
|
110
110
|
@id("agent-identity.multi-agent-autonomous-jailbreak")
|
|
111
111
|
@name("Block jailbreak on autonomous agents (stricter)")
|
|
112
|
-
@description("Blocks process_prompt when agent_type is \"autonomous\" and jailbreak_score >= 51.")
|
|
112
|
+
@description("Blocks process_prompt and process_response when agent_type is \"autonomous\" and jailbreak_score >= 51.")
|
|
113
113
|
@severity("high")
|
|
114
|
-
@tags("category:agent-identity,threat:jailbreak,detection:ml,surface:process-prompt,owasp:llm02")
|
|
114
|
+
@tags("category:agent-identity,threat:jailbreak,detection:ml,surface:process-prompt,surface:process-response,owasp:llm02")
|
|
115
115
|
@reject_message("Prompt blocked: lower jailbreak threshold applies to autonomous agents and was exceeded.")
|
|
116
116
|
forbid (
|
|
117
117
|
principal is Guardrails::Agent,
|
|
118
|
-
action
|
|
118
|
+
action in [Guardrails::Action::"process_prompt", Guardrails::Action::"process_response"],
|
|
119
119
|
resource
|
|
120
120
|
)
|
|
121
121
|
when {
|
|
@@ -482,15 +482,6 @@
|
|
|
482
482
|
"compliance:hipaa"
|
|
483
483
|
]
|
|
484
484
|
},
|
|
485
|
-
{
|
|
486
|
-
"id": "security.advanced-block-critical-severity",
|
|
487
|
-
"name": "Advanced Detection — Threat Severity",
|
|
488
|
-
"description": "Catch-all that blocks any content flagged as critical severity by any detector.",
|
|
489
|
-
"category": "security",
|
|
490
|
-
"file": "profiles/advanced_detection/threat_severity.cedar",
|
|
491
|
-
"severity": "critical",
|
|
492
|
-
"tags": ["category:security", "detection:aggregate", "posture:catch-all"]
|
|
493
|
-
},
|
|
494
485
|
{
|
|
495
486
|
"id": "agent-security.param-validation",
|
|
496
487
|
"name": "Action Parameter Validation",
|