CLI-Anything Bundle #71 — ZeroTier Mesh Trust Recon Pack
Four agent-native read-only harnesses that census the ZeroTier mesh trust surface: the layers that decide whether a mesh node's membership, orbit and control story can still be TRUSTED — the node-home trust posture (identity/token stat-only perm law, state staleness, service units, dual-root topology), the local.conf JSON grammar + networks.d network posture, the moon/planet orbit layer (moon world ids, root identities, stable endpoints), and the captured zerotier-cli text surface (status / listnetworks / listpeers). No other bundle owns this surface — #53 keeps the audit-rules layer, #63 the bootloader/EFI layer, #66 the AIDE integrity layer, #67 the firejail sandbox layer, #68 the USBGuard device-authorization layer, #69 the rootkit/malware-detection layer, #70 the watchdog keepalive layer (census: 0 exact / 0 name-class substring token collisions across the whole shipping catalog, 143 Gumroad products pulled fresh). The ZeroTier mesh-trust layer is unclaimed census territory.
- zerotierpeek — node trust-posture census (~/.zerotier-one AND /var/lib/zerotier-one roots — first-wins primary law + BOTH_ROOTS_PRESENT when two node homes exist; identity.secret / identity.public / authtoken.secret presence+perm census STRICTLY stat-only — NEVER opened — with the 0600 law: AUTHTOKEN_PERM / IDENTITY_SECRET_PERM findings when anything rides looser; world/planet/moons.d/networks.d/controller.db/local.conf presence posture; state-trio mtime staleness buckets CURRENT/WEEK/MONTH/ELDER; systemd unit lookup path-only; WORLD_OVERRIDE custom-topology finding; honest ABSENT/UNREADABLE rows; rc6 NOTHING-READABLE honest).
- zerotierconfpeek — local.conf JSON grammar + networks.d posture (settings keyset parse — primaryPort, secondaryPorts, allowTcpFallback, forceTcpRelay, bind, portMappingEnabled, softwareUpdate, softwareUpdateChannel, allowManagementFrom, physical/* bindings — with per-key UNPARSED grammar classes; malformed JSON rides UNPARSEABLE_JSON / LOCAL_CONF_NOT_OBJECT findings, never crashes; MGMT_EXPOSED management-exposure finding; networks.d/*.conf per-network grammar (network id, dns, allowManaged/allowGlobal/allowDefault, managed routes, assigned IPs, multicast bound lines) with WEAKER_THAN_DECLARED findings (allowManaged=0 while routes/IPs are declared) and DEFAULT/GLOBAL_ROUTE_AUTHORITY rows; row-class caps 10 + TRUNC; rc6 honest).
- zerotiermoonpeek — moon/planet orbit census (moons.d/*.moon presence census with unpacked moon JSON grammar — moon world id, roots whose identities ride a truncated PREFIX + REDACTED with honest redaction counts and full values never printed, stableEndpoints host/port sanity incl. the 1..65535 port law; DUPLICATE_MOON_ID when two moons share a world id; ORBIT_REDUNDANCY when roots < 2; MOON/UNPARSEABLE rows for unparseable moon files — never crashes; stale-mtime buckets fresh/recent/stale; planet and world files STRICTLY stat-only — NEVER opened (presence/size/mtime only); MOONS_STRAY stray-file honesty; rc6 honest).
- ztctlpeek — captured zerotier-cli text census (parses captured `zerotier-cli status` / `listnetworks` / `listpeers` TEXT fixtures under a pinned line-by-line grammar — the binary is NEVER executed, nothing is dialed anywhere; --capture FILE parses exactly one given capture; every line must lead with a 3-digit code — 400–599 classes ride STATUS_ERROR findings; node state not ONLINE rides NODE_OFFLINE; version parse with VERSION_UNPARSEABLE honesty; networks: nwid/name/type/auth/status/flags with ACCESS_DENIED findings and NET_AUTH_MISSING rows (PRIVATE without affirmative auth); peers: version/latency/role/paths with PEER_NO_PATHS findings and the PLANET_DRIFT law (parsed PLANET count vs the expected 5, gated on peers parsed); identity-shaped nodeids and zt-addresses ride a truncated PREFIX + REDACTED; row caps 10 + TRUNC, findings capped 25; NO-captures rc6 honest).
The contract
Every tool: rc0 clean / rc4 findings / rc6 honest nothing-readable / rc3 usage; --version prints exactly 1.0.0 (CLI-Anything Bundle #71) and exits 0; --json emits exactly one report object with the keys data/findings/notes/rc/summary/tool; the default mode prints one human summary line plus capped findings rows. Pure Python stdlib — zero subprocesses, zero writes, zero sockets, zero network, zero process enumeration; node homes, moon files and captures are read and statted once, and nothing is ever executed. .secret files are never opened — stat-only perm law. planet/world files are never opened — stat-only posture. zerotier-cli is never executed — captured text only. The census never "fixes" a posture — it names it.
Self-test battery inside
877 fixture-based executed assertions (checks.py + runner_count.py per bundle norm) — verified as: two green fires from the shipping tree and two clean-room fires from THIS exact shipping zip (877/0 every fire; sha256 cef9e41d48d64b18f81687de9efcc91ba0d7e86779906f8b2602205ee4d8de6a), plus real-host smoke fires of all four tools (honest rc0 clean census / rc4 named findings / rc6 dark homes / usage exit 3). The battery pins rc laws, every finding code, the never-open-secrets law, grammar edges, caps, masking laws, stat hygiene, and write-nothing fingerprints with zero scratch remnants.
Who this is for
Admins who can't honestly answer whether their ZeroTier mesh trust story still holds on this host; hardening teams proving node identities, moon orbit, config grammar and captured CLI posture still form a closed loop; agent builders who want their AI to census a mesh's trust surface without ever touching a secret, opening a planet/world file or executing the CLI. The census reads — your mesh is never joined.
MIT licensed · Python 3.8+ · 40 files · stdlib-only