Chapeta blocks dangerous Bash command patterns before execution. Fork bombs, raw device writes, destructive filesystem operations, remote-code pipe-to-shell patterns, credential exposure patterns, and system modification commands are rejected in every approval mode.
How It Works
- Before any command is sent to the shell, Chapeta checks it against the blocked command groups.
- Fork bombs, infinite background loops, and raw device writes are rejected in every mode.
- Destructive filesystem ops, remote code execution, credential exposure patterns, and system modification commands are rejected in every mode.
- The AI receives an error message explaining why the command was blocked.
- The AI must find an alternative approach that does not use blocked patterns.
Benefits
- Prevents the most catastrophic possible commands.
- Works in every approval mode, including Never.
- Hardcoded in the app binary. Cannot be circumvented by prompt injection.
- Covers destructive shell patterns before they ever run.
Tradeoffs
- Some legitimate commands may match blocked patterns.
- The blocklist is not configurable. You cannot add or remove patterns.
- Pattern matching is not a complete security solution. Novel attack vectors may not be covered.
FAQ
More Safety Features
Always Mode
Confirm every tool action before it runs.
Edits Only Mode
Reads run automatically. Mutating actions require confirmation.
Smart Mode
AI-assisted approval for mutating tool calls.