NERC CIP

Map bulk electric system controls for cyber access, configuration, incidents, recovery, vulnerabilities and supply-chain security.

Control framework · Sovereign region

What it checks

Policies in the NERC CIP template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestDetects jailbreak and prompt-injection signalsBlock
rbacRequestRequires the X-User-ID, X-Org-ID and X-Facility-ID headersBlock
pii-detectorRequest3 custom identifier patternsRedact
dlp-filterRequest3 blocked terms such as “SCADA configuration” and “facility blueprint”Block
agent-firewallBothAllows 3 tools; denies 4 tools; at most 2 actions per sessionBlock
safety-filterRequestBuilt-in critical infrastructure patterns; 4 extra blocked phrases such as “disable emergency shutdown” and “override safety interlock”Block
quality-scorerResponseAccuracy ≥ 0.85; 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_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: {}