NIS2 Directive

Map NIS2 controls for cyber risk, incidents, supply chains, continuity, crises and vulnerability management.

Control framework · Regulated SaaS, Sovereign region

What it checks

Policies in the NIS2 Directive template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestDetects jailbreak and prompt-injection signalsBlock
rbacRequestRequires the X-User-ID and X-Org-ID headersBlock
pii-detectorRequest3 custom identifier patternsRedact
dlp-filterRequest3 blocked terms such as “critical service runbook” and “privileged access”Block
bot-detectorRequestFlags matching fingerprints or near-identical prompts on one gatewayWarn
quality-scorerResponseAccuracy ≥ 0.80; combined score ≥ 0.85Block
human-oversightResponseReturns an escalated result instead of the assistant contentEscalate
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
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: {}