security_audit
Assess one server's baseline security posture read-only by inspecting effective sshd settings and flagging world-writable or non-root-owned sensitive files.
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. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'. |