Back to Home
waleedkhanbaloch icon

claude-code-safety-net

Verified Safe

by waleedkhanbaloch

Overview

The application acts as a safety shield for AI coding agents, preventing the execution of harmful Git and filesystem commands to protect user data and systems.

Installation

Run Command
npx -y cc-safety-net --claude-code

Environment Variables

  • SAFETY_NET_STRICT
  • SAFETY_NET_PARANOID
  • SAFETY_NET_PARANOID_RM
  • SAFETY_NET_PARANOID_INTERPRETERS

Security Notes

The project is explicitly designed for security, implementing defense-in-depth measures such as strict and paranoid modes, recursive command analysis for nested shell calls (e.g., `bash -c`), detection of dangerous interpreter one-liners, and audit logging with secret redaction. Input parsing for hooks uses `JSON.parse` and tokenization relies on `shell-quote`, which is used with precautions (e.g., `ENV_PROXY` to prevent premature variable expansion). Path sanitization is performed for audit log filenames. While shell parsing is inherently complex and can hide subtle bypasses, the comprehensive set of rules and defensive coding practices indicate a strong focus on safety. The plugin operates locally and does not introduce external network risks during command analysis.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2026-01-19

Tags

SecurityCommand BlockerGitFilesystemCoding Agents