Law Enforcement
Protect criminal justice records, constrain tools, flag bias risks and require human review in investigative workflows.
What it checks
| Policy | On | Checks | Action |
|---|---|---|---|
| prompt-injection | Request | Similarity threshold 0.79 | Block |
| cjis-mode | Request | Multi-factor identity; sessions up to 30 minutes | Block |
| rbac | Request | Requires the X-User-ID, X-Org-ID, X-Badge-ID and X-Clearance-Level headers | Block |
| pii-detector | Request | 8 custom identifier patterns | Redact |
| dlp-filter | Request | 7 blocked terms such as “confidential_informant” and “undercover_operation”; 3 custom patterns | Block |
| bias-monitor | Response | Bias score threshold 0.75 | Escalate |
| safety-filter | Request | Built-in law enforcement patterns; 5 extra blocked phrases such as “plant_evidence” and “fabricate_report” | Block |
| agent-firewall | Both | Allows 3 tools; denies 4 tools | Block |
| bot-detector | Request | More than 6 similar requests in 300 seconds; similarity ≥ 0.88 | Block |
| citation-verifier | Response | Requires cited sources; confidence ≥ 0.90 | Flag |
| quality-scorer | Response | Accuracy ≥ 0.90; relevancy ≥ 0.86; combined score ≥ 0.85; legal profile | Block |
| audit-logger | Request | Adds an allow-only audit marker to the decision | Record |
Policy YAML
pack:
id: "cfg_demo_law_enforcement"
name: "demo-law-enforcement"
version: "0.1.0"
enabled: true
author: "local"
description: "law-enforcement demo"
distributed_rate_limit:
backend: valkey
url_env: VERDICTAN_REDIS_URL
history:
capture:
enabled: true
mode: redacted
policies:
chain: ["prompt-injection", "cjis-mode", "rbac", "pii-detector", "dlp-filter", "bias-monitor", "safety-filter", "agent-firewall", "bot-detector", "citation-verifier", "quality-scorer", "audit-logger"]
policy:
prompt-injection:
embedding_threshold: 0.79
response:
action: block
# CJIS Security Policy: authenticated access, short sessions, and durable logging.
cjis-mode:
require_auth: true
access_logging: true
session_timeout_minutes: 30
required_assurance: multi_factor
# Badge and clearance context must be present before sensitive operations proceed.
rbac:
deny_if_missing: ["X-User-ID", "X-Org-ID", "X-Badge-ID", "X-Clearance-Level"]
pii-detector:
detect_patterns:
- "(?i)(?:case|docket|matter)\\s*(?:#|number|no\\.)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
- "(?i)\\bincident\\s+report\\s*(?:id|#|number)?\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
- "(?i)\\bvictim\\s+(?:information|details|identity)\\b"
- "(?i)\\bwitness\\s+(?:information|details|statement)\\b"
- "(?i)\\binformant\\s*(?:id|#|number)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
- "(?i)\\bwarrant\\s*(?:#|number|no\\.)\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
- "(?i)\\bofficer\\s+(?:notes|report|statement)\\b"
- "(?i)(?:body\\s*cam|bodycam|axons?)\\s*(?:id|#|serial)?\\s*[:#-]?\\s*[A-Z0-9-]{4,20}"
action: redact
# 4th Amendment / Brady-sensitive records should never be bulk exposed or reused casually.
dlp-filter:
blocked_terms:
- "confidential_informant"
- "undercover_operation"
- "ongoing_investigation"
- "sealed_warrant"
- "grand_jury_material"
- "witness_protection"
- "surveillance_target"
detect_patterns:
- "(?i)\\bevidence\\s+(?:locker|vault|room)\\b"
- "(?i)\\bchain\\s+of\\s+custody\\b"
- "(?i)\\bforensic\\s+(?:report|analysis|findings)\\b"
action: block
# Lower threshold to catch disparate-policing risk before action is taken.
bias-monitor:
threshold: 0.75
safety-filter:
mode: law_enforcement
block_if:
- "plant_evidence"
- "fabricate_report"
- "use_excessive_force"
- "entrapment"
- "coerce_confession"
action: block
agent-firewall:
allowed_tools: ["case_search", "statute_lookup", "warrant_status"]
blocked_tools: ["surveillance_access", "wiretap_control", "facial_recognition", "location_tracking"]
bot-detector:
fingerprint_fields: ["user-agent", "x-forwarded-for", "authorization", "body"]
profile_window_seconds: 300
similarity_threshold: 0.88
max_requests_per_window: 6
action: block
citation-verifier:
require_sources: true
min_confidence: 0.90
quality-scorer:
industry: legal
thresholds: { min_aggregate: 0.85, min_accuracy: 0.90, min_relevancy: 0.86 }
audit-logger: {}