server-hardening

server-hardening is a skill for Claude Code, Codex from dolutech/dolu-agents-skills. It costs 35 tokens per session (3,450 once invoked), scanned B, original, MIT.

A security workflow for strengthening Linux servers using security checklists such as CIS Benchmarks. Server hardening means reducing unnecessary access, services, and weaknesses on a server.

In plain words
What is it for?
Use it to assess servers, configure firewalls and access controls, apply patches, reduce permissions, improve logging and monitoring, and establish security baselines.
Why use it?
It provides a structured way to improve a server's security and prepare for audits or incident response instead of relying on ad-hoc settings.

Skill for Claude CodeCodex

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

Good fit Use it to assess servers, configure firewalls and access controls, apply patches, reduce permissions, improve logging and monitoring, and establish security baselines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dolutech/dolu-agents-skills/server-hardening
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 dolutech/dolu-agents-skills --skill server-hardening
Clone the repo
git clone --depth 1 https://github.com/dolutech/dolu-agents-skills

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 server-hardening

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dolutech/dolu-agents-skills/server-hardening"><img src="https://agentmods.dev/badge/skills/dolutech/dolu-agents-skills/server-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,450 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00035 $0.03450
Opus 5 $0.00017 $0.01725
Sonnet 5 $0.00007 $0.00690
Haiku 4.5 $0.00003 $0.00345

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

Security

Grade B, and why

server-hardening scanned grade B with 2 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 10d 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.

getent group sudo # Installed packages

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.

-w /etc/shadow -p wa -k identity

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

skills/server-hardening/SKILL.md · 531 lines

How it starts

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

Server Hardening Skill

This skill provides comprehensive workflows, checklists, and automated scripts for hardening Linux servers according to industry best practices and CIS Benchmarks.

When to Use This Skill

Use this skill when:

  • Setting up new production servers
  • Improving security posture of existing servers
  • Implementing CIS Benchmark compliance
  • Preparing for security audits
  • Responding to security incidents
  • Establishing security baselines
  • Configuring security monitoring

Core Principles

1. Defense in Depth

Multiple layers of security:

  • Network security (firewall, IDS/IPS)
  • Host security (hardening, patching)
  • Application security (WAF, input validation)
  • Access control (authentication, authorization)
  • Monitoring (logging, alerting)

2. Principle of Least Privilege

Always apply:

  • Minimal user permissions
  • Minimal service permissions
  • Minimal network access
  • Minimal file system access

3. Zero Trust

Assume breach:

  • Never trust, always verify
  • Verify every request
  • Log every action
  • Monitor continuously

Hardening Workflow

Phase 1: Pre-Hardening Assessment

┌─────────────────────────────────────────────────────────────┐
│ Pre-Hardening Checklist                                     │
├─────────────────────────────────────────────────────────────┤
│ □ Document current configuration                            │
│ □ Create full system backup                                 │
│ □ Document running services                                 │
│ □ Document network connections                              │
│ □ Document user accounts                                    │
│ □ Identify compliance requirements                          │
│ □ Schedule maintenance window                               │
│ □ Prepare rollback plan                                     │
└─────────────────────────────────────────────────────────────┘

Phase 2: Security Baseline

Establish baseline before hardening:

#!/bin/bash
# Security baseline assessment

# System information
echo "=== System Information ==="
uname -a
hostnamectl
cat /etc/os-release

# Running services
echo -e "\n=== Running Services ==="
systemctl list-units --type=service --state=running

# Open ports
echo -e "\n=== Open Ports ==="
ss -tulpn

# User accounts
echo -e "\n=== User Accounts ==="
cat /etc/passwd | grep -v nologin

# Sudo users
echo -e "\n=== Sudo Users ==="
getent group sudo

# Installed packages
echo -e "\n=== Security Packages ==="
dpkg -l | grep -E "(fail2ban|ufw|rkhunter|chkrootkit)" || echo "Not installed"

# Last logins
echo -e "\n=== Last Logins ==="
last -10

# Failed logins
echo -e "\n=== Failed Logins ==="
grep "Failed password" /var/log/auth.log | tail -10 || echo "No failed logins"

# Disk usage
echo -e "\n=== Disk Usage ==="
df -h

# Pending updates
echo -e "\n=== Pending Updates ==="
apt list --upgradable 2>/dev/null | head -20 || yum check-update

Read the full file on GitHub · 531 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. 10d ago First seen · 531 lines · 35 tokens per session scan B 65fa4cce5fca

Subscribe to this mod's changes

server-hardening is a skill published in the GitHub repository dolutech/dolu-agents-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 3,450 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (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-31.

Related

Other skills, from other repositories