CLI-Anything Bundle #92 — Memcached Cache 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 memcached cache trust surface — the layer that tells you whether a deployment's install, bind/listen posture, env/init artifacts and stats-dump posture can still be TRUSTED (an operator whose memcached binary, listen directives, env defaults and stats dumps cannot be honestly censused has no cache-trust story at all): the install + runtime posture layer, the config grammar + exposure layer, the env/init artifact layer, and the stats-artifact layer. Each tool stats/globs binaries, configs and artifacts and parses documented grammar line-based — nothing is ever executed, no memcached binary is ever spawned, nothing is ever written, nothing networks, and no cache-key payload, credential value or username is ever read or printed (SASL flags ride SASL_ON presence rows, never CRED_PRESENT; cache keys ride KEY1 tokens; env identities ride ART1 tokens).
- memcachepeek — memcached install + runtime posture census: exact memcached binary stat-only across lookup dirs (TOOL_BINS presence rows, BIN tokens, binaries NEVER executed); config presence + PERM class (contents never parsed by this tool); run-state pidfile census (RUNSTATE rows, PID1 tokens); memcached* systemd unit census; port vocabulary row (default 11211 = public vocabulary); findings CONF_PERM; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- memconfpeek — memcached config grammar + exposure posture census: memcached*.conf/ini file census with perm class rows; LINE-BASED grammar census over short (-l/-p/-U/-m/-c/-u) and long (listen/port/user/UDP) option styles as KEY-PRESENCE rows; bind posture classing (loopback/localhost doc shapes may print; wildcard 0.0.0.0/:: rides a WILD_BIND finding; absent -l rides an honest BIND_UNSET default note); port posture (integers print; -U 0 = UDP_DISABLED hardening row; UDP non-zero + WILD_BIND = UDP_EXPOSE finding); SASL posture (SASL_ON presence row — never CRED_PRESENT; NO_SASL finding on a non-loopback bind); findings CONF_PERM + CRED_PRESENT (presence class only); rc 0 / 4 / 6 / 3 law.
- memcachecfgpeek — memcached env/init artifact census: memcached-named env/default/init files across /etc + /etc/default + /etc/sysconfig probe (artifact rows with PERM class, ART1 tokens); LINE-BASED grammar census (DAEMON, USER, MEMCACHED_OPTIONS, OPTIONS, -l/-p/-U/-m/-c) as KEY-PRESENCE rows; user posture (RUNS_AS_ROOT finding on a root daemon user); socket refs (-s path presence on SOCK1 tokens; SOCK_PERM finding on a group/world-writable socket file); MEMCACHED_OPTIONS presence; findings ART_PERM; rc 0 / 4 / 6 / 3 law.
- memcstatpeek — memcached stats-artifact census: memcached-stats*.{txt,json}/memcached*.dump/*.stats files across /tmp + /var/tmp + cwd probe (artifact rows with PERM class); LINE-CLASS grammar over 256KB capped heads (first 100 lines, shape counts only); stats vocabulary (STAT pid/version/cmd_get/get_hits/get_misses/evictions/bytes — integers print); EVICTIONS finding on non-zero evictions; MISS_RATIO honesty note; ITEM_DUMP posture row on ITEM-shaped dump lines (user-data surface, KEY1 blackout); findings DUMP_WIDE (world-readable dumps) + ART_PERM; honest NO_ARTIFACTS note; rc 0 / 4 / 6 / 3 law.
Read-only by construction — no binary is ever executed, nothing is ever written, nothing networks, and no cache-key payload, credential value or username ever prints raw (values ride BIN1/CONF1/PID1/ART1/SOCK1/KEY1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (975 executed checks across the four tools — 256 + 222 + 250 + 247 — 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).