/security-engineering:host-hardeningfrom security-engineering
Read-only Linux host hardening baseline covering SSH, Docker bind addresses, firewall persistence, datastores, exporters, and audit retention. Produces diff-style recommendations with backup plans and access gates.
Ships in security-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.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.| 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.
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 review finding. Render interpolation and merged
Compose files through an operator-approved process before static checking;
never execute shell substitutions from files. expose: alone does not publish
host ports. Host networking and publish-all require explicit listener review.
The docker-run checker covers literal -p, --publish, -P; shell-generated,
multiline or computed commands require manual review.
Input: PasswordAuthentication yes, PermitRootLogin yes, six auth tries.
Output: failed SSH controls with -PasswordAuthentication yes /
+PasswordAuthentication no, dated operator-backup requirements, key and
console gates, explicit authorization and fresh-capture rechecks. Nothing is
changed. --apply fails with the read-only boundary explanation.
Input: Compose ports: ["6379:6379"] or long syntax without host_ip.
Output: missing-bind. "10.8.0.2:6379:6379" names the VPN bind;
"[::1]:6379:6379" names IPv6 loopback. 0.0.0.0 and :: require public
service justification. An explicit address alone does not establish safety.
Write the sanitized report beneath resolved
.aiwg/security-engineering/reviews/. The helper emits JSON to stdout with
checks, findings, plan and summary: {status, passed, failed, unknown}.
Exit codes: 0 PASS, 2 FAIL, 3 UNKNOWN, 1 invalid input or prohibited apply.
Use existing operator scheduling for post-deploy and monthly checks; emit
host, capturedAt, status, failed, unknown, report reference to the operations
log and alert on nonzero status. This skill installs no schedules or services.
Suggested default: existing ss, Docker metadata and native firewall read
commands, with offline helper for reproducible narrow checks. Use nftables or
firewalld's native views when those own the host; review hook order manually
when the exposure helper reports unsupported semantics. Existing benchmark
reports may supply baseline evidence, with their scope and capture time.
For newer backend versions evaluate read-only behavior, both address families,
Docker integration and lockout recovery against sanitized fixtures before
trusting their results. No package vulnerability scanner is added here.
What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/auth-factor-designDecision aid for authentication factor architecture — have/know/are mapping, coercion resistance, FIDO2 PIN/UV policy, and PRF hot-path anti-patterns./banned-api-auditScan source code for banned APIs/forbidden functions per project banlist; report violations with paths, line numbers, and recommended replacements/binary-blob-auditScan tracked repository files for committed binary blobs and report reviewability/provenance exceptionsnpx claudepluginhub jmagly/aiwg --plugin security-engineeringOther plugins' skills for the same job