greglas75/zuvo/infra-audit

Claude Code and agent skill by greglas75/zuvo

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Server / infrastructure security audit of LIVE hosts over SSH (12 dimensions IS1-IS12: SSH hardening, accounts, network exposure, TLS, firewall, patch posture, logging, web services, Docker, databases, filesystem, host secrets). Deterministic collector + parallel LLM analysts; dual-vantage (internal SSH + external via proxy); per-target authorization gate; consent-gated tool installs; read-only with one consented exception. Flags: --host user@addr[:port] (single ad-hoc host), --quick (IS1+IS3+IS4, <3 min/host), --dimensions IS1,IS3,… (explicit subset), --no-install (hard read-only), --dry-run (print commands, no connections), --resume <run-dir> (continue interrupted run), --proxy <url> (external-scan proxy), --external direct (proxyless external scan, polite timing), --skip-external (internal vantage only), --deep-scan (nmap -p- full port sweep), --confirm-targets <sha256> (non-interactive authorization).

Install

npx vskill@latest install greglas75/zuvo/infra-audit

SKILL.md

The same SKILL.md was published earlier as greglas75/zuvo/infra-audit.

zuvo:infra-audit

Audit the security of LIVE servers/infrastructure the user owns, over SSH, plus
external exposure verification through a proxy. This is the orthogonal companion
to security-audit (repo-resident IaC config), db-audit (DB as a data layer),
and pentest (app-code exploitability). Routing boundary: **"is my server
secure?" → infra-audit**.
Architecture (DD-5): a deterministic collector (scripts/infra-collect.sh)
gathers everything per host into a normalized JSON bundle; **parallel LLM
analysts each see only their layer's normalized findings; deterministic**
dedup/scoring/report assembly. The LLM interprets, never detects.

Argument Parsing

ArgumentMeaning
[path/to/hosts.yaml]Fleet audit from inventory (default: zuvo/infra/hosts.yaml if present)
--host user@addr[:port]Single ad-hoc host, no inventory file needed
--quickIS1 + IS3 (internal) + IS4 only; < 3 min/host target
--dimensions IS1,IS3,…Explicit dimension subset
--no-installHard read-only: never offer tool installation (disables the DD-3 gate)
--dry-runPrint every SSH/local command without executing; no connections beyond DNS
--resume <run-dir>Continue an interrupted run from state.json
--proxy <url>External-scan proxy override (else hosts.yaml defaults.proxy, else $ZUVO_SCAN_PROXY)
--scan-via <ssh-target>Run the external leg FROM this SSH host via portable nc/openssl/curl (no nmap/testssl/nuclei/proxychains; macOS-safe; a real internet vantage). Highest external-vantage priority. Else hosts.yaml defaults.scan_via, else $ZUVO_SCAN_VIA
--external directExplicit opt-in to a proxyless external scan (polite timing -T2 --max-rate 50)
--skip-externalInternal vantage only (no external leg)
--deep-scannmap -p- instead of --top-ports 1000 (EXCLUDED from the AC-S2 timing SLA + 30-min wall clock)
--confirm-targets <sha256>Non-interactive authorization: sha256 of the resolved target list printed by a prior --dry-run. REQUIRED for any non-interactive run — without it the run ABORTS at the gate (targets are never auto-approved)

Parse flags first. --host and a hosts.yaml path are mutually-complete: exactly one target source must resolve. --quick and --dimensions are mutually exclusive (error if both). --resume <run-dir> overrides target resolution from the run's own state.json.

Variable mapping for flags that the collector invocation threads through:

FlagVariable set
--external <mode> (e.g. --external direct)EXTERNAL_MODE=<mode>
--skip-externalSKIP_EXTERNAL=1
--proxy <url>proxy=<url> (overrides hosts.yaml/env)
--scan-via <ssh-target>SCAN_VIA=<ssh-target> (overrides hosts.yaml defaults.scan_via / $ZUVO_SCAN_VIA)
--quickQUICK=1
--dimensions <list>DIMENSIONS=<list>
--no-installNO_INSTALL=1
--deep-scanDEEP_SCAN=1

--external <mode> and --skip-external are mutually exclusive; error if both supplied.

Dimensions (IS1-IS12)

IDDimensionAnalyst
IS1SSH hardening (sshd_config)host-analyst
IS2Accounts & authhost-analyst
IS3Network exposure — dual-vantagenetwork-analyst
IS4TLS & certificatesnetwork-analyst
IS5Firewall & kernel nethost-analyst
IS6Patch posturehost-analyst
IS7Logging & intrusion detectionhost-analyst
IS8Deployed web services (safe tags only)network-analyst
IS9Dockercontainer-analyst
IS10Database serversdata-analyst
IS11Filesystem & kernel hardeninghost-analyst
IS12Secrets hygiene on hostdata-analyst

--quick = IS1 + IS3 (internal only) + IS4. Full = all applicable; dimensions auto-skip when the surface is absent (e.g. IS9 without Docker → N/A).


Mandatory File Loading

Read in two stages (pentest model). Stage 1 before Phase 0; Stage 2 before Phase 3 (report writing). STOP if any Stage 1 file is missing.

Stage 1 — Before starting (STOP if any missing)
text
CORE FILES LOADED:
1. ../../shared/includes/env-compat.md -- [READ | MISSING -> STOP] (dispatch + [MODE SWITCH] rate-limit fallback)
2. ../../shared/includes/no-pause-protocol.md -- [READ | MISSING -> STOP] (HARD: no mid-loop pauses across hosts/dimensions)
3. ../../shared/includes/infra-check-registry.md -- [READ | MISSING -> STOP] (check_id → severity → remediation → CIS; Phase 3 authority)
4. ../../shared/includes/ssh-probe-protocol.md -- [READ | MISSING -> STOP] (IC-8 SSH invariants; authorization gate §1; runtime carrier)

If any Stage 1 file is missing, STOP.

Stage 2 — Before Phase 3 (report writing)
text
5. ../../shared/includes/backlog-protocol.md -- [READ | MISSING -> STOP] (findings are recorded through backlog-add)
6. ../../shared/includes/run-logger.md -- [READ | MISSING] (Run: line + append-runlog)
7. ../../shared/includes/retrospective.md -- [READ | MISSING] (RETRO: marker + retros.log/.md append)
8. ../../shared/includes/report-output-location.md -- [READ | MISSING] (canonical $ZUVO_DIR — output MUST go to zuvo/audits/)

Environment Compatibility

Dispatch follows ../../shared/includes/execution-policy.md through env-compat. Reuse existing authorization within that policy; session restrictions take precedence. Run each required gate and report its actual independence or an unmet requirement.

Read ../../shared/includes/env-compat.md for agent dispatch, path resolution, the [AUTO-DECISION] non-interactive contract, and the [MODE SWITCH] rate-limit fallback. Sub-agent dispatch is Claude-Code-native; Codex/Cursor/Antigravity run the analysts sequentially inline (no spawning) — see the Phase 2 dispatch block.

Mandatory acknowledgment (REQUIRED — print verbatim before Phase 0)
This audit connects to LIVE servers over SSH. It is read-only (one consented
exception: DD-3 tool installs). No target is contacted before the authorization
gate (ssh-probe-protocol §1) is explicitly confirmed. Secrets are redacted at the
collector (IC-5); SSH private key material is never read or stored (ssh-probe-
protocol §4).

Phase 0 — PREFLIGHT (laptop, before any SSH connection)

Phase 0 runs entirely on the laptop. No SSH connection opens until the Authorization Gate is explicitly confirmed.

Phase 0.0 — retro-marker (passive checkpoint capture)

Emit a passive run marker so an API-error-killed run is still attributable. This is a fire-and-forget bash block — never block the audit on it.

bash
# >>> zuvo:retro-marker (infra-audit — passive checkpoint capture)
_RS=$(command -v retro-stub 2>/dev/null || ls ~/.claude/plugins/cache/zuvo-marketplace/zuvo/*/scripts/zuvo-home/retro-stub 2>/dev/null | head -1)
_ZH="${ZUVO_HOME:-$HOME/.zuvo}"
_RSK="${SKILL:-infra-audit}"
_RPR="${PROJECT:-$(basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)")}"
_RSHA=$(git rev-parse --short HEAD 2>/dev/null || echo "-")
[ -n "$_RS" ] && "$_RS" --sweep >/dev/null 2>&1 || true
if mkdir -p "$_ZH/run-markers" 2>/dev/null; then
{ printf 'start_ts=%s\nskill=%s\nproject=%s\nsha7=%s\nbranch=%s\nsession_id=%s\nrepo_root=%s\n' \
"$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$_RSK" "$_RPR" "$_RSHA" \
"$(git branch --show-current 2>/dev/null || echo -)" "${ZUVO_SESSION_ID:-$_RSHA}" \
"$(git rev-parse --show-toplevel 2>/dev/null || pwd)" ; } \
> "$_ZH/run-markers/$_RSK-$_RPR-$_RSHA-$$-$(date +%s).marker" 2>/dev/null || true
fi
# <<< zuvo:retro-marker
Phase 0.1 — Resolve the output directory (IC-1)

Resolve the canonical run directory per report-output-location.md:

bash
ZUVO_DIR="${ZUVO_OUTPUT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)/zuvo}"
RUN_TS="$(date -u +%Y-%m-%d-%H%M)"
RUN_DIR="$ZUVO_DIR/audits/infra-audit-$RUN_TS" # IC-1
mkdir -p "$RUN_DIR/bundle" "$RUN_DIR/raw" "$RUN_DIR/findings"

On --resume <run-dir>, set RUN_DIR to the supplied dir instead and DO NOT re-timestamp (resume appends to its own dir only).

Implicit resume after an interrupted run (StopFailure / watchdog auto-resume). The collector is invoked from an orchestrator turn that can die on an API error / rate-limit; the StopFailure watchdog then re-invokes zuvo:infra-audit fresh, with the same args — without --resume. A naive fresh run would mint a NEW timestamped RUN_DIR and re-collect every host from zero, discarding the bundles the interrupted run already wrote (observed 2026-06-12: 7 auto-resumes). So BEFORE minting a new RUN_DIR, detect an in-progress run and adopt it:

bash
# Implicit-resume detection: the most-recent infra-audit run whose state.json
# still has a host NOT in a terminal status (reported|unreachable|failed) is an
# unfinished run — adopt its dir instead of creating a new one. A fresh first
# run (no such dir) falls through to the new-RUN_DIR mint above.
# NOTE: iterate via a glob (NOT `$(ls)`) — a `for x in $(ls)` word-splits on
# whitespace/glob chars in dir names. The glob yields one safe word per match;
# pick the newest by mtime without parsing `ls`.
if [ -z "${RESUME_DIR:-}" ]; then # only when --resume was NOT passed explicitly
_now="$(date +%s)"; _fresh_window=1800 # 30 min — the crash-recovery window
_newest=""; _newest_mt=0
for _d in "$ZUVO_DIR"/audits/infra-audit-*/; do
[ -d "$_d" ] && [ -f "${_d}state.json" ] || continue
_mt="$(stat -c %Y "${_d}state.json" 2>/dev/null || stat -f %m "${_d}state.json" 2>/dev/null || echo 0)"
# FRESHNESS BOUND: only auto-adopt a run whose state.json changed within the
# last 30 min — a genuine StopFailure/watchdog resume fires minutes after the
# kill. An OLDER unfinished run is NOT silently adopted (that would return
# stale results, or trust a poisoned/abandoned dir); the user gets a fresh run
# and can resume the old one explicitly with `--resume <dir>`.
[ $((_now - _mt)) -le "$_fresh_window" ] || continue
if jq -e '[.hosts[]?|select(.status|IN("reported","unreachable","failed")|not)]|length>0' \
"${_d}state.json" >/dev/null 2>&1; then
[ "$_mt" -gt "$_newest_mt" ] && { _newest_mt="$_mt"; _newest="${_d%/}"; }
fi
done
if [ -n "$_newest" ]; then
RUN_DIR="$_newest"
echo "[RESUME] adopting recent in-progress run $RUN_DIR (interrupted <30m ago) — skipping completed hosts"
fi
fi

On adoption, a per-host skip additionally validates the bundle at the gate before trusting collection_complete: true: the bundle must be valid JSON whose .host matches the inventory entry and whose bundle_sha256 (recomputed) is self-consistent. A bundle that fails validation re-collects from scratch — the collection_complete flag is a convenience signal, not a security boundary (everything under zuvo/ is local user state; a local attacker who can write it already has the access the audit would report).

Then in Phase 0.6 / Phase 1, per-host idempotency: skip any host whose state.json status is already reported (its report is immutable) or whose bundle/<host>.json has collection_complete == true (an unambiguous flag the collector sets ONLY on its final, fully-scanned write — NEVER infer "done" from a non-empty checks[]; an early/partial checkpoint has collection_complete: false and an empty/partial checks[] is NOT a clean result). A host whose bundle is absent or collection_complete: false re-collects from scratch (a partial bundle is never trusted — the resume table). This makes every auto-resume idempotent: finished hosts are not re-audited, the unfinished one continues. Write/update state.json after EACH host transitions (collecting → analyzed → reported) so the next auto-resume sees accurate progress.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
7-day trend score
11

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/greglas75/zuvo/infra-audit/badge)](https://verified-skill.com/skills/greglas75/zuvo/infra-audit)

Something wrong with this skill or its page? Tell us.