CLI-Anything Bundle #36 — Privilege Trust Recon Pack

Four battery-green agent-native recon tools covering the privilege & launch trust surface — who authenticates with what policy, what the desktop will launch and trust, what systemd will listen for even before services start, and who polkit lets do what. Buy: bleuquest.gumroad.com/l/cli-anything-priv-trust-recon — or FREE direct download below (Apache-2.0).

pampeek — PAM stack census

Every /etc/pam.d stack line by class — service file:line, type (auth/account/password/session), control (simple verb / bracketed summarized by KEY only / include / substack), module verbatim, args COUNT never the arguments — plus trust classes: pam_exec.so = EXEC_TRUST, URL in module arguments = FETCH_TRUST with the URL itself never printed, include/substack targets resolved present/missing, '-' dispatch prefixes flagged. Honest MALFORMED_SHORT / MALFORMED_TYPE / CONTROL_UNKNOWN / UNREADABLE / ABSENCE rows. Read-only by construction — zero subprocesses, zero writes. Apache-2.0, stdlib-only, Python 3.6+.

desktoppeek — desktop launcher trust census

Every .desktop launchable across the system and user layers: Exec posture (EXEC_PLAIN / NO_EXEC) with shell-metachar flags and fetch-string flags beside the verbatim value, TryExec/Terminal/NoDisplay/Hidden truth, [Desktop Action] and MimeType counts, and true layer overrides — the user copy wins and names the shadowed system file (override_of). Desktop field codes (%f/%u) are not false-flagged as shell meta. Honest MALFORMED_LINE / PRESECTION_IGNORED / UNREADABLE / ABSENCE rows. Apache-2.0, stdlib-only, Python 3.6+.

sockpeek — systemd socket-activation census

Static activation truth read straight from unit files: every .socket unit across etc → usr/lib → lib layered first-dir-wins (shadowing named with the losing file), every listen stanza classed — PORT / INET / INET6 / PATH / ABSTRACT / FIFO / SPECIAL / NETLINK / honest UNCLASSIFIED — Accept=yes per-connection spawns flagged, paired .service existence stated, '%' systemd-specifier rows flagged. Honest MALFORMED_SECTION / UNREADABLE / ABSENCE rows. The file is the truth — the manager is never spawned and no socket is opened. Apache-2.0, stdlib-only, Python 3.6+.

polkitpeek — polkit trust census

Two censuses of the authorization broker: rules.d JavaScript by TOKEN CLASS ONLY (addRule site count, polkit.Result verdict multiset by name, subject-matcher kinds, EXEC_TRUST on polkit.spawn files, FETCH_STRING on URL-strings — no JS source lines and no matched group/user VALUES ever printed, battery-pinned), and actions .policy XML defaults decoded per verdict — YES / NO / AUTH / AUTH_KEEP with keep-suffix awareness — beside verbatim values, with honest VERDICT_UNPARSEABLE rows. PARSE_FAILED for broken XML, UNREADABLE_DIR for permission-blocked dirs. Apache-2.0, stdlib-only, Python 3.6+.

Battery truth: 109 + 93 + 80 + 73 = 355 checks — fired twice consecutively plus a clean-room fire from this shipping zip; 0 failed every time. rc contracts: 0 clean / 4 findings / 6 nothing-readable / 2 usage across all four tools.