FedRAMP Moderate
Map the FedRAMP Moderate baseline to access, monitoring, remediation, audit and system-protection controls.
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-PIV-Auth headers | Block |
| pii-detector | Request | 3 custom identifier patterns | Redact |
| dlp-filter | Request | 4 blocked terms such as “FOUO” and “CUI” | Block |
| agent-firewall | Both | Allows 2 tools; denies 3 tools; at most 3 actions per session | 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_fedramp_baseline"
name: "fedramp-baseline"
version: "0.1.0"
enabled: true
author: "verdictan"
description: "FedRAMP baseline starter for PIV-gated access, CUI blocking, and accountable review."
policies:
chain:
- "prompt-injection"
- "rbac"
- "pii-detector"
- "dlp-filter"
- "agent-firewall"
- "quality-scorer"
- "human-oversight"
- "audit-logger"
policy:
prompt-injection: {}
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID", "X-PIV-Auth"]
pii-detector:
action: redact
detect_patterns: [ "(?i)(?:case|docket|matter)\\s*(?:#|number|no\\.)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}", "(?i)(?:tax\\s*(?:id|identification)|ein|tin)\\s*[:#-]?\\s*\\d{2}-?\\d{7}", "(?i)\\bfoia\\s+request\\s*(?:id|#|number)?\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"]
dlp-filter:
blocked_terms: ["FOUO", "CUI", "SBU", "law enforcement sensitive"]
action: block
agent-firewall:
allowed_tools: ["document_search", "regulation_lookup"]
blocked_tools: ["shell", "network_scan", "file_upload_external"]
max_actions_per_session: 3
quality-scorer:
thresholds:
min_aggregate: 0.85
min_accuracy: 0.85
human-oversight:
action: escalate
audit-logger: {}