CLI-Anything Bundle #90 — Vault Secrets 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 HashiCorp Vault secrets-management trust surface — the layer that tells you whether a deployment's install, server config, ACL-policy hygiene and audit posture can still be TRUSTED (an operator whose vault binary, server.hcl, ACL policies and audit trail cannot be honestly censused has no secrets-trust story at all): the install + server runtime posture layer, the config grammar + security posture layer, the policy grammar + capability-hygiene layer, and the audit-device + audit-log layer. Each tool stats/globs binaries, configs and artifacts and parses documented grammar line-based — nothing is ever executed, no vault binary is ever spawned, nothing is ever written, nothing networks, and no credential VALUE, audit id or policy subject is ever read or printed (CRED-PRESENT presence rows only; audit token/lease/entity ids ride TOKEN1/LEASE1/ENTITY1 tokens; policy paths ride PATH1 tokens except public example shapes; custom hosts ride HOST1 tokens).
- vaultpeek — Vault install + server runtime posture census: exact vault binary stat-only across lookup dirs (TOOL_BINS presence rows, BIN tokens, binaries NEVER executed); install-dir census (INSTALL rows, /opt/vault + /usr/local/bin probe); config-dir presence + PERM class (contents never parsed by this tool); storage dir census (file counts, DATA1 tokens, bodies never read); log mtime-bucket census; systemd vault* unit census; findings CONF_PERM / STORAGE_PERM; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- vaultconfpeek — Vault config (HCL/JSON) grammar + security posture census: *.hcl/*.json file census with perm class rows; LINE-BASED HCL grammar census over the public Vault vocabulary (no hcl/yaml module ever imported) as KEY-PRESENCE rows; listener posture classing (doc-shaped 127.0.0.1:8200 may print; custom hosts ride HOST1 tokens) with TLS_OFF finding on tls_disable true; seal-posture rows (seal block-type presence; no seal block = SEAL_DEFAULT honesty); security key-presence rows (disable_cache, disable_printable_check, raw_storage_endpoint, disable_clustering) with RAW_ENDPOINT finding on raw_storage_endpoint true; findings CONF_PERM + CRED_PRESENT (presence class only, value suppressed); rc 0 / 4 / 6 / 3 law.
- vaultpolpeek — Vault ACL policy grammar + hygiene census: *.hcl/*.json policy file census with perm class; path-block + capabilities grammar census (public capability vocabulary prints; path strings ride PATH1 tokens except public example shapes); capability hygiene (SUDO_CAP finding on a sudo grant; ROOTY_BLOCK on all-write caps on *; deny blocks counted honestly); wildcard-path rows (WILD_PATH); allowed/denied_parameters presence rows; findings POL_PERM (group/world-writable policy files); honest EMPTY_POLICIES + POL_UNREADABLE notes; rc 0 / 4 / 6 / 3 law.
- vaultauditpeek — Vault audit-device + audit-log artifact census: audit-device config census (audit/type = file|socket|syslog/path/format KEY-PRESENCE rows on AUDIT1 tokens); audit-log artifact census (vault-audit*/audit*.log count + size + mtime buckets; LINE-CLASS sampling to type counts only — token/lease/entity ids ride TOKEN1/LEASE1/ENTITY1 tokens and never print); stale-audit posture (STALE_AUDIT finding >7d; AUDIT_GAP when a device is configured but no logs exist); rotation rows (.log.1/*.log.gz counts-only); findings AUDIT_WIDE (world-readable audit logs) + AUDIT_DIR_PERM; honest NO_AUDIT note; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no credential value, audit id, policy subject or secret-shaped config value ever prints raw (values ride BIN1/CONF1/DATA1/HOST1/POL1/PATH1/AUDIT1/LOG1/TOKEN1/LEASE1/ENTITY1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (1047 executed checks across the four tools — 265 + 378 + 203 + 201 — 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).