HIPAA (Covered Entity)
Map HIPAA covered-entity controls for protected health information, access, audits, transmission security and breach response.
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-User-Role headers | Block |
| hipaa-phi-detector | Request | All 18 Safe Harbor identifier types | Redact |
| pii-detector | Request | Healthcare identifiers; 3 custom identifier patterns | Redact |
| dlp-filter | Request | 3 blocked terms such as “export all patients” and “download patient database” | Block |
| healthcare-compliance | Response | 3 blocked phrases such as “diagnosis:” and “prescribe”; adds 2 disclaimers; FDA class II | Block, add disclaimers |
| quality-scorer | Response | Accuracy ≥ 0.90; 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_hipaa_baseline"
name: "hipaa-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "HIPAA baseline starter controls for PHI handling, disclaimers, and review."
policies:
chain:
- "prompt-injection"
- "rbac"
- "hipaa-phi-detector"
- "pii-detector"
- "dlp-filter"
- "healthcare-compliance"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID", "X-User-Role"]
hipaa-phi-detector:
mode: hipaa_18
action: redact
pii-detector:
healthcare_mode: true
action: redact
detect_patterns: [ "(?i)(?:mrn|mr#|medical\\s+record)\\s*(?:#|:|number)?\\s*[:#-]?\\s*[A-Z0-9-]{6,12}", "(?i)(?:patient\\s*id|patient\\s*#|pt\\s*id)\\s*[:#-]?\\s*[A-Z0-9-]{6,16}", "(?i)(?:insurance|member|policy)\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{6,20}"]
dlp-filter:
blocked_terms: ["export all patients", "download patient database", "list all records"]
action: block
healthcare-compliance:
blocked_patterns: ["diagnosis:", "prescribe", "you likely have"]
required_disclaimers: ["This is not medical advice", "Consult your healthcare provider"]
fda_class: "II"
quality-scorer:
thresholds:
min_aggregate: 0.85
min_accuracy: 0.90
human-oversight:
action: escalate
audit-logger: {}