NERC CIP
Map bulk electric system controls for cyber access, configuration, incidents, recovery, vulnerabilities and supply-chain security.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Detects jailbreak and prompt-injection signals | Block |
| rbac | Request | Requires the X-User-ID, X-Org-ID and X-Facility-ID headers | Block |
| pii-detector | Request | 3 custom identifier patterns | Redact |
| dlp-filter | Request | 3 blocked terms such as “SCADA configuration” and “facility blueprint” | Block |
| agent-firewall | Both | Allows 3 tools; denies 4 tools; at most 2 actions per session | Block |
| safety-filter | Request | Built-in critical infrastructure patterns; 4 extra blocked phrases such as “disable emergency shutdown” and “override safety interlock” | Block |
| quality-scorer | Response | Accuracy ≥ 0.85; 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_critical_infrastructure_baseline"
name: "critical-infrastructure-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "Critical infrastructure baseline starter for OT-safe assistance and human-controlled operations."
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "dlp-filter"
- "agent-firewall"
- "safety-filter"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID", "X-Facility-ID"]
pii-detector:
action: redact
detect_patterns: ["(?i)(?:operator|badge)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,16}", "(?i)\\bvendor\\s+contact\\s*[:#-]?\\s*[A-Za-z0-9 ,()+-]{6,80}", "(?i)\\bincident\\s+reporter\\s*[:#-]?\\s*[A-Za-z ,'-]{3,80}"]
dlp-filter:
blocked_terms: ["SCADA configuration", "facility blueprint", "PLC ladder logic"]
action: block
agent-firewall:
allowed_tools: ["runbook_search", "ticket_create", "status_check"]
blocked_tools: ["shell", "network_scan", "plc_write", "valve_control"]
max_actions_per_session: 2
safety-filter:
mode: critical_infrastructure
block_if:
- "disable emergency shutdown"
- "override safety interlock"
- "bypass protection relay"
- "force valve open without permit"
action: block
quality-scorer:
thresholds:
min_aggregate: 0.85
min_accuracy: 0.85
human-oversight:
action: escalate
audit-logger: {}