Cybersecurity Products
Protect credentials, sanitize code, analyze tool use, require review and retain security-product records.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Detects jailbreak and prompt-injection signals | Block |
| pii-detector | Request | 2 custom identifier patterns | Redact |
| dlp-filter | Request | Blocked terms “private key” and “production credential” | Block |
| code-sanitizer | Both | Matches message text against built-in and custom code-safety patterns | Block |
| tool-security | Request | Blocks unsafe tool definitions in the request | Block |
| quality-scorer | Response | Accuracy ≥ 0.80; relevancy ≥ 0.78; combined score ≥ 0.82; at least 120 characters and 2 sentences | Block |
| human-oversight | Response | No action is set, so it does not review responses | None |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "cfg_cybersecurity_products"
name: "cybersecurity-products"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "Security-product controls for credentials, code safety, tool analysis, a configurable human-oversight point, and records."
policies:
chain:
- "prompt-injection"
- "pii-detector"
- "dlp-filter"
- "code-sanitizer"
- "tool-security"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
pii-detector:
action: redact
detect_patterns:
- "(?i)(?:api[_\\s-]?key|apikey)\\s*[:#=]?\\s*[A-Za-z0-9_\\-]{16,128}"
- "(?i)(?:bearer\\s+)?token\\s*[:#=]\\s*[A-Za-z0-9._\\-]{8,128}"
dlp-filter:
blocked_terms:
- "private key"
- "production credential"
action: block
code-sanitizer:
enabled: true
block_on_match: true
tool-security:
analysis_mode: local
quality-scorer:
min_output_chars: 120
min_sentences: 2
thresholds:
min_aggregate: 0.82
min_relevancy: 0.78
min_accuracy: 0.80
weights:
relevancy: 0.5
accuracy: 0.5
human-oversight: {}
audit-logger: {}