Home / Claude Code mods / Security / mod-firewall

mod-firewall

mod-firewall is a Claude Code mod by bbarney7 that a firewall for Claude Code mods: watches what every other mod does (network, processes, secret files, env vars) and asks, blocks or logs.

Updated 2026-10-29

What is mod-firewall?

mod-firewall is a Claude Code mod by bbarney7 that a firewall for Claude Code mods: watches what every other mod does (network, processes, secret files, env vars) and asks, blocks or logs. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorbbarney7
Repositorybbarney7/claude-code-mods
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (84/100)
Rank#5,098 of 9,397 Claude Code mods; #584 in Security
LicenseMIT
Last commit2026-10-29
Hooks12 events
Seesonly the events it hooks
Draws onPane

Is mod-firewall safe to install?

mod-firewall scores 84/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.session.root
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install mod-firewall?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/bbarney7/claude-code-mods
    claude plugin validate ./claude-code-mods/plugins/mod-firewall
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add bbarney7/claude-code-mods && claude plugin install mod-firewall@claude-code-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs mod-firewall for you:

Install the "mod-firewall" Claude Code mod from https://github.com/bbarney7/claude-code-mods/tree/main/plugins/mod-firewall. Run claude plugin validate on it first and show me what it can access before you enable it.

More from bbarney7/claude-code-mods

This repository has 6 Claude Code mods on MCPMods.

  • cache-keeper: Keeps an idle session's prompt cache warm for as long as you choose, then compacts or hands off before it expires; holds (Low risk)
  • ctx-control: See and control the skills, tools, files, and other context sent with every message (Low risk)
  • effort-router: Sets the effort of each main-conversation turn from how demanding its prompt is, rated by Jev (through OpenRouter or Typ (High risk)
  • room: Codex, Cursor and a second Claude inside Claude Code: an agent room (one chat, @mentions, handoffs) plus one-shot review (High risk)
  • switchboard: See and message your other Claude Code and Codex sessions: who is working on what, direct messages, broadcast, handoffs, (Low risk)