NIS2 Directive
Map NIS2 controls for cyber risk, incidents, supply chains, continuity, crises and vulnerability management.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Detects jailbreak and prompt-injection signals | Block |
| rbac | Request | Requires the X-User-ID and X-Org-ID headers | Block |
| pii-detector | Request | 3 custom identifier patterns | Redact |
| dlp-filter | Request | 3 blocked terms such as “critical service runbook” and “privileged access” | Block |
| bot-detector | Request | Flags matching fingerprints or near-identical prompts on one gateway | Warn |
| quality-scorer | Response | Accuracy ≥ 0.80; combined score ≥ 0.85 | Block |
| human-oversight | Response | Returns an escalated result instead of the assistant content | Escalate |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "fw_cyber_resilience_baseline"
name: "cyber-resilience-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "Cyber-resilience baseline starter for incident handling, abuse detection, and supervised recovery."
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "dlp-filter"
- "bot-detector"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID"]
pii-detector:
action: redact
detect_patterns: ["(?i)\\bincident\\s+reporter\\s*[:#-]?\\s*[A-Za-z ,'-]{3,80}", "(?i)\\bpersonnel\\s+(?:file|record|folder)\\b", "(?i)\\bvendor\\s+contact\\s*[:#-]?\\s*[A-Za-z0-9 ,()+-]{6,80}"]
dlp-filter:
blocked_terms: ["critical service runbook", "privileged access", "source selection information"]
action: block
bot-detector: {}
quality-scorer:
thresholds:
min_aggregate: 0.85
min_accuracy: 0.80
human-oversight:
action: escalate
audit-logger: {}