@highflame/policy 2.2.10 → 2.2.11
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.
|
@@ -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"],
|