CLI-Anything Bundle #112 — Mosquitto MQTT Broker 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 Mosquitto MQTT broker trust surface — the layer that tells you whether a Mosquitto deployment's binaries, config grammar, socket/pidfile posture and ACL/password-file state can still be TRUSTED (an operator whose mosquitto binary, /etc/mosquitto grammar, listener sockets and ACL state cannot be honestly censused has no broker-trust story at all): the install + runtime posture layer, the config grammar layer, the socket/pidfile layer, and the ACL layer. Each tool stats/globs binaries, configs and artifacts and parses documented grammar line-based — nothing is ever executed, no mosquitto binary is ever spawned, no socket is ever opened or connected, nothing is ever written, nothing networks, and no credential value, ACL body or log body is ever read or printed (BIN1/CONF1/LOG1/SOCK1/USER1/LINE1/CRED-PRESENT presence rows; doc-shapes like localhost/127.0.0.1 MAY print; /etc/mosquitto is public vocabulary).
- mosquittopeek — Mosquitto install + runtime posture census: mosquitto/mosquitto_passwd/mosquitto_pub/mosquitto_sub binaries stat-only across lookup dirs (BIN1, NEVER executed); /etc/mosquitto presence + PERM rows; mosquitto.conf + conf.d/*.conf census; run/data dirs + socket/pid stat-only (SOCK1, never opened); /var/log/mosquitto census LOG_PERM (size-only, bodies never read); mosquitto*.service unit census (UNITS); findings BARE_TOOL / CONF_WITHOUT_TOOL / CONF_PERM / LOG_PERM / RUN_WIDE; notes NOT_RUNNING / EMPTY_LOGS / NOTHING_READABLE; rc 0/4/6/3.
- mosquittoconfpeek — config grammar census: LINE-BASED hand parser (NEVER yaml/configparser) over the public mosquitto vocabulary (listener, port, protocol, bind_address, max_connections, allow_anonymous, password_file, acl_file, psk_file, certfile, keyfile, cafile, require_certificate, use_identity_as_username, log_dest, log_type, persistence, persistence_location, autosave_interval, max_keepalive, max_inflight_messages, message_size_limit); LIST listener census (count + doc-shape bind tagging); values ride CONF1/USER1 tokens (NEVER printed); findings CONF_PERM / ANON_ON (allow_anonymous true without password_file) / CRED_PRESENT / TLS_OFF; notes NO_LISTENERS / NOTHING_READABLE; rc 0/4/6/3.
- mosquittosockpeek — socket + pidfile census: /var/run/mosquitto*.sock + *.pid stat-only (SOCK rows, SOCK1 tokens; sockets NEVER opened, connect() banned in cores); run-dir PERM class; pidfile name+size+mtime only (value never read, PID1 law; same-stem live socket suppresses PID_STALE, orphan fires it); findings SOCK_PERM / PID_STALE / RUN_WIDE; notes NO_SOCK / NOTHING_READABLE; rc 0/4/6/3.
- mosquittoaclpeek — ACL + password-file census: acl_file/password_file from readable confs (stat-only EXISTENCE+PERM; contents NEVER read; LINE1 rows); acl rule-CLASS grammar counts from the DOCUMENTED vocabulary (topic/read/write/readwrite/user/pattern), never parsed bodies; findings ACL_ABSENT_WITH_AUTH / ACL_WIDE / CRED_PRESENT; notes NO_ACL / NOTHING_READABLE; rc 0/4/6/3.
Read-only by construction — no binary is ever executed, no socket is ever opened or connected, nothing is ever written, nothing networks, and no credential value, ACL body or log body ever prints raw (values ride BIN1/CONF1/LOG1/SOCK1/USER1/LINE1 + CRED-PRESENT/LEN class tokens only); MIT, stdlib-only, self-test batteries inside (1,709 counted checks across the four tools — 201 + 231 + 657 + 620 — 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).