Presets¶
PolicyShield includes four built-in presets for common use cases.
Minimal¶
Basic rules for getting started. Includes soft-blocking shell execution.
Security¶
Production-ready security rules including:
- Block destructive shell commands
- Block PII in web requests
- Block writes outside workspace
- Approve network downloads
Compliance¶
Compliance-focused rules including:
- Redact PII in all tool calls
- Require approval for delete operations
- Rate-limit API calls
- Audit all shell commands
Secure¶
The recommended preset for maximum security. Uses default_verdict: BLOCK with an explicit whitelist, so unknown tools are blocked by default. Includes:
- Default verdict: BLOCK (fail-closed)
- All 5 built-in detectors enabled (path traversal, shell injection, SQL injection, SSRF, URL schemes)
- Whitelist for safe tools (search, read_file, list_dir)
- APPROVE verdict for dangerous tools (write_file, execute, send_email)
- PII scanning enabled
OpenClaw¶
Rules specifically designed for OpenClaw integration. Includes 11 rules covering:
- Block destructive shell commands (
rm -rf,mkfs, etc.) - Redact PII in web requests, messages, and search
- Block access to sensitive paths (
/etc/shadow, SSH keys) - Approve file deletion operations
- Rate-limit exec tool (60 calls per session)
- Rate-limit web fetch (10 calls per minute)
- Block subdomain enumeration
Custom presets¶
Create your own rules by editing the generated policies/rules.yaml: