cc-safety-net tested to block destructive commands and key reads
Start here
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.
Generated by AI from reports · Updated 2 days ago
Attention and developments
Attention, hourly
Now 40, -2% in 24 hours·Peak 44 (Nov 27 20:00)
Progress timeline
- WeChat · Goumang Security LabSelectedcc-safety-net hands-on test: blocks rm -rf, stops .env reads, a 2107-star open-source coding agent safety gate
The Jumang Security Lab tested the open-source tool cc-safety-net hands-on: it locally parses coding agents' commands before execution, intercepts destructive operations and reads of key files, and makes judgments without calling a model. The tool plugs into the tool-call hooks of 16 coding CLIs including Claude Code. The author tested ten sets of commands; git reset --hard, cat ~/.ssh/id_rsa, and curl piped execution were all blocked, and git push --force was blocked while --force-with-lease was allowed. Policies come in three levels—standard, strict, and paranoid—and the 10 catastrophic rules cannot be turned off at any level; key protection is active at every level, covering .env, SSH private keys, ~/.aws, and more. The article also sorts through the ten boundaries the tool itself acknowledges: it is not a sandbox, it does not read inside scripts, flock wrappers are not expanded, and it allows execution when some hosts crash; the threat model is a well-intentioned but error-prone agent, not a malicious attacker.
Related discussion
Attention trend
New sources per day
- Nov 27: 2 new sources (2 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)