Small and Midsize Business

Start with practical controls for confidential data, employee information, attributable access and human review.

Industry starter · Regulated SaaS

What it checks

Policies in the Small and Midsize Business template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestSimilarity threshold 0.80Block
rbacRequestRequires the X-User-ID and X-Org-ID headersBlock
pii-detectorRequest2 custom identifier patternsRedact
dlp-filterRequest8 custom patternsBlock
bot-detectorRequestMore than 12 similar requests in 60 seconds; similarity ≥ 0.88Block
safety-filterRequest4 extra blocked phrases such as “harassment” and “discrimination”Block
quality-scorerResponseRelevancy ≥ 0.72; combined score ≥ 0.75Block
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord

Rate limit: 200 requests per minute across all gateway replicas.

Policy YAML
pack:
  id: "cfg_demo_smb"
  name: "demo-smb"
  version: "0.2.0"
  enabled: true
  author: "local"
  description: "SMB AI governance baseline — balanced protection for growing businesses"

# Balanced by design — enough governance for real business workflows without enterprise overhead.
global_rate_limit:
  max_requests: 200
  window_seconds: 60

distributed_rate_limit:
  backend: valkey
  url_env: VERDICTAN_REDIS_URL

# Keep lightweight metadata for investigations without retaining raw business prompts.
history:
  capture:
    enabled: true
    mode: metadata_only

policies:
  chain:
    - "prompt-injection"
    - "rbac"
    - "pii-detector"
    - "dlp-filter"
    - "bot-detector"
    - "safety-filter"
    - "quality-scorer"
    - "audit-logger"

policy:
  prompt-injection:
    embedding_threshold: 0.80
    response:
      action: block

  # Basic attributable access for customer-facing and internal business assistants.
  rbac:
    deny_if_missing:
      - "X-User-ID"
      - "X-Org-ID"

  pii-detector:
    action: redact
    detect_patterns:
      - "(?i)\\b\\d{1,6}\\s+[A-Za-z0-9][A-Za-z0-9\\s.\\-]{2,}\\s+(?:st|street|ave|avenue|rd|road|blvd|drive|ln|lane|dr|way|court|place)\\b"
      - "(?i)(?:tax\\s*(?:id|identification)|ein|tin)\\s*[:#-]?\\s*\\d{2}-?\\d{7}"

  # Block confidential business extraction attempts rather than just masking them.
  dlp-filter:
    detect_patterns:
      - "(?i)\\bcustomer\\s+(?:list|roster|database)\\b"
      - "(?i)\\bpricing\\s+(?:sheet|grid|schedule)\\b"
      - "(?i)\\b(?:employee|staff)\\s+salary\\s*[:#-]?\\s*\\$?\\d[\\d]*(?:\\.\\d{2})?"
      - "(?i)\\bboard\\s+(?:meeting\\s+)?minutes\\b"
      - "(?i)\\b(?:merger|acquisition)\\s+(?:target|terms|announcement)\\b"
      - "(?i)\\b(?:merger|acquisition|m\\s*&\\s*a)\\s+(?:target|deal|term\\s*sheet)\\b"
      - "(?i)\\b(?:earnings|revenue|demand)\\s+forecast\\b"
      - "(?i)\\bstrategic\\s+plan\\b"
    action: block

  bot-detector:
    action: block
    profile_window_seconds: 60
    similarity_threshold: 0.88
    max_requests_per_window: 12

  # Balanced workplace safety baseline for everyday business copilots.
  safety-filter:
    block_if:
      - "harassment"
      - "discrimination"
      - "threats"
      - "fraud_instructions"
    action: block

  quality-scorer:
    thresholds:
      min_aggregate: 0.75
      min_relevancy: 0.72

  audit-logger: {}