CLI-Anything Bundle #98 — SSH + FTP Server Trust Recon Pack (4 New AI Agent Skills)
v1.0.0 · MIT · stdlib-only · read-only by construction
Four agent-native, read-only trust-recon CLI tools covering the SSH and FTP server trust surface — the layer that tells you whether a deployment's sshd binary/config/key-material posture, FTP daemon posture and env/init artifacts can still be TRUSTED (an operator whose sshd_config, vsftpd.conf, host key paths and log artifacts cannot be honestly censused has no remote-access trust story at all): the sshd install + runtime posture layer, the sshd_config grammar + key-posture layer, the vsftpd posture layer, and the FTP grammar layer. Each tool stats/globs binaries, configs and run-state and parses documented grammar line-based — nothing is ever executed, no daemon binary is ever spawned, nothing is ever written, nothing networks, and no host key, authorized-keys path or FTP credential is ever read or printed (CRED-PRESENT presence rows only; permit-root-login / password-auth value classes; public doc shapes print; custom hosts ride HOST1 tokens; custom paths ride PATH1 tokens).
- sshdpeek — SSH daemon install + runtime posture census: exact sshd binary stat-only across lookup dirs (TOOL_BINS presence rows, BIN1 tokens, binaries NEVER executed); install-dir census (INSTALL rows, /usr/sbin + /usr/bin probe); config-dir presence + PERM class (CONF rows, contents never parsed by this tool); run-state pidfile census (RUNSTATE rows, PID1 tokens); sshd* systemd unit census (UNITS rows); log mtime buckets (LOG rows); findings CONF_PERM; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- sshdconfpeek — SSH config grammar + key-material hygiene census: sshd_config/*.conf files across /etc/ssh + /usr/local/etc/ssh probe (SSH rows, SSH1/SSH2 tokens, PERM class); LINE-BASED key=value census (PermitRootLogin, PasswordAuthentication, PubkeyAuthentication, AuthorizedKeysFile, HostKey, TrustedUserCAKeys, X11Forwarding, AllowUsers, Port) as KEY-PRESENCE rows (NEVER a yaml/configparser module); PermitRootLogin value class law (no = hardened row, without-password = honest, yes = ROOT_LOGIN finding); AuthorizedKeysFile / HostKey / TrustedUserCAKeys paths ride CRED-PRESENT class ONLY (values never read/printed); PasswordAuthentication no = PUBKEY_ONLY row; AllowUsers values ride USER1 tokens; PORT row (integer prints); findings CONF_PERM; SSHD_PEEK_CONFIG override; rc 0 / 4 / 6 / 3 law.
- vsftpdpeek — vsftpd install + runtime posture census: exact vsftpd binary stat-only across lookup dirs (TOOL_BINS presence rows, BIN1 tokens, binaries NEVER executed); config-dir presence + PERM class (contents never parsed by this tool); run-state pidfile census (RUNSTATE rows, PID1 tokens); vsftpd* systemd unit census (UNITS rows); log mtime buckets (LOG rows); findings CONF_PERM; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING; rc 0 / 4 / 6 / 3 law.
- ftpconfpeek — FTP config grammar + anonymous-posture census: vsftpd.conf/*.conf files across /etc/vsftpd + /etc probe (FTP rows, FTP1/FTP2 tokens, PERM class); LINE-BASED key=value census (anonymous_enable, local_enable, write_enable, chroot_local_user, anon_upload_enable, pam_service_name); anonymous_enable=YES rides ANON_ENABLED finding; chroot_local_user absence rides CHROOT_ABSENT; anon_upload_enable=YES + anonymous_enable=YES rides ANON_UPLOAD finding; pam_service_name rides FTP_PAM value row; local_enable=YES + anonymous=YES rides MIXED_MODE finding; anon_root/secure_email values ride CRED-PRESENT class ONLY (never read/printed); findings FTP_PERM; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no host key, authorized-keys path, FTP credential or config value ever prints raw (values ride BIN1/CONF1/PID1/SSH1/FTP1/HOST1/USER1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (874 executed checks across the four tools — 212 + 230 + 221 + 211 — fired three times at 0 failed, plus clean-room fires unpacked from this exact shipping zip — one /tmp room, one home-path room — 0 failed in both).