
VMware Harden
io.github.zw008由 GitHub 帳號 zw008 發布v1.8.7更新於 Oct 24, 2026
VMware compliance scanning (CIS, vSphere SCG, GB/T 22239, PCI-DSS) with drift detection.
概覽
讓助理對 VMware vSphere 執行唯讀合規掃描,涵蓋 CIS、SCG、STIG、PCI-DSS 等基準,並檢視違規與漂移。
- 可以做什麼
- 提供八個唯讀 MCP 工具:list_baselines、get_baseline_rules、list_stig_controls、describe_stig_content_sync、list_violations、get_remediation、list_drift_events 與 scan_target。內建九套基準(CIS ESXi 8.0/9.0、vSphere SCG v8/v9、STIG 對齊集、GB/T 22239 三級、PCI-DSS 4.0、EU NIS2、BSI IT-Grundschutz),共 99 條規則,並支援漂移偵測與可選的 LLM 修復建議。結果包含 coverage 區塊,方便區分違規與無法評估的檢查項。
- 適用情境
- 當助理需要依指定合規基準稽核 VMware vSphere 或 ESXi 設定、追蹤兩次掃描之間的設定漂移,或草擬供人工複核的修復建議時使用。適合單一時間點、可腳本化的掃描,而非持續的整體強制合規。
- 執行需求
- 以 uv 或 pip 安裝的本機 Python 套件(vmware-harden,掃描需 collectors 附加元件)。掃描資料依賴同系列的 vmware-* 收集器套件。需要 vCenter 或 ESXi 目標,以及具備讀取權限的認證資訊。可選設定 ANTHROPIC_API_KEY 以啟用修復建議,否則使用模擬回退。會在使用者家目錄下寫入本機 DuckDB 孿生資料庫檔案。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 VMware Harden,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
vmware-harden
For a read-only check of this skill with your model and agent host, use the shared model-fit self-test in the marketplace root.
Disclaimer: Community-maintained open-source project. Not affiliated with, endorsed by, or sponsored by VMware, Inc. or Broadcom Inc. "VMware", "vSphere", "ESXi", and "NSX" are trademarks of Broadcom. Source code is publicly auditable at github.com/vmware-skills/VMware-Harden under the MIT license.
English | 中文
AI-native VMware compliance and baseline enforcement. Sibling to the vmware-* skill family.
- Read-only against vSphere: all 8 MCP tools carry the
[READ]marker and none mutate managed VMware infrastructure;scan_targetwrites only to the local twin DB (a cache of its own observations). See Read-only by design.
GA family member (since v1.5.18)
Production-ready compliance platform with 9 built-in baselines (CIS ESXi 8.0 + 9.0, vSphere SCG v8 + v9, vSphere 9 STIG-aligned, 等保 2.0 三级, PCI-DSS 4.0, EU NIS2, BSI IT-Grundschutz) carrying 99 rules, a VMSA known-vulnerability check for ESXi and vCenter builds, multi-vCenter Twin, drift detection, LLM Remediation Advisor, MCP server with 8 audited tools, web dashboard, and vmware-harden doctor environment diagnostics.
Quickstart
Reading a result: violations alone are not a verdict
A rule can only judge configuration that was actually gathered, and that fails
in two independent ways. A rule whose attribute no collector produces is not
executed at all. A rule that does run can still learn nothing about one
particular host, because there the value came back absent or as the N/A
sentinel — an unreachable host, an account without the privilege, a setting the
ESXi build does not have. Neither is reported as passing:
--format json returns {"violations": [...], "coverage": {...}}, and the MCP
tools return the same coverage block, so an agent reading violations: 0
cannot conclude "compliant" on its own. Before v1.9.0 the uncollected-attribute
rules matched zero rows and were silently counted as passes; before v1.10.0 the
per-node case was, too. See RELEASE_NOTES.md.
The two lists call for different work: the first is waiting on a collector, the second on that node's reachability and the scanning account's privileges.
Offline / Air-Gapped Install (from source)
This project uses the modern PEP 517 build system (hatchling), so there is no
setup.py by design — that is expected, not a missing file. If you cloned the
source and hit ERROR: File "setup.py" or "setup.cfg" not found ... editable mode currently requires a setuptools-based build, your pip is older than 21.3 and
cannot do an editable (-e) install with a non-setuptools backend. Editable
mode is a developer convenience, not needed to run the tool — do one of:
For a truly air-gapped host, build the wheels on a connected machine and copy them over — the target then needs no network:
Read-Only by Design
vmware-harden is read-only against vSphere and NSX — all 8 MCP tools carry the [READ]
marker, and none mutate managed VMware infrastructure. scan_target writes only to the
local twin DB (~/.vmware-harden/twin.duckdb), a cache of its own observations rather than
managed infrastructure. Remediation is never applied by this skill; it is deferred to
vmware-pilot, which provides approval gating and audit trails for write operations.
Built-in baselines
baseline list returns 10 IDs: the 7 rule-bearing YAML baselines above (99 rules total), the
two v9 aliases, which carry no rules of their own and resolve to their v8 parent's, and
vmsa-advisories, which is generated from the advisory catalog rather than read from a file.
Known vulnerabilities (VMSA)
vmsa-advisories judges each ESXi host's and the vCenter's own version and build
against an offline catalog of VMware security advisories shipped in the package
(vmware_harden/advisories/catalog.yaml, checked against its sources on the catalog
date). One rule per advisory; each rule's text quotes the 等保 2.0 三级 control it
evidences (安全计算环境·入侵防范: find known vulnerabilities and patch them after testing).
A clean result means no open advisory known as of the catalog date, not "not
vulnerable": advisories published later are not in the catalog. Builds are compared
only within one major.minor line (a 7.0 U3 build can be numerically larger than an
8.0 GA build).
How the catalog is built. Broadcom's advisory pages are behind a bot challenge and
cannot be read by a script, and Broadcom publishes no CSAF feed. Each entry is assembled
from the NVD CVE API (CVEs, CVSS, vulnerable versions), the CISA KEV feed (exploited in
the wild), and Broadcom's build-number KB articles (fixed builds), with each fixed release
confirmed against an independent source quoting the advisory. Every fix is checked
mechanically against a snapshot of the build KB in builds.yaml. The first catalog
(2026-10-19) carries three KEV-listed advisories: VMSA-2025-0004 (ESXi), VMSA-2024-0019
and VMSA-2026-0006 (vCenter; its ESX half is not catalogued yet and reports unknown).
Optional refresh. vmware-harden advisories update downloads the CISA KEV feed (and, with
--nvd, NVD scores) into ~/.vmware-harden/advisories-cache.json, which the catalog loader
overlays: KEV flags are only ever added, CVSS only filled where missing, and fixed builds are never
taken from it. It also lists ESXi/vCenter CVEs in KEV that no catalogued advisory covers. A failed
KEV fetch exits 1 and leaves the previous cache unchanged; an NVD record that cannot be read is
reported and does not block the KEV refresh. A running MCP server picks up a new cache on its next
call. Reports show when KEV was last checked. vmware-harden advisories show prints the catalog
date and the last refresh.
VCF 9.0 / 9.1 Compatibility
The existing baselines (cis-vmware-esxi-8.0-subset, vsphere-scg-v8, dengbao-2.0-level3-vmware, pci-dss-4.0-vmware) scan VCF 9.0 / 9.1 clusters successfully — most rules target host advanced settings stable across 8.x → 9.x. cis-vmware-esxi-9.0-subset and vsphere-scg-v9-subset ship today as extends: aliases of their v8 parents — same rules, a v9-named ID to scan and report under. Rules specific to 9.x will be added to them as Broadcom publishes the v9 guides.
vsphere-stig-v9-subset is a rule-bearing STIG-aligned baseline: 12 host advanced-setting controls (account lockout, password policy, DCUI access, shell/DCUI timeouts, MOB, guest BPDU, remote syslog) mapped to the official open-source vSphere STIG content (MITRE InSpec / Cinc Auditor). Status: experimental. Its checks read ESXi host advanced settings the host collector fetches via a config.option PropertyCollector pass. That pass was verified end-to-end on 2026-08-13 against a live standalone ESXi 8.0.3 (build 24280767): all 12 attributes came back populated, with values in the shapes the rules expect (account_lock_failures=5, dcui_access='root', password_quality_control='retry=3 min=disabled,disabled,disabled,7,7', mob_enabled=False, syslog_remote_host=''), and the scan raised 3 genuine violations. Still unverified, and why the status stays experimental: ESXi 9.x, which is what this baseline actually targets, and any vCenter-managed multi-host inventory. Treat results on 9.x as non-authoritative. The v1.9.0 undetermined mechanism does not cover a failed fetch on its own: it refuses a rule when no collector declares the attribute, a static check against the vocabulary, and these STIG attributes are declared, so their rules do run. If the real PropertyCollector pass comes back empty on live hardware, the attribute is simply absent and the rule again matches zero rows. v1.10.0 catches that case — such a host is recorded as a per-node gap (coverage.undetermined_node_checks) rather than a pass, so an unverified collector shows up as unjudged hosts instead of a clean report. What remains unverified is whether the pass returns the right values, which no coverage mechanism can tell you. The baseline's status field is surfaced by list_baselines and describe_stig_content_sync so a scan self-declares this caveat. It is a content sync, not an API wrapper — VCF Operations 9.1 Automated Configuration Compliance (ACC) / Security Posture Management (SPM) is UI- and schedule-driven and exposes no public compliance REST API. For continuous, fleet-wide enforcement and automated remediation, use VCF Operations SPM/ACC (UI); vmware-harden is the API-scriptable, DuckDB-persisted, cross-target point-in-time scanner. See references/stig-content-sync.md and inspect the catalog with vmware-harden stig controls.
Official Broadcom References
- Security Configuration Guides: https://core.vmware.com/security/ — vSphere SCG v8 / future v9
- SDKs: https://developer.broadcom.com/sdks — VCF Python SDK (for fetching host config via REST)
- CIS Benchmarks: https://www.cisecurity.org/cis-benchmarks/ — CIS VMware ESXi Benchmark v1.0 (8.0 / future 9.0)
Custom baselines
YAML supports extends: for inheriting from a built-in baseline. See skills/vmware-harden/references/cli-reference.md.
MCP server
Configure your MCP client with one of examples/mcp-configs/*.json. 8 read-only tools: list_baselines, get_baseline_rules, list_stig_controls, describe_stig_content_sync, list_violations, get_remediation, list_drift_events, scan_target.
Architecture
- Estate Digital Twin — DuckDB single file at
~/.vmware-harden/twin.duckdb. Multi-target safe via target prefix on all node IDs. - Collectors — lazy-import sibling vmware-* skills (no spawn overhead). All scans are READ; writes deferred to vmware-pilot.
- Baseline schema — Pydantic v2, strict (
extra="forbid"),extends:inheritance, user-dir override. - Drift — pure diff function with optional persistence; auto-runs after every scan.
- Advisor — LLM-driven Suggestion generation; Anthropic provider with prompt caching; mock fallback for tests / no-API-key environments.
- Audit — every MCP tool wrapped with
@vmware_toolfrom family vmware-policy. - Web — FastAPI + Jinja2 + Tailwind/HTMX/ECharts CDN.
Lab regression
Family
- vmware-aiops — host inventory + ops (used by harden's HostCollector)
- vmware-monitor — read-only counterpart
- vmware-storage — datastore inventory
- vmware-nsx-security — DFW inventory
- vmware-pilot — execute remediations (writes; out of scope for harden)
- vmware-policy —
@vmware_toolaudit decorator
Acceptance criteria (v1.5.18 GA)
- 221 tests passing
- Bandit: 0 issues at any severity
- All 8 MCP tools audited
- SKILL.md ≤ 3000 words, family-convention compliant
- SECURITY.md with 6 elements + Broadcom disclaimer
- 9 built-in baselines (99 rules across 7 rule-bearing sets + 2 v9 aliases)
vmware-harden doctorfor environment diagnostics- GA member of vmware-* family (version-aligned at 1.5.28)
References
- Family CLAUDE.md:
CLAUDE.mdat the monorepo root
Remote access (HTTPS) and limiting tools
By default vmware-harden mcp speaks stdio to one local client and offers every tool. Two options change that
(vmware-policy ≥ 1.21.0).
Serve over HTTPS so clients on other machines can connect. Every caller needs a bearer token:
Connect a client (Claude Code shown; any MCP client that supports streamable HTTP and custom headers works):
- The server will not start without a token, refuses Host/Origin values outside
--public-name, and checks before it binds that unauthenticated requests get 401. Use a certificate your clients trust for those names. - Behind a TLS-terminating reverse proxy on the same machine use
--transport http --host 127.0.0.1 --public-name mcp.example.comand pass theAuthorizationheader through. - Behind a load balancer or gateway on another machine, keep
--transport https(a self-signed certificate is fine), list in--public-namethe host name the balancer sends asHost, and have it forwardAuthorization. Its health probe can useGET /healthz, which needs no token and returns only{"status": "ok"}(vmware-policy ≥ 1.23.0). - Send
traceparentorX-Request-IDwith each request to have it stored on the audit row;vmware-audit log --correlation-id IDthen finds the calls behind one platform request. - The audit log records each caller as
token:<name>. Calls naming different targets run in parallel; calls that name no target run one at a time, so name the target when several people share a server. - Everyone who can reach the endpoint acts with this server's account. Tokens identify callers; they grant nothing on the platform. Run one endpoint per privilege level.
- Several people or roles on one endpoint: run
vmware-audit roles enableonce, then give each token a role (vmware-audit token create NAME --role reader, or a role inroles.yamlnaming tools and targets; vmware-policy ≥ 1.24.0). A role limits what the token may call on this endpoint; it cannot grant more than the account has. For a target-limited role,scan_target's target is checked against vmware-aiops' config; the datastore and DFW collectors look the same name up in vmware-storage's and vmware-nsx-security's configs, so a name must mean the same system in all three. See vmware-policy's README, "Roles for network callers".
Limiting tools: every tool of this server is read-only, so --expose read changes nothing here; it
exists for the write-capable skills. Least privilege comes from the account the server uses.
Details: skills/vmware-harden/references/setup-guide.md ("Serving MCP over HTTPS", "Limiting which tools are offered").
License
MIT
來源:README.md,提交 18b15f7
工具
0版本歷史
1- v1.8.7最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分