Quick Start
How It Works
is_protected(abs_path) and get_protection_reason(abs_path) from praisonai.security.protected guard file-modifying tools.
Protected targets include:
- Environment files (
.env,.env.local, …) - Git internals (
.git/) - SSH keys (
~/.ssh/,id_rsa, …) - AWS credentials (
~/.aws/) - Boot/system paths (
/etc/passwd,/boot/) - Core SDK (
praisonaiagents/) - Audit log (
audit.jsonl)
Tools That Enforce Protection
| Tool | Enforces is_protected() |
|---|---|
write_file | Yes |
append_to_file | Yes (PR #2062) |
search_replace | Yes (PR #2062) |
apply_diff | Yes |
Inspecting Protection
Related
Security Overview
Full security feature matrix
Shell Tools
Dangerous command protection

