@highflame/policy 2.2.10 → 2.2.22
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.
|
@@ -178,19 +178,6 @@
|
|
|
178
178
|
"compliance:pci-dss",
|
|
179
179
|
"compliance:hipaa"
|
|
180
180
|
]
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"id": "organization.permit-llm-default",
|
|
184
|
-
"name": "Permit LLM proxy calls",
|
|
185
|
-
"description": "Permit all LLM chat completion requests by default; deploy alongside threat-specific forbids for a permit-default posture.",
|
|
186
|
-
"category": "organization",
|
|
187
|
-
"file": "llm_default_allow.cedar",
|
|
188
|
-
"severity": "low",
|
|
189
|
-
"tags": [
|
|
190
|
-
"category:organization",
|
|
191
|
-
"surface:process-prompt",
|
|
192
|
-
"posture:permit-default"
|
|
193
|
-
]
|
|
194
181
|
}
|
|
195
182
|
]
|
|
196
183
|
}
|
|
@@ -1299,28 +1299,6 @@ when {
|
|
|
1299
1299
|
)
|
|
1300
1300
|
};
|
|
1301
1301
|
`;
|
|
1302
|
-
const AI_GATEWAY_ORGANIZATION_PERMIT_LLM_DEFAULT_CEDAR = `// =============================================================================
|
|
1303
|
-
// LLM Default Allow
|
|
1304
|
-
// =============================================================================
|
|
1305
|
-
// Permits all LLM prompt processing by default. Deploy alongside threat-specific
|
|
1306
|
-
// forbid policies to create a "default allow, block on threat" posture for LLM
|
|
1307
|
-
// chat completions.
|
|
1308
|
-
//
|
|
1309
|
-
// Category: organization
|
|
1310
|
-
// Namespace: AIGateway
|
|
1311
|
-
// =============================================================================
|
|
1312
|
-
|
|
1313
|
-
@id("organization.permit-llm-default")
|
|
1314
|
-
@name("Permit LLM proxy calls")
|
|
1315
|
-
@description("Permits all process_prompt actions for the LLM proxy.")
|
|
1316
|
-
@severity("low")
|
|
1317
|
-
@tags("category:organization,surface:process-prompt,posture:permit-default")
|
|
1318
|
-
permit (
|
|
1319
|
-
principal,
|
|
1320
|
-
action == AIGateway::Action::"process_prompt",
|
|
1321
|
-
resource
|
|
1322
|
-
);
|
|
1323
|
-
`;
|
|
1324
1302
|
// =============================================================================
|
|
1325
1303
|
// CATEGORIES
|
|
1326
1304
|
// =============================================================================
|
|
@@ -1442,15 +1420,6 @@ export const AI_GATEWAY_TEMPLATES = [
|
|
|
1442
1420
|
severity: 'critical',
|
|
1443
1421
|
tags: ['category:privacy', 'threat:pii', 'detection:pattern', 'compliance:pci-dss', 'compliance:hipaa'],
|
|
1444
1422
|
},
|
|
1445
|
-
{
|
|
1446
|
-
id: 'organization.permit-llm-default',
|
|
1447
|
-
name: 'Permit LLM proxy calls',
|
|
1448
|
-
description: 'Permit all LLM chat completion requests by default; deploy alongside threat-specific forbids for a permit-default posture.',
|
|
1449
|
-
category: 'organization',
|
|
1450
|
-
cedarText: AI_GATEWAY_ORGANIZATION_PERMIT_LLM_DEFAULT_CEDAR,
|
|
1451
|
-
severity: 'low',
|
|
1452
|
-
tags: ['category:organization', 'surface:process-prompt', 'posture:permit-default'],
|
|
1453
|
-
},
|
|
1454
1423
|
];
|
|
1455
1424
|
// =============================================================================
|
|
1456
1425
|
// TEMPLATES METADATA
|
|
@@ -1636,19 +1605,6 @@ export const AI_GATEWAY_TEMPLATES_JSON = `{
|
|
|
1636
1605
|
"compliance:pci-dss",
|
|
1637
1606
|
"compliance:hipaa"
|
|
1638
1607
|
]
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
"id": "organization.permit-llm-default",
|
|
1642
|
-
"name": "Permit LLM proxy calls",
|
|
1643
|
-
"description": "Permit all LLM chat completion requests by default; deploy alongside threat-specific forbids for a permit-default posture.",
|
|
1644
|
-
"category": "organization",
|
|
1645
|
-
"file": "llm_default_allow.cedar",
|
|
1646
|
-
"severity": "low",
|
|
1647
|
-
"tags": [
|
|
1648
|
-
"category:organization",
|
|
1649
|
-
"surface:process-prompt",
|
|
1650
|
-
"posture:permit-default"
|
|
1651
|
-
]
|
|
1652
1608
|
}
|
|
1653
1609
|
]
|
|
1654
1610
|
}
|
|
@@ -350,20 +350,6 @@ export const GUARDRAILS_DETECTORS = [
|
|
|
350
350
|
defendsAgainst: ["pii_leakage", "phi_leakage"],
|
|
351
351
|
exampleAttacks: [{ title: "Unstructured PII", vulnerabilityId: "pii_leakage", snippet: "My patient John Halloway at 42 Birch Lane was diagnosed last Tuesday.", expectedSignal: {} }],
|
|
352
352
|
},
|
|
353
|
-
{
|
|
354
|
-
id: "dlp",
|
|
355
|
-
displayName: "Highflame DLP",
|
|
356
|
-
category: "data_protection",
|
|
357
|
-
stability: "stable",
|
|
358
|
-
tier: "slow",
|
|
359
|
-
inhouse: false,
|
|
360
|
-
model: null,
|
|
361
|
-
latencyP50Ms: 248,
|
|
362
|
-
emits: [{ name: "pii_detected", type: "Bool", modifiable: false, semantic: "boolean_flag", description: "True iff the DLP detector returned at least one PII finding." }, { name: "pii_types", type: "Set<String>", modifiable: false, semantic: "category_set", description: "PII info-types found (Presidio info-type names)." }, { name: "pii_confidence", type: "String", modifiable: false, semantic: "severity_0_100", description: "Highest likelihood level returned by DLP (VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY, VERY_LIKELY, NONE)." }, { name: "info_types", type: "Set<String>", modifiable: false, semantic: "category_set", description: "All DLP info-types detected (alias of pii_types for explicit DLP semantics)." }],
|
|
363
|
-
supportedModes: ["enforce", "monitor", "alert"],
|
|
364
|
-
defendsAgainst: ["pii_leakage", "phi_leakage", "pci_data_exposure"],
|
|
365
|
-
exampleAttacks: [{ title: "Credit card number", vulnerabilityId: "pci_data_exposure", snippet: "Customer record: 4111 1111 1111 1111, exp 04/27.", expectedSignal: {} }],
|
|
366
|
-
},
|
|
367
353
|
{
|
|
368
354
|
id: "content_safety",
|
|
369
355
|
displayName: "Content Safety (Model Armor)",
|
|
@@ -474,7 +460,6 @@ export const GUARDRAILS_FIELD_TO_DETECTORS = {
|
|
|
474
460
|
"hate_speech_score": ["toxicity"],
|
|
475
461
|
"indirect_injection_score": ["injection"],
|
|
476
462
|
"indirect_injection_type": ["injection"],
|
|
477
|
-
"info_types": ["dlp"],
|
|
478
463
|
"injection_confidence": ["injection"],
|
|
479
464
|
"injection_deep_context_score": ["deepcontext"],
|
|
480
465
|
"injection_pulse_score": ["injection"],
|
|
@@ -513,14 +498,13 @@ export const GUARDRAILS_FIELD_TO_DETECTORS = {
|
|
|
513
498
|
"pattern_type": ["action_pattern"],
|
|
514
499
|
"phishing_detected": ["phishing"],
|
|
515
500
|
"phishing_urls": ["phishing"],
|
|
516
|
-
"pii_confidence": ["dlp"],
|
|
517
501
|
"pii_count": ["pii"],
|
|
518
|
-
"pii_detected": ["pii"
|
|
502
|
+
"pii_detected": ["pii"],
|
|
519
503
|
"pii_model_count": ["pii_model"],
|
|
520
504
|
"pii_model_detected": ["pii_model"],
|
|
521
505
|
"pii_model_types": ["pii_model"],
|
|
522
506
|
"pii_score": ["pii"],
|
|
523
|
-
"pii_types": ["pii"
|
|
507
|
+
"pii_types": ["pii"],
|
|
524
508
|
"profanity_score": ["toxicity"],
|
|
525
509
|
"prompt_injection_score": ["deepcontext"],
|
|
526
510
|
"rpm_exceeded": ["budget_checker"],
|
|
@@ -544,7 +528,7 @@ export const GUARDRAILS_FIELD_TO_DETECTORS = {
|
|
|
544
528
|
"session_max_pii_score": ["pii"],
|
|
545
529
|
"session_max_secret_score": ["secrets"],
|
|
546
530
|
"session_pii_detected": ["pii"],
|
|
547
|
-
"session_pii_types": ["pii"
|
|
531
|
+
"session_pii_types": ["pii"],
|
|
548
532
|
"session_secret_types": ["secrets"],
|
|
549
533
|
"session_secrets_detected": ["secrets"],
|
|
550
534
|
"sexual_score": ["toxicity"],
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// LLM Default Allow
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// Permits all LLM prompt processing by default. Deploy alongside threat-specific
|
|
5
|
-
// forbid policies to create a "default allow, block on threat" posture for LLM
|
|
6
|
-
// chat completions.
|
|
7
|
-
//
|
|
8
|
-
// Category: organization
|
|
9
|
-
// Namespace: AIGateway
|
|
10
|
-
// =============================================================================
|
|
11
|
-
|
|
12
|
-
@id("organization.permit-llm-default")
|
|
13
|
-
@name("Permit LLM proxy calls")
|
|
14
|
-
@description("Permits all process_prompt actions for the LLM proxy.")
|
|
15
|
-
@severity("low")
|
|
16
|
-
@tags("category:organization,surface:process-prompt,posture:permit-default")
|
|
17
|
-
permit (
|
|
18
|
-
principal,
|
|
19
|
-
action == AIGateway::Action::"process_prompt",
|
|
20
|
-
resource
|
|
21
|
-
);
|