CLI-Anything Bundle #91 — MongoDB Database 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 MongoDB database trust surface — the layer that tells you whether a deployment's install, server config, dataFile store and user/role artifact posture can still be TRUSTED (an operator whose mongod binary, mongod.conf, WiredTiger store and role definitions cannot be honestly censused has no database-trust story at all): the install + server runtime posture layer, the config grammar + security posture layer, the WiredTiger store layer, and the users/roles + log artifact layer. Each tool stats/globs binaries, configs and data files and parses documented grammar line-based — nothing is ever executed, no mongod binary is ever spawned, nothing is ever written, nothing networks, and no credential VALUE is ever read or printed (CRED-PRESENT presence rows only; user names ride USER1 tokens; WiredTiger file identities ride FILE1 tokens; data/definition bodies never read beyond size/mtime or capped stdlib-json heads).
- mongodpeek — MongoDB install + server runtime posture census: exact mongod/mongosh binaries stat-only across lookup dirs (TOOL_BINS presence rows, BIN tokens, binaries NEVER executed); install-dir census; config presence + PERM class (contents never parsed by this tool); dbPath census (WiredTiger marker presence stat-only, DATA1 tokens); log mtime buckets; mongo* systemd unit census; findings CONF_PERM / DB_PERM / DB_WIDE; posture findings BARE_TOOL, CONF_WITHOUT_TOOL, honest NOT_RUNNING; rc 0 clean / 4 findings / 6 nothing readable / 3 usage.
- mongoconfpeek — MongoDB config grammar + security posture census: mongod.conf/*.conf/*.yaml census with perm class rows; LINE-BASED key-path grammar census (storage.dbPath, net.bindIp, net.port, net.bindIpAll, replication.replSetName, security.authorization, security.keyFile, processManagement.fork, systemLog.destination, net.tls.mode) as KEY-PRESENCE rows (NEVER a yaml module); bind posture classing (doc-shaped 127.0.0.1/localhost may print; 0.0.0.0/:: rides a WILD_BIND finding; custom hosts ride HOST1 tokens); auth posture (AUTH_ON or honest AUTH_OFF; keyFile rides a presence-only KEYFILE row, values suppressed); replication posture (public rs0 prints, custom names ride NAME tokens); TLS posture (TLS_PRESENT / honest TLS_OFF_REMOTE on a non-loopback bind without net.tls.mode); findings CONF_PERM + CRED_PRESENT (presence class only, value suppressed); rc 0 / 4 / 6 / 3 law.
- mongostorepeek — MongoDB dataFile store + durability posture census: dbPath WiredTiger census (*.wt collection/index shapes on FILE1 tokens, storage.bson, journal presence — bodies NEVER opened); file size buckets + Morton-name shape classes (FILE rows); JOURNAL counts + durability posture (collection-vs-journal delta, CHECKPOINT shapes); perms findings FILE_PERM (group/world-writable collection file) + DB_WIDE (world-readable dbPath); honest EMPTY_STORE / STRAY_FILE / STORE_UNREADABLE notes; rc 0 / 4 / 6 / 3 law.
- mongousrpeek — MongoDB users/roles + log artifact census: users/roles definition globs across the dbPath + /etc/mongodb probe (USERDEF rows with PERM class, USER1 tokens); capped 256KB stdlib-json grammar (user, roles, db, pwd, credentials, mechanisms, userId — KEY-PRESENCE + counts; pwd/credentials/scram values ride CRED-PRESENT class ONLY, hashes NEVER read/printed); admin/local adjacency rows; USERDEF_WIDE on world-readable role files; mongod.log artifact rows (mtime buckets; LINE-CLASS severity counts [I/W/E/F] on first 50 lines only, HOST1/NS1 tokens); LOG_WIDE finding; 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, user identity, WiredTiger file body or role hash ever prints raw (values ride BIN1/CONF1/DATA1/FILE1/HOST1/USER1/NS1/NAME1/CRED-PRESENT class tokens only); MIT, stdlib-only, self-test batteries inside (1070 executed checks across the four tools — 332 + 289 + 232 + 217 — 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).