healthcheck
Audit a Hermes host and propose staged hardening.
SKILL.mdskills/devops/healthcheck/SKILL.md
GitHubHealthcheck Skill
Assess host risk, run read-only checks, then propose staged hardening without breaking access. This skill audits the machine Hermes runs on: SSH, firewall, updates, exposure, backups, disk encryption, and gateway security. It changes nothing on its own.
When to Use
- User asks for a security audit, healthcheck, or hardening review of the Hermes host
- After moving Hermes to a new machine, VPS, or network
- Before exposing the gateway beyond the local network
- After a scare: an unexpected login, an open port, a missed backup
Prerequisites
- Run commands with the
terminaltool; read config withread_file, never by pasting shell output around hermes doctorandhermes statusare available on any Hermes host- OS tools used below (
ss,ufw,systemctl,sw_vers,pfctl) come with the OS or its package manager
How to Run
- Infer context first (see Procedure); ask only for missing facts.
- Run the read-only checks with
terminal. Ask once for permission to run them. - Present the report, then the hardening menu as numbered choices.
- Apply a chosen change only after the user confirms the exact action.
Rules
- Ask before state-changing actions. A read-only check is not a change; anything that alters SSH, firewall, remote access, services, or config is.
- Do not change SSH, firewall, or remote access until the access path is confirmed. Losing the only way in is worse than the finding.
- Prefer reversible steps and record rollback notes with every change.
- Never claim Hermes manages the OS firewall, SSH, or updates. It does not.
- If identity or role is unknown, recommend only.
- User choices: numbered list.
- Never print secrets.
Quick Reference
hermes doctor
hermes status --deep
hermes doctor exits non-zero when findings remain: read the report and continue the remaining checks. Plain hermes doctor never repairs anything; --fix is a state-changing action and needs explicit approval first. Read-only checks may produce incidental logs or cache bookkeeping.
macOS:
sw_vers
lsof -nP -iTCP -sTCP:LISTEN
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
pfctl -s info
tmutil status
fdesetup status
softwareupdate --schedule
Linux:
cat /etc/os-release
ss -ltnup || ss -ltnp
ufw status || firewall-cmd --state || nft list ruleset
systemctl status ssh sshd
lsblk -f
Windows:
systeminfo
Get-NetFirewallProfile
Get-BitLockerVolume
Procedure
Context to infer first
- OS and version, container vs host.
- Privilege level.
- Access path: local, SSH, RDP, tailnet.
- Network exposure: public IP, reverse proxy, tunnel, LAN only.
- Hermes gateway status, bind address, auth.
- Backup status.
- Disk encryption.
- Automatic security updates.
- Usage mode: personal workstation, local assistant box, remote server, other.
Ask only for missing facts. Simple phrasing preferred.
Steps
- Confirm the access path before touching anything that could lock the user out.
- Run the Hermes checks first (
hermes doctor,hermes status --deep), then the OS checks for the host platform. - Read the Hermes gateway bind address and auth settings from config with
read_file. Report what is bound where; never print credential values. - Ask for the desired posture:
- Convenience: local/private, minimal prompts.
- Balanced: secure defaults, low friction.
- Strict: remote/public/sensitive data, more lock-down.
- Write the report (shape below) and offer the hardening menu as numbered choices.
- Apply confirmed items one at a time, stating the exact command and the rollback for each before running it.
Report shape
- Current posture: one paragraph.
- Findings: severity + evidence + why it matters.
- Recommended plan: staged, reversible.
- Commands: read-only first; write actions only after approval.
- Gaps: what could not be checked.
Hardening menu
Offer only relevant items:
- Bind the gateway to loopback, LAN, or tailnet intentionally.
- Require auth for remote access.
- Close public ports or restrict by firewall.
- Enable OS security updates.
- Enable disk encryption.
- Verify backups and restore path.
- Disable password SSH or require keys/MFA where appropriate.
- Schedule a recurring
hermes doctorrun.
Confirm the exact action before applying it.
Pitfalls
- Running a firewall or SSH change before confirming the access path can lock the user out of a remote host. Confirm first, change second.
hermes doctor --fixrepairs config and services. It is not a read-only check; never run it unasked.- A finding from
hermes doctoris a starting point, not a verdict: correlate it with the OS checks before recommending a change. - On a shared or multi-user host, do not assume the user is the admin; recommend instead of changing.
Verification
- Re-run
hermes doctorafter any applied change and confirm the finding it addressed is gone. - Re-run the OS listener check and confirm no port opened or closed beyond what was intended.
- Confirm the user can still reach the host and the gateway over the confirmed access path.