unitoneai/securityskills/firewall-review
Claude Code and agent skill by unitoneai/securityskills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Performs a structured firewall rule base audit against CIS Controls v8 (Controls 4.4 and 4.5) and NIST SP 800-41 Rev 1 (Guidelines on Firewalls and Firewall Policy). Auto-invoked when reviewing firewall configurations, ACLs, or network security policies. Produces a prioritized findings report covering overly permissive rules, shadowed rules, logging gaps, and egress filtering deficiencies.
Install
npx vskill@latest install unitoneai/securityskills/firewall-reviewSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as unitoneai/securityskills/firewall-review.
Firewall Rule Audit
A structured, repeatable process for auditing firewall rule bases against CIS Controls v8 (Control 4.4 -- Implement and Manage a Firewall on Servers, Control 4.5 -- Implement and Manage a Firewall on End-User Devices) and NIST SP 800-41 Rev 1 (Guidelines on Firewalls and Firewall Policy). This skill produces findings with traceable control references, severity ratings, and actionable remediation guidance.
When to Use
If a target is provided via arguments, focus the review on: $ARGUMENTS
- Periodic firewall rule base reviews (quarterly or after major changes).
- Compliance audits requiring CIS Controls v8 or NIST SP 800-41 alignment.
- Incident response when lateral movement or exfiltration is suspected.
- Pre-deployment review of new firewall rule sets or policy changes.
- Network architecture reviews that include perimeter or internal segmentation firewalls.
Context
Firewall rule bases accumulate technical debt rapidly. Rules added during incidents are rarely removed. Temporary permits become permanent. Shadowed rules create a false sense of coverage. NIST SP 800-41 Rev 1 Section 4.2 explicitly states that firewall policies should be reviewed regularly and that rule bases should enforce a default-deny posture. CIS Controls v8 Control 4.4 requires that firewalls on servers restrict inbound traffic to only necessary services, and Control 4.5 extends this to end-user devices. This skill operationalizes those requirements into a repeatable audit process.
Process
Step 1: Discovery -- Locate Firewall Configurations
Use Glob and Grep to locate firewall configuration files, ACL definitions, and network policy documents.
Patterns to search:
Record all discovered files. Categorize each by:
- Platform: iptables, nftables, pf, cloud security groups, Kubernetes NetworkPolicy, vendor-specific (Palo Alto, Fortinet, Cisco ASA).
- Direction: Perimeter (north-south) vs. internal (east-west).
- Scope: Server, endpoint, network segment.
Step 2: Rule Base Analysis -- NIST SP 800-41 Rev 1 Evaluation
NIST SP 800-41 Rev 1 Section 4 defines core firewall policy principles. Evaluate the rule base against each.
2.1 Default Deny Verification (NIST SP 800-41, Section 4.2)
The rule base MUST terminate with an explicit deny-all rule. Every traffic flow that is not explicitly permitted must be dropped.
What to verify:
- The last rule in every chain/policy is an explicit
deny allordrop all. - No implicit allow rules override the default deny (e.g., cloud security groups that default to allow outbound).
- Both inbound AND outbound directions enforce default deny.
Patterns to check:
Finding classification: Absence of explicit default deny is Critical.
2.2 Overly Permissive Rules -- Any/Any Detection (CIS Control 4.4, NIST SP 800-41 Section 4.2)
Rules that permit any source to any destination on any port violate the principle of least privilege.
Patterns to detect:
For each overly permissive rule, document:
- Rule number/position.
- Source, destination, port, and protocol.
- Whether the rule has a documented business justification (comment/description).
Finding classification: Any/any rules are Critical for inbound, High for outbound.
2.3 Shadowed Rules Analysis (NIST SP 800-41, Section 4.3)
A shadowed rule is one that can never match traffic because a more general rule above it matches first. Shadowed rules indicate rule base mismanagement and may mask security gaps.
Detection method:
- Parse rules in order.
- For each rule R at position N, check if any rule at position M (where M < N) matches a superset of R's traffic criteria.
- If R is more specific than an earlier rule M that already matches all of R's traffic, R is shadowed.
Common shadowed patterns:
Document each shadowed rule pair (shadowing rule + shadowed rule) with positions.
Finding classification: Shadowed deny rules are High (security control is ineffective). Shadowed permit rules are Medium (operational clarity issue).
2.4 Unused Rules Detection (CIS Control 4.4)
Rules with zero hit counts over an extended period (30+ days) indicate stale policy entries that should be removed to reduce attack surface.
What to check:
- Hit counters / match counters on each rule (available in most firewall platforms).
- Last-hit timestamps where available.
- Rules referencing decommissioned IP addresses, subnets, or services.
- Rules with comments referencing past projects or temporary access.
Finding classification: Unused rules present for 90+ days are Medium. Rules referencing decommissioned resources are High (may indicate orphaned access paths).
2.5 Rule Ordering Review (NIST SP 800-41, Section 4.3)
Firewall rules are evaluated top-to-bottom (first match wins in most platforms). Incorrect ordering can lead to security bypasses.
Verify:
- Explicit deny rules for known malicious ranges appear before broad permit rules.
- Anti-spoofing rules (deny traffic from internal addresses arriving on external interfaces) are at the top of the inbound chain.
- Stealth rules (deny traffic destined to the firewall management interface from untrusted zones) are early in the rule base.
- Log-and-deny cleanup rules appear before the final implicit deny (to ensure dropped traffic is logged).
Finding classification: Missing anti-spoofing rules are High. Missing stealth rules are Medium.
2.6 Logging Gap Analysis (NIST SP 800-41, Section 5.1; CIS Control 4.4)
NIST SP 800-41 Section 5 states that firewall logging should capture denied traffic at minimum, and permitted traffic to sensitive zones where feasible.
What to verify:
- All deny rules have logging enabled.
- Permit rules for sensitive zones (DMZ ingress, database access, management plane) have logging enabled.
- Log destinations are configured and reachable (syslog server, SIEM).
- Log format includes: timestamp, source IP, destination IP, port, protocol, action, rule ID.
Patterns to check:
Finding classification: No logging on deny rules is High. No logging on permits to sensitive zones is Medium.
2.7 Egress Filtering (NIST SP 800-41, Section 4.2; CIS Control 4.4)
Egress filtering prevents compromised internal hosts from establishing unrestricted outbound connections, limiting data exfiltration and C2 communication.
What to verify:
- Outbound traffic is restricted to approved ports and protocols (not permit-all egress).
- DNS (UDP/TCP 53) is restricted to authorized internal resolvers only.
- Direct outbound SMTP (TCP 25) is restricted to authorized mail servers.
- Outbound HTTPS (TCP 443) is routed through a forward proxy where feasible.
- Uncommon outbound protocols (SSH 22, RDP 3389, ICMP) are restricted or denied by default.
- Outbound connections to known anonymization services (Tor exit nodes) are blocked.
Finding classification: Unrestricted outbound egress (allow all) is High. Missing DNS egress restriction is Medium.
Step 3: Compile Assessment Report
Produce the final report using the following structure.
Findings Classification
| Severity | Definition | |
|---|---|---|
| Critical | Missing default deny; any/any inbound rules. Immediate exploitation risk. | |
| High | Overly permissive outbound rules; shadowed deny rules; no logging on deny actions; missing anti-spoofing; unused rules to decommissioned resources. | |
| Medium | Shadowed permit rules; missing egress DNS restriction; unused rules (active resources); missing logging on sensitive permits; missing stealth rules. | |
| Low | Rule documentation gaps; suboptimal rule ordering with no current security impact; cosmetic rule base issues. |
Output Format
Framework Reference
CIS Controls v8
| Control | Title | Relevance | |
|---|---|---|---|
| 4.4 | Implement and Manage a Firewall on Servers | Inbound/outbound restriction, default deny, rule hygiene, logging | |
| 4.5 | Implement and Manage a Firewall on End-User Devices | Host-based firewall policy enforcement, default deny on endpoints | |
| 4.1 | Establish and Maintain a Secure Configuration Process | Applies to firewall configuration management and change control | |
| 8.5 | Collect Detailed Audit Logs | Firewall logging requirements for denied and permitted traffic |
NIST SP 800-41 Rev 1
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/network/firewall-review/SKILL.md
Popularity
- Repository stars
- 76
- Repository forks
- 133
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/unitoneai/securityskills/firewall-review)