greglas75/zuvo/infra-audit
Claude Code and agent skill by greglas75/zuvo
- community
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-auditSKILL.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, plusexternal exposure verification through a proxy. This is the orthogonal companiontosecurity-audit(repo-resident IaC config),db-audit(DB as a data layer),andpentest(app-code exploitability). Routing boundary: **"is my serversecure?" → infra-audit**.Architecture (DD-5): a deterministic collector (scripts/infra-collect.sh)gathers everything per host into a normalized JSON bundle; **parallel LLManalysts each see only their layer's normalized findings; deterministic**dedup/scoring/report assembly. The LLM interprets, never detects.
Argument Parsing
| Argument | Meaning | |
|---|---|---|
[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 | |
--quick | IS1 + IS3 (internal) + IS4 only; < 3 min/host target | |
--dimensions IS1,IS3,… | Explicit dimension subset | |
--no-install | Hard read-only: never offer tool installation (disables the DD-3 gate) | |
--dry-run | Print 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 direct | Explicit opt-in to a proxyless external scan (polite timing -T2 --max-rate 50) | |
--skip-external | Internal vantage only (no external leg) | |
--deep-scan | nmap -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:
| Flag | Variable set | |
|---|---|---|
--external <mode> (e.g. --external direct) | EXTERNAL_MODE=<mode> | |
--skip-external | SKIP_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) | |
--quick | QUICK=1 | |
--dimensions <list> | DIMENSIONS=<list> | |
--no-install | NO_INSTALL=1 | |
--deep-scan | DEEP_SCAN=1 |
--external <mode> and --skip-external are mutually exclusive; error if both supplied.
Dimensions (IS1-IS12)
| ID | Dimension | Analyst | |
|---|---|---|---|
| IS1 | SSH hardening (sshd_config) | host-analyst | |
| IS2 | Accounts & auth | host-analyst | |
| IS3 | Network exposure — dual-vantage | network-analyst | |
| IS4 | TLS & certificates | network-analyst | |
| IS5 | Firewall & kernel net | host-analyst | |
| IS6 | Patch posture | host-analyst | |
| IS7 | Logging & intrusion detection | host-analyst | |
| IS8 | Deployed web services (safe tags only) | network-analyst | |
| IS9 | Docker | container-analyst | |
| IS10 | Database servers | data-analyst | |
| IS11 | Filesystem & kernel hardening | host-analyst | |
| IS12 | Secrets hygiene on host | data-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)
If any Stage 1 file is missing, STOP.
Stage 2 — Before Phase 3 (report writing)
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)
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.
Phase 0.1 — Resolve the output directory (IC-1)
Resolve the canonical run directory per report-output-location.md:
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:
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
- SKILL.md in the repositoryCheckingskills/infra-audit/SKILL.md
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
[](https://verified-skill.com/skills/greglas75/zuvo/infra-audit)