SOC 2 Type I

Map point-in-time control design to the AICPA Trust Services Criteria with this SOC 2 starter.

Control framework · Regulated SaaS, Private cloud

What it checks

Policies in the SOC 2 Type I 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-detectorRequest1 custom identifier patternRedact
dlp-filterRequest3 blocked terms such as “password” and “private key”Block
quality-scorerResponseAccuracy ≥ 0.80; relevancy ≥ 0.78; combined score ≥ 0.85; at least 120 characters and 2 sentencesBlock
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "fw_soc2_baseline"
  name: "soc2-baseline"
  version: "0.1.0"
  enabled: true
  author: "verdictan"
  description: "SOC 2 baseline starter controls for access, privacy, and audit evidence."
policies:
  chain:
    - "prompt-injection"
    - "rbac"
    - "pii-detector"
    - "dlp-filter"
    - "quality-scorer"
    - "audit-logger"
policy:
  prompt-injection: {}
  rbac:
    deny_if_missing: ["X-User-ID", "X-Org-ID"]
  pii-detector:
    action: redact
    detect_patterns: [ "(?i)(?:national\\s*id(?:entifier)?|national\\s+insurance\\s+number|ni\\s+number|nid)\\s*[:#-]?\\s*[A-Z0-9-]{5,20}"]
  dlp-filter:
    blocked_terms: ["password", "private key", "access token"]
    action: block
  quality-scorer:
    min_output_chars: 120
    min_sentences: 2
    thresholds:
      min_aggregate: 0.85
      min_relevancy: 0.78
      min_accuracy: 0.80
    weights:
      relevancy: 0.5
      accuracy: 0.5
  audit-logger: {}