host-hardening
БесплатноЗапускает вложенные скриптыНе проверенRead-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters…
от jmagly★ 233 звезды на GitHubОб этом скилле
Host Hardening
Purpose
Review a Linux host after exposure reconstruction or as a recurring baseline.
Extend security-assessment with concrete host checks, using existing
sys-host-audit inventory and exposure-analysis findings. Recommendations
are plan-first and read-only under ops-safety: this skill never applies a
firewall, SSH, datastore or service change. --apply is rejected.
Triggers
- "system hardening"
- "host hardening baseline"
- "lockout-safe SSH remediation plan"
- "compose ports without bind address"
Behavior
- Identify the operator-authorized host, timestamp, role and service owners.
Resolve report destination with
aiwg artifacts path --json --check-write. Applyops-information-governanceto collected metadata before emission. Reuse sanitized inventory and exposure reports. Missing or restricted data means UNKNOWN, never PASS. Do not read auth/token files, authorized_keys, datastore passwords or environment values; operators provide safe boolean assessments for sensitive controls. - Assess the baseline below, recording evidence references and exceptions. Confirm effective sshd settings in relevant Match contexts, including included files; checking one config line cannot establish effective policy.
- Prepare a reviewable diff-style recommendation per failed control. Map stale/over-broad firewall rule removal candidates to exact rule identifiers, listeners, container publishing and named service owners. Specify public, private or VPN binds for proposed Compose changes. Do not assume a standby rule is disposable because the listener is currently absent.
- Include dated backup requirements, pre-change SHA-256, verified restore procedure and rollback deadline for every affected file/ruleset. Backups stay in operator-controlled restricted storage, not in reports. The helper produces backup instructions only; it never creates host backups.
- Gate any separately performed SSH change on verified key-based access
(second session with intended account) AND verified console break-glass
access. A key file existing is insufficient. Require explicit operator
authorization for exact changes,
sshd -tand effective Match review, an open recovery session and timed rollback before password/root restriction. Network, boot and authentication changes have at least HIGH blast radius. - Hand the plan to the operator for a separate authorized operational change. Even explicit apply authorization does not make this read-only skill a mutation tool. Do not run reload/restart, firewall writes or datastore DDL.
- After the operator reports application, obtain fresh captures. Re-run exposure analysis, SSH checks and the baseline. Re-verify listeners, IPv4/IPv6 firewall, Docker forwarding/binds, a new key-based session and every named health check (queue ready, monitoring targets still up, CDN origin HTTP/HTTPS). Record failures and recommend rollback; never claim verification from the pre-change snapshot. Missing results remain UNKNOWN.
Baseline
| Area | Checks and safe metadata fields under baseline |
|---|---|
| SSH | ssh.passwordAuthentication: no, permitRootLogin: no, maxAuthTries <= 3, caTrustReviewed, authorizedKeysFromRestricted (from= review) |
| Firewall | firewall.defaultDeny4, defaultDeny6, persistent across reboot; compare runtime/persistent rules and default policy |
| Docker | docker.userGuard, afterVpn (readiness + startup/restart dependency), liveRestore, explicitBinds |
| Datastores | datastores.authAcl, redisDangerousCommandsRestricted, postgresConnectionLogging, appRolesNotSuperuser |
| Exporters | exporters.privateBind, fixedTargets (no caller-chosen multi-target scrapes) |
| Audit | audit.rulesLoaded, retentionReviewed (auditd rules, journal/rotation capacity and preservation) |
Boolean controls require true for PASS. Use null/omission for unknown,
not an assumed value; mark non-applicable controls with a documented operator
exception in the report. The helper leaves omitted controls UNKNOWN. Redis ACL
restrictions should deny dangerous commands for application users; do not
blindly rename commands or lock out maintenance/replication. Review SSH CA
principals and role privileges without exposing key or credential values.
Offline helper and static check
node "$AIWG_ROOT/agentic/code/frameworks/security-engineering/skills/host-hardening/scripts/check.mjs" --snapshot baseline.json --compose compose.yaml
node "$AIWG_ROOT/agentic/code/frameworks/security-engineering/skills/host-hardening/scripts/check.mjs" --snapshot baseline.json --docker-run reviewed-commands.txt
Snapshot requires host, capturedAt, optional baseline and healthChecks
(array of safe named checks). Compose parsing uses the existing YAML dependency.
Short and long syntax require explicit literal host_ip/bind addresses;
wildcards receive a separate r
Установить host-hardening в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashWriteВложенные файлы
FAQ
Что делает скилл host-hardening?
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
Как установить скилл host-hardening?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл host-hardening запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic