VMware-Harden is an AI-native VMware compliance and baseline enforcement tool, and a member of the vmware-* skill family. The project is a community-maintained open-source project, not affiliated with VMware, Inc. or Broadcom Inc., and the source code is publicly auditable under the MIT license.
Purpose VMware-Harden is used for compliance scanning and baseline checks of VMware vSphere environments, supporting multiple compliance standards, including CIS, vSphere SCG, Classified Protection 2.0, and PCI-DSS. It provides read-only scanning and does not modify the managed VMware infrastructure; remediation operations are deferred to vmware-pilot.
Main capabilities
- Built-in 9 baselines (7 baselines with rules totaling 99 rules, plus 2 v9 aliases), covering CIS ESXi 8.0 + 9.0, vSphere SCG v8 + v9, vSphere 9 STIG alignment, Classified Protection 2.0 Level 3, PCI-DSS 4.0, EU NIS2, and BSI IT-Grundschutz.
- Multi-vCenter digital twin (Twin), using a single DuckDB file stored at ~/.vmware-harden/twin.duckdb.
- Drift detection: after each scan, automatically runs a pure diff function, with optional persistence.
- LLM remediation advisor: powered by Anthropic, with prompt caching, and a mock fallback for testing or environments without an API key.
- MCP server: 8 read-only tools, including list_baselines, get_baseline_rules, list_stig_controls, describe_stig_content_sync, list_violations, get_remediation, list_drift_events, scan_target.
- Web dashboard: based on FastAPI + Jinja2 + Tailwind/HTMX/ECharts CDN.
- Environment diagnostics: vmware-harden doctor.
- Auditing: each MCP tool is wrapped via vmware-policy's @vmware_tool decorator.
Usagemethod
- Installation: the project uses the PEP 517 build system (hatchling), with no setup.py. For offline/air-gapped installation, you can build a wheel on a networked machine and copy it to the target machine.
- Configure MCP clients: refer to examples/mcp-configs/*.json.
- Remote access: supports serving MCP over HTTPS, requiring a bearer token. You can use --transport https or --transport http with a reverse proxy. Supports --public-name to restrict Host/Origin; the health check endpoint GET /healthz requires no token.
- Role restrictions: roles can be enabled via vmware-audit roles enable, assigning a role (such as reader) to each token, restricting the callable tools and targets.
- Custom baselines: YAML supports extends: to inherit built-in baselines.
Applicable scenarios
- Compliance scanning and baseline checks for VMware vSphere environments.
- Need for read-only, auditable compliance scanning that does not modify production environments.
- Centralized compliance management in multi-vCenter environments.
- Scenarios requiring drift detection and remediation recommendations.
- Integration with AI agents via MCP to enable automated compliance checks.
Limitations
- Read-only design: all 8 MCP tools are read-only and do not modify the managed VMware infrastructure. scan_target only writes to the local twin DB. Remediation operations are not performed by this tool.
- Interpretation of results: a violation itself is not a final conclusion. Rules can only judge the configuration actually collected. If no collector produces an attribute, the rule will not execute; if a rule executes but cannot obtain the value for a specific host (for example, the host is unreachable, account permissions are insufficient, or the ESXi version does not have that setting), it will not be reported as passed. --format json returns {"violations": [...], "coverage": {...}}, and MCP tools also return the same coverage block. Before v1.9.0, rules for uncollected attributes matched zero rows and were silently counted as passed; before v1.10.0, the same was true for single-node cases.
- VCF 9.0 / 9.1 compatibility: existing baselines can successfully scan VCF 9.0 / 9.1 cluster, but cis-vmware-esxi-9.0-subset and vsphere-scg-v9-subset are currently extends: aliases of the v8 parent baseline, with identical rules, only the IDs are renamed to v9. Rules specific to 9.x will be added after Broadcom publishes the v9 guidance.
- vsphere-stig-v9-subset status is experimental: it contains 12 host advanced setting controls, mapped to official open-source vSphere STIG content. Its checks read ESXi host advanced settings, a process that was verified on 2026-08-13 against standalone ESXi 8.0.3, but ESXi 9.x and vCenter-managed multi-host inventories have not yet been verified. Results on 9.x should be treated as non-authoritative.
- Content sync: vsphere-stig-v9-subset is a content sync, not an API wrapper. VCF Operations 9.1 ACC/SPM is UI- and plan-driven, with no public compliance REST API. For continuous, fleet-wide enforcement and auto-remediation, use VCF Operations SPM/ACC (UI).
- Remote access security: each caller needs a bearer token. The server will not start without a token, rejects Host/Origin values other than --public-name, and checks before binding that unauthenticated requests return 401. Everyone who can reach the endpoint acts as that server's account. The token identifies the caller but does not grant platform permissions. It is recommended to run one endpoint per permission level.
- The audit log records each caller as token:<name>. Calls naming different targets run in parallel; calls without a named target run one at a time.
- Tool limitations: all tools of this server are read-only, so --expose read makes no difference here; it applies to writable skills. Least privilege comes from the account used by the server.
Other information
- Acceptance criteria (v1.5.18 GA): 221 tests pass, Bandit 0 issues, all 8 MCP tools audited, SKILL.md ≤ 3000 words, SECURITY.md contains 6 elements and the Broadcom disclaimer, 9 built-in baselines, vmware-harden doctor environment diagnostics, GA member version aligned to 1.5.28.
- Related skills: vmware-aiops (host inventory and operations), vmware-monitor (read-only counterpart), vmware-storage (datastore inventory), vmware-nsx-security (DFW inventory), vmware-pilot (execute remediation), vmware-policy (audit decorator).
- Reference links: Security Configuration Guides: https://core.vmware.com/security/;SDKs: https://developer.broadcom.com/sdks;CIS Benchmarks: https://www.cisecurity.org/cis-benchmarks/。