security_audit
Assess SSH daemon configuration and sensitive file permissions to flag weak settings and insecure files. Read-only audit returns structured JSON.
Instructions
Baseline security posture of one instance. Read-only, two signals: sshd effective config (sshd -T: permit-root-login, password-authentication, permit-empty-passwords, x11-forwarding) and a stat of a curated list of sensitive paths (sshd/sudoers/cron/passwd-family/root keys), flagging only those that are world-writable or not root-owned. Never changes sshd config or file permissions. Returns JSON: {sshd: {directive: value}, insecure_files: [{path, mode, owner, issue}]}. Powers the security-hardening detector (weak-sshd, insecure-perms).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | Instance ID or name. |