CB linux-firewall-hardening
Safe Linux firewall hardening with backend detection, idempotent atomic rules, rollback protection, and AI-executable state-machine workflows. Covers ufw, firewalld, nftables, iptables, Docker, Kubernetes CNI awareness, and fail2ban with compliance mapping to CIS/PCI-DSS/SOC2.
As a process B 70/100 · Nearly there — weak spots: result and completion, when it triggers
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 17
✓ No critical or high findings
Medium and low: 17
-
medium Dangerous commands
cmd-disable-securityreferences/recovery.md:14Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy) (documentation of a security skill)sudo ufw reset && sudo ufw disable
security skill -
medium Dangerous commands
cmd-disable-securityreferences/recovery.md:18Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy) (documentation of a security skill)sudo iptables -P INPUT ACCEPT; sudo iptables -F
security skill -
medium Dangerous commands
cmd-disable-securityreferences/recovery.md:21Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy) (documentation of a security skill)sudo ufw disable
security skill -
medium Dangerous commands
cmd-persistencescripts/audit-firewall.sh:139Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)elif [[ -f /etc/cron.d/ansible-pull ]] || (crontab -l 2>/dev/null | grep -qi ansible); then
security skill -
medium Dangerous commands
cmd-disable-securitySKILL.md:248Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy) (documentation of a security skill)systemctl is-active ufw &>/dev/null && sudo ufw disable
security skill -
low Dangerous commands
cmd-privilegereferences/backend-nftables.md:27Privilege escalation / world-writable permissions (documentation of a security skill)sudo tee /etc/nftables.conf.new << 'EOF'
security skill -
low Dangerous commands
cmd-privilegereferences/backend-nftables.md:86Privilege escalation / world-writable permissions (documentation of a security skill)sudo mv /etc/nftables.conf.new /etc/nftables.conf
security skill -
low Dangerous commands
cmd-background-processreferences/backend-nftables.md:89Starts a background / autostarted process (documentation of a security skill)sudo systemctl enable nftables
security skill -
low Dangerous commands
cmd-privilegereferences/observability.md:72Privilege escalation / world-writable permissions (documentation of a security skill)sudo tee -a /etc/sysctl.d/99-f…onf << 'EOF'
security skill -
low Dangerous commands
cmd-background-processreferences/security-profiles.md:100Starts a background / autostarted process (documentation of a security skill)sudo systemctl enable nftables
security skill -
low Dangerous commands
cmd-cron-mentionscripts/audit-firewall.sh:139Mentions editing / listing crontab (documentation of a security skill)elif [[ -f /etc/cron.d/ansible-pull ]] || (crontab -l 2>/dev/null | grep -qi ansible); then
security skill -
low Dangerous commands
cmd-disable-securitySKILL.md:59Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy) (negated — the text forbids it)2. **Never run `iptables -F` or `nft flush ruleset` without a verified backup.** Docker/K8s networking will break.
negated
A further 5 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 23. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
body-longSKILL.md body ≈ 6023 tokens (recommended < 5000); move details to references/ - note
frontmatter-keyunknown frontmatter key "title" - note
frontmatter-keyunknown frontmatter key "skill_version" - note
frontmatter-keyunknown frontmatter key "schema_version"
Process rating: all ten parameters 70/100
- 20When it triggers. No condition that starts the skill
- 40Result and completion. Does not say what the result is
- 60Tools and files. Uses tools (bash, node) that frontmatter does not declare
- 70Inputs and preconditions. Inputs and preconditions are listed
- 70Execution cost. Instruction body is 6023 tokens
- 100Steps. 82 steps
- 100Failures and branches. 4 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Running it twice. Mutating operations check current state
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 16 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -4Absolute local paths (C:\Users, /home/…): not portable
- -217 emoji in the instructions: noise for the model
- +2Single-language instructions
- +3Description length 277: enough signal without eating the budget
- +4Structure: 33 headings
- +3Step-by-step instructions: 82 items
- +4Has examples (15 code blocks)
- +4Reference files are cited in the instructions (13 of 14)
- +3All 6 scripts are documented
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 73.