Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

host-hardening

БесплатноЗапускает вложенные скриптыНе проверен

Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters…

jmaglyот 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

  1. Identify the operator-authorized host, timestamp, role and service owners. Resolve report destination with aiwg artifacts path --json --check-write. Apply ops-information-governance to 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 -t and 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.
  6. 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.
  7. 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

Полный SKILL.md на GitHub

Установить host-hardening в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash
Write

Вложенные файлы

scripts/bindings.mjsscripts/check.mjs

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить host-hardening с