slv-firewall

slv-firewall is a skill for Claude Code, Codex from ValidatorsDAO/slv. It costs 0 tokens per session (1,066 once invoked), scanned C, original, Apache-2.0.

A guided setup for securing a server's network perimeter with nftables, a Linux firewall, fail2ban, which blocks repeated login attacks, and SSH keys instead of passwords.

In plain words
What is it for?
Use it to set a default-block firewall, protect SSH from repeated attacks, turn off SSH password login, and allow only selected network access.
Why use it?
It reduces exposure to unwanted network access and brute-force SSH attempts without requiring manual file editing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set a default-block firewall, protect SSH from repeated attacks, turn off SSH password login, and allow only selected network access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/validatorsdao/slv/slv-firewall
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 ValidatorsDAO/slv --skill slv-firewall
Clone the repo
git clone --depth 1 https://github.com/ValidatorsDAO/slv

Made for: Claude Code, Codex.

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 slv-firewall

README.md
[![agentmods](https://agentmods.dev/badge/skills/validatorsdao/slv/slv-firewall/github.svg)](https://agentmods.dev/skills/validatorsdao/slv/slv-firewall)
Your own site
<a href="https://agentmods.dev/skills/validatorsdao/slv/slv-firewall"><img src="https://agentmods.dev/badge/skills/validatorsdao/slv/slv-firewall/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 slv-firewall

Your own site · 80×15
<a href="https://agentmods.dev/skills/validatorsdao/slv/slv-firewall"><img src="https://agentmods.dev/badge/skills/validatorsdao/slv/slv-firewall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,066 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.01066
Opus 5.5 $0.00000 $0.00426
Sonnet 5.5 $0.00000 $0.00213
Haiku 4.5 $0.00000 $0.00107

Measured 1mo ago against content hash 67681056fa08, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

slv-firewall scanned grade C with 3 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 1mo 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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

`systemctl is-active fail2ban` must run on that confirmed target. Do not dump secret-bearing configuration files. Inspect account inventory only when needed

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Read-only probes such as `ss -lntup`, `sudo nft list ruleset`, and

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

`~/.ssh/authorized_keys`, so verify both the execution host and intended login

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

oss-skills/slv-firewall/SKILL.md · 101 lines

How it starts

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

SLV Firewall Skill

Use this skill when the user asks to inspect or change firewall/SSH access. Start with the requested task; do not turn ordinary chat into unsolicited hardening.

Identify the machine and preserve access

slv install firewall changes the machine running SLV, through a local playbook. It has no inventory or remote-host option. A command on the management laptop does not configure a remote validator.

Before proposing changes, establish:

  1. The target machine, its role (management host, VPN endpoint, validator, RPC or application server), and whether SLV is running there.
  2. Its existing firewall, listening services and required ports, including the actual SSH port, validator gossip/TPU/dynamic ports, RPC/gRPC, monitoring, container networking and any VPN forwarding.
  3. A verified SSH session and a recovery route such as the provider console. Keep a second working session open during approved changes.

Read-only probes such as ss -lntup, sudo nft list ruleset, and systemctl is-active fail2ban must run on that confirmed target. Do not dump secret-bearing configuration files. Inspect account inventory only when needed to resolve the requested target; do not automatically whitelist every server the account owns.

Understand the baseline before installing

The current baseline is for a simple management/development host. It writes /etc/nftables.conf and uses flush ruleset, replacing existing firewall rules. Rerunning with different allowed IPs replaces that list; manual rules are not preserved. Defaults are:

  • Loopback, established/related traffic, ICMP and ICMPv6 accepted.
  • TCP 22, 80 and 443 open to all sources.
  • UDP 51820 open for WireGuard.
  • Sources in 10.0.0.0/24 and explicitly allowed IPv4 addresses accepted on all ports. These source rules do not authenticate a WireGuard handshake themselves.
  • Other inbound traffic dropped; forwarding and outgoing traffic accepted.
  • fail2ban monitors SSH: five failures in ten minutes can cause a one-hour ban.

Read the full file on GitHub · 101 lines

Files

What ships with it

1 file 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. 1mo ago Changed · -122 lines scan D → C 67681056fa08
  2. 3mo ago First seen · 223 lines · 0 tokens per session scan D 084d14df4e7a

Subscribe to this mod's changes

slv-firewall is a skill published in the GitHub repository ValidatorsDAO/slv (95 stars, last pushed 11d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,066 tokens. A static security scan graded it C with 3 findings (harvests environment variables, asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

slv-firewall compared with skills from other repositories

slv-firewall next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
slv-firewallValidatorsDAO/slvSkill9511d agoApache-2.0C0Claude Code, Codex
alchemy-agentic-gatewaymoonpay/skillsSkill1121mo agoMITA101Claude Code
alchemy-apimoonpay/skillsSkill1121mo agoMITA100Claude Code
stellar-forgerylsherdamz-rgb/stellar-forgeSkill179d agoMITA82Claude Code
stellar-mcprylsherdamz-rgb/stellar-forgeSkill179d agoMITA61Claude Code
rpcedgerpc-edge/rpcedge-toolkitSkill11mo agoMITA76Claude Code
solana-devStarchild-ai-agent/official-skillsSkill344d agononeA57Claude Code