system-hardening

system-hardening is a skill for Claude Code, Codex from ogrodev/fsociety. It costs 262 tokens per session (1,499 once invoked), scanned B, original, MIT.

A guide to securing an operator computer or testing platform by reducing its attack surface and protecting its accounts, files, services, and network settings.

In plain words
What is it for?
It is for authorized security operations that need firewall rules, SSH hardening, kernel settings, access controls, service reduction, encrypted storage, and credential protection.
Why use it?
A compromised workstation can expose security tools, credentials, engagement data, and client systems.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the trenton plugin — 5 skills, 12 commands, 2 agents shipped together

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/ogrodev/fsociety/system-hardening
Any agent
npx skills add ogrodev/fsociety --skill system-hardening
Clone the repo
git clone --depth 1 https://github.com/ogrodev/fsociety

Made for: Claude Code, Codex.

Or install trenton, the plugin that ships this one along with the rest of its 5 skills, 12 commands, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ogrodev/fsociety/system-hardening.svg)](https://agentmods.dev/skills/ogrodev/fsociety/system-hardening)
Your own site
<a href="https://agentmods.dev/skills/ogrodev/fsociety/system-hardening"><img src="https://agentmods.dev/badge/skills/ogrodev/fsociety/system-hardening.svg" alt="Measured on agentmods" height="20"></a>
Per session 262 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00262 $0.01499
Opus 5 $0.00131 $0.00749
Sonnet 5 $0.00052 $0.00300
Haiku 4.5 $0.00026 $0.00150

Measured yesterday against content hash eec6e14eb2f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

system-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 yesterday.

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.

Enumerates the file system for secretsmediumData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

find ~ -maxdepth 3 -name "*.key" -o -name "*.pem" -o -name "id_rsa" -o -name "*.p12" 2>/dev/null

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.

sudo iptables -L -n --line-numbers 2>/dev/null | head -20 || sudo nft list ruleset 2>/dev/null | head -20

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

trenton/skills/system-hardening/SKILL.md · 108 lines

How it starts

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

System Hardening — Operator Platform Security

Comprehensive hardening for red team operator machines, attack platforms, and engagement workstations. This skill treats the operator's machine as the most sensitive asset in the engagement — a compromised operator platform means compromised operations, compromised clients, and compromised credentials.

The threat model here is different from server hardening: the operator needs a functional offensive toolkit while minimizing attack surface, protecting credentials, and preventing forensic recovery of engagement data.

Opsec Profile Integration

Hardening depth scales with the active opsec profile. Check the current profile before applying changes:

node "${CLAUDE_PLUGIN_ROOT}/scripts/opsec-profile.js" get
Profile Kernel Firewall SSH Disk Services Memory Credentials
loud ASLR only Default accept Key auth Optional All running No wipe Plain files OK
normal Basic sysctl INPUT drop Key + non-default port Home encrypted Minimal Swap encrypted pass or keepassxc
stealth Full sysctl Strict in/out ProxyJump + knockd Full LUKS Whitelist only RAM wipe on lock GPG-backed pass
paranoid Full + modules locked Egress filtered + Tor Ephemeral keys per op LUKS + detached header Minimal + sandboxed Encrypted swap + no core dumps Hardware token + pass

Reference Files

Read the appropriate reference based on the hardening category:

Category Reference When to Read
Kernel parameters, ASLR, ptrace, namespaces references/kernel-hardening.md Sysctl tuning, kernel lockdown, memory protections
Firewall rulesets for operator machines references/firewall-config.md Inbound/outbound filtering, engagement-aware rules, Tor/VPN integration
SSH client and server hardening references/ssh-hardening.md Key management, ProxyJump chains, agent forwarding, tunneling
Disk, swap, and memory protection references/disk-and-memory.md LUKS encryption, swap encryption, RAM security, core dump prevention
Service minimization and sandboxing references/services-and-sandboxing.md Attack surface reduction, firejail profiles, AppArmor, service audit
Credential storage and browser security references/credential-and-browser.md pass, keepassxc, GPG agent, browser profiles, USB security

Read the full file on GitHub · 108 lines

Files

What ships with it

6 files 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. yesterday First seen · 108 lines · 262 tokens per session scan B eec6e14eb2f2

Subscribe to this mod's changes

system-hardening is a skill published in the GitHub repository ogrodev/fsociety (20 stars, last pushed 5mo ago), licensed MIT. It adds 262 tokens to every session and 1,499 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it B with 2 findings (enumerates the file system for secrets, asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

mks

MKS (Metasploit-Kali Server) tool preference guide. Mount in Phase 0/1 alongside the primary skill. Provides URL resolution, REST endpoint patterns, response parsing, error handling, and fallback rules for all MKS-backed Kali tools.

Stickman230/claude-pentest · 54 tokens

pentest

Penetration testing orchestrator that coordinates specialized attack agents. Provides attack indexes, methodology frameworks, and documentation. Execution delegated to specialized agents (SQL Injection, XSS, SSRF, etc.). Use for engagement planning and attack coordination.

Stickman230/claude-pentest · 50 tokens

authenticating

Authentication testing skill - automates signup, login, 2FA bypass, CAPTCHA solving, and bot detection evasion using Playwright MCP. Tests authentication security controls. Includes behavioral biometrics simulation, OTP handling, and automated account creation for security assessments.

Stickman230/claude-pentest · 54 tokens

common-appsec-patterns

Application security testing coordinator for common vulnerability patterns including XSS, injection flaws, and client-side security issues. Orchestrates specialized testing agents to identify and validate common application security weaknesses.

Stickman230/claude-pentest · 42 tokens

web-application-mapping

Comprehensive web application reconnaissance and mapping coordinator that orchestrates passive browsing, active endpoint discovery, attack surface analysis, and headless browser automation for complete application coverage.

Stickman230/claude-pentest · 38 tokens

cve-testing

CVE vulnerability testing coordinator that identifies technology stacks, researches known vulnerabilities, and tests applications for exploitable CVEs using public exploits and proof-of-concept code.

Stickman230/claude-pentest · 36 tokens