Four battery-green, agent-native recon tools covering the kernel module surface: what the kernel has loaded, what its modules are allowed to configure, what boot requests, and where module config trusts remote content. Read-only by construction: zero process spawns, nothing written, no network. Apache-2.0, stdlib-only, Python 3.8+.
Walks /sys/module: initstate (live/loading/unloading), refcnt, taint, version, srcversion, versionmagic, coresize, initsize per module; holders / sections / notes / parameters entry counts (bytes never read). Absent attributes are honest nulls; unreadable files and unregistered --module names are named rows; capped reads marked truncated.
python3 -m cli_anything.modstatpeek --json
READONLY / WRITABLE / UNPARSEABLE classes from the real octal mode; world-readable / world-writable flags; size; symlink state; secret-NAME flag (TOKEN/SECRET/PASSW/PRIV/CRED/APIKEY/API_KEY). Parameter file bytes are never read — the battery pins a canary value that can never appear in output.
python3 -m cli_anything.modparampeek --secret --json
blacklist/options/alias/install/remove/softdep rows with file + line + layer provenance. install/remove bodies that fetch-and-execute (curl|sh pipes, bash <(wget…), eval $(curl…)) are FLAGGED. Bodies print truncated with secret-NAMED assignments masked (***); plain values stay verbatim. Computes blacklisted registry, blacklist+options conflicts, cross-file duplicates.
python3 -m cli_anything.modconfpeek --only flags
/etc/modules plus modules-load.d drop-ins across /etc, /run, /usr/lib with FIRST-DIR-WINS layering; losing files are NAMED as shadowed, never silently dropped. Inline args counted; secret-named arg values masked. Optional live cross-join reads /proc/modules first-column only: every entry stamped loaded_live / not_loaded.
python3 -m cli_anything.modbootpeek --dropin-dir /your/dir
cd <tool>/agent-harness && python3 ../../runner_count.py \ cli_anything/<tool>/tests/test_core.py
Battery truth: 630 executed checks per sweep (158 + 109 + 169 + 194), fired twice with 0 failures each, plus a clean-room re-fire of every battery from this exact shipping zip — 0 failed. zip sha256 6e4344b7a613ac8f96f514c73cfba538aa882620e416e4de052dcf67f815cb70 (45,828 bytes, 39 files, 0 junk).
Laws: named rc2 refusals for bad arguments (never a stack trace); secret-named values masked by name; honest absence rows; no spawns, no writes, no network. Apache-2.0. Support: [email protected]