ssh_audit_baseline
Provides a single-pass security and health audit of a machine, covering sshd, firewall, pending updates, failed services, docker, listening ports, and disk, each marked as CRITICAL, WARNING, or OK.
Instructions
Reports how a machine is set up: sshd, firewall, pending updates, failed services, docker, listening ports and disk, each section marked CRITICAL, WARNING or OK. Reads only, in one round trip instead of a dozen commands; without sudo the sshd section is read from the config file rather than from sshd itself. Use it on a machine you have not audited yet; for load and health at this moment, use ssh_snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compact | No | Trim the long sections. false = whole, much larger answer. Default: true | |
| include | No | system, disk, mem, net, ssh, services, docker, firewall, updates. Default: all | |
| profile | Yes | Machine name. | |
| include_sudo_sections | No | Read sshd config as sshd sees it (sshd -T), needs root. Without it the ssh section says so instead of guessing from the file. Default: false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| net | No | ||
| ssh | No | ||
| disk | No | ||
| load | No | ||
| docker | No | ||
| kernel | No | ||
| memory | No | ||
| uptime | No | ||
| updates | No | ||
| date_utc | No | ||
| firewall | No | ||
| hostname | No | ||
| services | No | ||
| red_flags | No | ||
| unavailable | No |