cc-safety-net tested to block destructive commands and key reads
The open-source tool cc-safety-net parses commands locally before a coding agent executes them, blocking destructive operations and reads of key files; its judgment process does not call a model, and it has been integrated into the tool-call hooks of 16 coding CLIs including Claude Code. Jumang Security Lab tested ten groups of commands: git reset --hard, reading SSH private keys, and curl pipe execution were all blocked; git push --force was blocked while --force-with-lease was allowed. Policies come in three levels—standard, strict, and paranoid; 10 catastrophic rules cannot be disabled at any level, and key protection is in effect at all levels, covering .env, SSH private keys, ~/.aws, and others. The tool's self-described boundaries include: it is not a sandbox, it does not read inside scripts, flock wrappers are not expanded, and it allows execution when some hosts crash; its threat model is a well-intentioned but error-prone agent, not a malicious attacker.