server-audit

A Linux server security-audit skill that checks remote access, firewalls, open ports, users, permissions, and exposed services.

In plain words
What is it for?
Use it to review SSH settings, inspect listening ports, check firewall rules, count failed logins, identify users who can log in, and produce severity-rated hardening recommendations.
Why use it?
It helps reveal unnecessary access and weak server settings before they become security problems.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/firstp1ck/pi-coding-agent-forge/server-audit
Any agent
npx skills add Firstp1ck/pi-coding-agent-forge --skill server-audit
Clone the repo
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge

Made for: Claude Code, Codex.

Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,641 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00048 $0.01641
Opus 5 $0.00024 $0.00821
Sonnet 5 $0.00010 $0.00328
Haiku 4.5 $0.00005 $0.00164

Measured 2d ago against content hash 7b66df363c7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

server-audit scanned grade A with 1 finding 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 2d 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.

Asks for rootlowPrivilege escalation

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

sudo ufw status verbose # Ubuntu/Debian

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

pi-skill-server-audit/skills/server-audit/SKILL.md · 260 lines

How it starts

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

Server Audit

Security auditing and hardening for Linux systems. Covers SSH, firewalls, ports, users, and general hardening.

Quick Start

Run a Quick Security Audit

Check the essentials in order:

# 1. Open ports
ss -tlnp

# 2. SSH config
grep -E "^(PasswordAuthentication|PermitRootLogin|PubkeyAuthentication)" /etc/ssh/sshd_config

# 3. Firewall status
sudo ufw status verbose   # Ubuntu/Debian
sudo firewall-cmd --list-all  # RHEL/Arch (firewalld)
sudo iptables -L -n        # Raw iptables

# 4. Failed login attempts (last 24h)
journalctl -u sshd --since "24 hours ago" | grep -c "Failed password"

# 5. Users with login shells
grep -v "nologin\|false" /etc/passwd | cut -d: -f1

SSH Hardening

Audit Checklist

Check Command Expected Severity
Root login disabled grep PermitRootLogin /etc/ssh/sshd_config no Critical
Password auth disabled grep PasswordAuthentication /etc/ssh/sshd_config no High
Key auth enabled grep PubkeyAuthentication /etc/ssh/sshd_config yes High
Non-standard port grep "^Port" /etc/ssh/sshd_config Not 22 (optional) Medium
Max auth tries grep MaxAuthTries /etc/ssh/sshd_config 3 or less Medium
Idle timeout grep ClientAliveInterval /etc/ssh/sshd_config Set (e.g., 300) Low
Protocol 2 only grep Protocol /etc/ssh/sshd_config 2 (default in modern) Low
Allowed users set grep AllowUsers /etc/ssh/sshd_config Specific users listed Medium

Recommended SSH Config

# /etc/ssh/sshd_config — hardened
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
MaxAuthTries 3
ClientAliveInterval 300
ClientAliveCountMax 2
X11Forwarding no
AllowTcpForwarding no

After SSH Changes

# Validate config before restarting
sudo sshd -t

# Restart SSH
sudo systemctl restart sshd

Firewall Audit

UFW (Ubuntu/Debian)

# Status
sudo ufw status verbose

# List rules with numbers
sudo ufw status numbered

# Check default policies
sudo ufw show raw | head -20

Read the full file on GitHub · 260 lines

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. 2d ago First seen · 260 lines · 48 tokens per session scan A 7b66df363c7d

Subscribe to this mod's changes

server-audit is a skill published in the GitHub repository Firstp1ck/pi-coding-agent-forge (74 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 1,641 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.