All shelves / Mods / Safety
net-guard
By Singh-AP
net-guard is a Claude Code safety mod by Singh-AP.
Holds curl, wget, ssh, scp, git push, and WebFetch, even in bypass mode. Blocks paste sites and request catchers, and asks before data goes anywhere new.
Holds a command
Install
The marketplace name is awesome-claude-mods.
/plugin marketplace add Singh-AP/awesome-claude-mods /plugin install net-guard@awesome-claude-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 1.0.0
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-04
What it can reach
- Holds a command
Claude Code 2.1.287 or later. The mod is live once you run /reload-plugins or start a new session. It sits on every Bash and WebFetch call, subagents included, below the permission system, so it holds with --dangerously-skip-permissions. It reads curl, wget, httpie, nc, ssh, scp, rsync, git remotes, URLs in python -c and node -e, bash -c, $(…), and wrappers such as sudo, env, and xargs, and knows an upload from a read. Your deny list is always blocked and your allow list always allowed; then a built-in deny list blocks paste sites, file drops, request catchers, tunnels, OAST hosts, Discord webhooks, and the Telegram bot API. This machine, a built-in allow list of code hosts, package registries, and docs, hosts you allowed this session, and private networks pass, uploads to any other host ask, and the rest follows unknown, ask by default, for shell commands and fetchUnknown, allow by default, for WebFetch. A dialog offers Allow once, Allow the host this session, or Block, and with nobody to answer, as in -p, it blocks. /net-guard shows the policy, /net-guard check dry-runs a URL or command, /net-guard allow allows a host for the session, and /net-guard forget clears them. Set unknown, fetchUnknown, askUploads, allow, deny, useDefaultLists, and allowPrivate in /config.
The marketplace, Singh-AP's awesome-claude-mods, holds the 21 mods built there, bash-guard, file-guard, secret-shield among them, and 26 community and Anthropic mods pinned to a commit. This one installs on its own. Keeping data from leaving without you knowing is why this page files it under safety. guardrails-md, by berget-ai, sends each Bash command to a Berget AI scoring model and blocks it when the score says it destroys data, leaks a secret, or breaks your GUARDRAILS.md. secret-guard, by arasovic, hides API keys and private keys before the model or the transcript sees them, and blocks credential files and commands that print secrets. This one judges where a command sends data, from the command text, and never makes a network call itself. A host built at run time, such as curl with a variable, cannot be named, so it follows unknown; git push to a named remote is checked when the remote is added, not looked up; and DNS exfiltration, cloud CLIs, and package publishing are not covered. The README calls it a guard, not a firewall, and points to an egress-filtering proxy or a network-restricted sandbox for hard guarantees. Its plugin.json names awesome-claude-mods as its author, and Singh-AP owns the marketplace.
Demo

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold oneBashWebFetchcommand.runWhen you run its slash command/net-guard
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/net-guardWhat net-guard has allowed and blocked; /net-guard check <url or command>, allow <host>, forget
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- Singh-AP
- Category
- Safety
- Marketplace
- awesome-claude-mods
- Folder
- mods/safety/net-guard
- Version
- 1.0.0
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-04
- Language
- TypeScript
- Files
- 10