Security Architecture
profClaw is designed with a defense-in-depth model. Security is enforced at multiple independent layers - a failure in one layer does not compromise the system.Security Components
Security Modes
Five modes from
deny (no tools) to full (unrestricted). Configured per channel, user, or globally.Guards
FsGuard (path traversal), SsrfGuard (SSRF/network), PromptGuard (injection), AuditScanner.
Audit Logging
Immutable audit trail of all tool calls, approvals, and security events.
Device Pairing
QR code pairing and DM verification for unknown senders.
Plugin Sandbox
Permission model for plugins, static code scanning, and trust tiers.
Security Modes
profClaw supports five security modes. The active mode applies globally but can be overridden per user or per chat channel.
Configure globally or per-channel:
Risk Levels
All security events are classified by a numeric risk score. Scores are computed by the PromptGuard and AuditScanner based on detected patterns.Default Security Configuration
Out of the box, profClaw runs instandard mode. These are the defaults applied when no security: block is present in settings.yml:
Security Responsibilities
Hardening Checklist
For production deployments
For production deployments
- Set
security.modetoaskorstrict - Set
WEBHOOK_BASE_URLto your actual domain (not localhost) - Restrict chat channels with
allowedChannelsandallowedUsers - Set
ssrfGuard.allowedHostsexplicitly if the agent needs to call internal APIs - Enable device pairing for unknown sender verification
- Review audit logs regularly with
profclaw logs --audit
For local development
For local development
standardmode is safe and is the recommended default even locallyfullmode is only appropriate for solo developer machines with no external access- Run
profclaw doctor --securityto verify your configuration