firewall-auditor

firewall-auditor is a skill for Claude Code from sirkirby/unifi-mcp. It costs 46 tokens per session (2,648 once invoked), scanned A, original, MIT.

An auditor for UniFi firewall policies, which control what network traffic is allowed or blocked. It checks the policies for conflicts, duplicates, security gaps, and recommended practices.

In plain words
What is it for?
Reviewing UniFi firewall rules and zones, gathering configuration data, evaluating findings against a rubric, and producing a deterministic audit score.
Why use it?
It turns a firewall configuration into a prioritized review so risky or unnecessary rules are easier to find.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unifi-network plugin — 6 skills shipped together

Good fit Reviewing UniFi firewall rules and zones, gathering configuration data, evaluating findings against a rubric, and producing a deterministic audit score.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sirkirby/unifi-mcp/firewall-auditor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sirkirby/unifi-mcp --skill firewall-auditor
Clone the repo
git clone --depth 1 https://github.com/sirkirby/unifi-mcp

Made for: Claude Code.

Or install unifi-network, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firewall-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/sirkirby/unifi-mcp/firewall-auditor/github.svg)](https://agentmods.dev/skills/sirkirby/unifi-mcp/firewall-auditor)
Your own site
<a href="https://agentmods.dev/skills/sirkirby/unifi-mcp/firewall-auditor"><img src="https://agentmods.dev/badge/skills/sirkirby/unifi-mcp/firewall-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for firewall-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/sirkirby/unifi-mcp/firewall-auditor"><img src="https://agentmods.dev/badge/skills/sirkirby/unifi-mcp/firewall-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02648
Opus 5 $0.00023 $0.01324
Sonnet 5 $0.00009 $0.00530
Haiku 4.5 $0.00005 $0.00265

Measured 11d ago against content hash c475da74db06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

firewall-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/unifi-network/skills/firewall-auditor/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Firewall Policy Auditor

You audit the firewall configuration on a UniFi network. Your job is to dispatch the right MCP tool calls, evaluate the results against a documented rubric, score the audit deterministically, and present prioritised findings.

The work is split between you and one tiny CLI:

  • You gather data via the unifi-network MCP tools, evaluate each benchmark, and write findings.
  • scripts/unifi-firewall-score turns those findings into the canonical score. This is the only deterministic boundary — running it on the same findings always produces the same score, which is what makes audit history meaningful.

There is no Python script doing the audit for you. There is no HTTP sidecar. You drive the audit; the CLI does the math.


Required MCP Server

This skill requires the unifi-network MCP server. If unifi_tool_index is unavailable, stop and direct the user to the unifi-network-setup skill.


Procedure

1. Gather data in parallel

Dispatch these tool calls in a single batch (multiple tool uses in one assistant turn — they are independent and you should not serialise them):

  • unifi_list_firewall_policies
  • unifi_list_firewall_zones
  • unifi_list_legacy_firewall_rules
  • unifi_list_networks
  • unifi_list_firewall_groups
  • unifi_list_devices
  • unifi_get_dpi_stats (optional but useful for HYG-05 / EGR-03 context)

If a tool returns success=false, stop the audit and surface the error. Do not partial-report.

For richer per-policy detail (needed by HYG-02 conflict detection and HYG-05 shadowing), follow up with unifi_get_firewall_policy_details for each policy returned by unifi_list_firewall_policies. Batch these calls in parallel as well.

1a. Determine which firewall engine the site runs

Do this before evaluating any benchmark. UniFi has two firewall engines and a site runs exactly one:

Signal Engine
unifi_list_firewall_policies and unifi_list_firewall_zones return entries zone-based (V2, UniFi Network 9.0+ after migration)
Both return zero entries and unifi_list_legacy_firewall_rules returns entries legacy (pre-zone-based)
All three return zero entries indeterminate — see below

Read the full file on GitHub · 216 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 216 lines · 46 tokens per session scan A c475da74db06

Subscribe to this mod's changes

firewall-auditor is a skill published in the GitHub repository sirkirby/unifi-mcp (803 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 2,648 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

streamdeck-designer

Design, theme, and author complete Stream Deck layouts for the user's hardware using the streamdeck-mcp tools. Use whenever the user wants a custom Stream Deck setup, asks for a themed deck (e.g. "hello-kitty Twitch deck", "retrowave music controls", "a dev deck for this repo"), wants buttons or dials configured for…

verygoodplugins/streamdeck-mcp · 167 tokens

streamdeck-profile

Use this skill when you need to configure Elgato Stream Deck desktop profiles without taking USB control of the hardware.

verygoodplugins/streamdeck-mcp · 0 tokens

unifi-udm-pro-mcp

UniFi UDM Pro MCP Server for managing networks, connected clients, Wi-Fi settings, and device health via Model Context Protocol.

rodolfoconcepcion/unifi-udm-pro-mcp · 35 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

specflow-use

To connect Rosetta with Grid Dynamics SpecFlow MCP; only when SpecFlow is mentioned and the MCP is installed.

griddynamics/rosetta · 27 tokens

ue-mcp-epic-routing

Use when deciding between ue-mcp's native category actions and Epic's wrapped ToolsetRegistry tools (the epic actions, incl. the Blueprint graph DSL) for a task in Unreal. Pulls in when authoring Blueprint graph bodies, or any time both a native action and an epic action could do the job and you need to pick.

db-lyon/ue-mcp · 81 tokens