CLI-Anything Bundle #48 — SSH Client Trust Recon Pack
Four agent-native read-only harnesses that census the SSH client trust layer: what ssh(1) actually reads and trusts — configs, agents, mux sockets, certificates, gpg-agent emulation. Pair with Bundle #22 (SSH server recon) for the full picture; #48 stays strictly on the client side.
- sshconfpeek — per-user → system → Include drop-in config census with provenance; the first-value-wins shadow law (later same-key lines named as non-winners); ProxyCommand/ProxyJump/ForwardAgent/StrictHostKeyChecking no·accept-new·ask/UserKnownHostsFile trust surface; token-aware identity existence checks; depth-capped Include anatomy; hygiene flags.
- agentpeek — SSH agent + ControlMaster mux socket census, stat-only: SSH_AUTH_SOCK truth, agent temp dirs under the documented 0700 law (world-open dirs named), world-accessible socket bits, orphan-owner sockets, ~/.ssh mux sockets with stale age as honest data. Never connects, never binds, zero subprocesses.
- certpeek — OpenSSH client certificate census: the documented wire format parsed for serial/type/key-id/principals/validity — key material never printed; VALID/EXPIRED/NOT_YET_VALID verdicts on a deterministic --now hook; empty-principals danger law; cert-without-key counterpart truth; private-key permissions stay Bundle #22's job.
- gpgagentpeek — gpg-agent SSH-emulation census: GnuPG home 0700 law, gpg-agent.conf census with secret-name masking FIRST, runtime agent sockets (S.gpg-agent.ssh = ACTIVE) with mode/owner truth, DECLARED-vs-ACTIVE ssh support as separate truths; keygrips never read (line/name counts only).
Battery truth: 166 executed-assert checks per sweep (50 + 36 + 43 + 37) — fired ×2 from the kit and re-fired clean-room from this shipping zip; 0 failed every source. Defect ledger closed before green.
Laws (all four tools): zero subprocesses, zero network, zero writes; key material / keygrips / command bodies never printed; rc 0 clean · 4 findings · 6 nothing-readable · 2 usage; honest absence is a verdict, never a fabricated clean; every report as human text and --json.
Run: cd <tool>/agent-harness && python3 -m cli_anything.<tool> --json — no pip required (stdlib-only, self-test batteries inside).
Bundle: CLI-Anything #48 · License: MIT · tikkunolam.today