Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

vmware-policyVMware 政策

Agent Skill

vmware-policy 用于辅助安全审计、权限检查和凭据风险排查,适合在 OpenClaw 中需要复核安全边界、认证流程或敏感配置时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,061

周安装

213

GitHub Stars

公开资料未说明

下载量

1,772
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vmware-policy(VMware 政策)
来源仓库:https://github.com/zw008/vmware-policy
安装命令:
openclaw skills install vmware-policy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install vmware-policy

简介

统一管理 VMware MCP 系列的安全策略与审核日志。

  • 适用于策略规则实施、输入参数清理和合规性检查任务。
  • 可辅助生成标准化审计报告和策略变更记录。vmware-policy 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 操作前需确认最小权限原则,避免越权修改关键策略。
  • 涉及生产环境变更时应保留原始配置快照以便追溯。

SKILL.md

name
vmware-policy
description
>
installer
kind
uv
package
vmware-policy
allowed-tools
user-invocable
false
metadata
{"openclaw":{"requires":{"bins":["vmware-audit"],"config":["~/.vmware/rules.yaml"]},"optional":{"env":["CLAUDE_SESSION_ID","OLLAMA_HOST"]},"homepage":"https://github.com/zw008/VMware-Policy","emoji":"🛡️","os":["macos","linux"]}}

VMware Policy

Disclaimer: This is a community-maintained open-source project and is not affiliated with, endorsed by, or sponsored by VMware, Inc. or Broadcom Inc. "VMware" and "vSphere" are trademarks of Broadcom. Source code is publicly auditable at github.com/zw008/VMware-Policy under the MIT license.

Unified audit logging, policy enforcement, and input sanitization -- the infrastructure layer for the entire VMware MCP skill family.

Infrastructure dependency: All 8 VMware skills depend on vmware-policy. It is auto-installed and provides the @vmware_tool decorator, sanitize(), and the shared audit database. Family: vmware-aiops (VM lifecycle), vmware-monitor (read-only monitoring), vmware-storage (iSCSI/vSAN), vmware-vks (Tanzu Kubernetes), vmware-nsx (NSX networking), vmware-nsx-security (DFW/firewall), vmware-aria (metrics/alerts/capacity), vmware-avi (AVI/ALB/AKO). | vmware-pilot (workflow orchestration)

What This Skill Does

CategoryComponentsCount
Audit LoggingAuditEngine (SQLite WAL), log rotation, agent detection3
Policy Enginedeny rules, maintenance windows, change limits, hot-reload4
Sanitizationsanitize() -- prompt injection defense, control char stripping1
Decorator@vmware_tool -- pre-check + execute + post-log + metadata1
CLIvmware-audit log, vmware-audit export, vmware-audit stats3

Quick Install

uv tool install vmware-policy
vmware-audit stats          # verify installation
vmware-policy is automatically installed as a dependency of all VMware skills. Manual install is only needed for standalone audit querying.

When to Use This Skill

  • Query the unified audit trail across all VMware skills
  • View denied operations and policy violations
  • Check audit statistics (by skill, by status, by time range)
  • Export audit logs as JSON for external analysis
  • Configure deny rules, maintenance windows, or change limits
  • Integrate the @vmware_tool decorator into a new VMware skill

This skill is auto-loaded as a dependency -- you do not need to invoke it directly. It activates when:

  • Any VMware skill tool function is called (via @vmware_tool decorator)
  • User asks about audit logs, denied operations, or policy rules
  • User runs vmware-audit CLI commands

Related Skills -- Skill Routing

User IntentRecommended Skill
VM lifecycle, deployment, guest opsvmware-aiops (uv tool install vmware-aiops)
Read-only monitoring, zero riskvmware-monitor (uv tool install vmware-monitor)
Storage: iSCSI, vSAN, datastoresvmware-storage (uv tool install vmware-storage)
Tanzu Kubernetes (vSphere 8.x+)vmware-vks (uv tool install vmware-vks)
NSX networking: segments, gateways, NATvmware-nsx (uv tool install vmware-nsx-mgmt)
NSX security: DFW rules, security groupsvmware-nsx-security (uv tool install vmware-nsx-security)
Aria Ops: metrics, alerts, capacityvmware-aria (uv tool install vmware-aria)
Load balancer, AVI, ALB, AKO, Ingressvmware-avi (uv tool install vmware-avi)
Multi-step workflows with approvalvmware-pilot
Audit log query, policy rulesvmware-policy -- this skill

Common Workflows

Query Recent Audit Activity

  1. View last 20 audit entries: vmware-audit log --last 20
  2. Filter by skill: vmware-audit log --skill vmware-nsx --last 50
  3. Check denied operations: vmware-audit log --status denied --since 2026-03-28
  4. View aggregate stats: vmware-audit stats --days 7

Set Up Policy Rules for Production

  1. Copy default rules: cp $(python -c "import vmware_policy; print(vmware_policy.__file__.replace('__init__.py','rules_default.yaml'))") ~/.vmware/rules.yaml
  2. Edit ~/.vmware/rules.yaml -- add deny rules for production:
   deny:
     - name: no-delete-in-prod
       operations: ["delete_*", "cluster_delete"]
       environments: ["production"]
       reason: "Destructive operations blocked in production"
   maintenance_window:
     start: "22:00"
     end: "06:00"
  1. Rules hot-reload automatically -- no restart needed
  2. Verify: vmware-audit log --status denied to see blocked operations

Export Audit Logs for Compliance

  1. Export all logs as JSON: vmware-audit export --format json > audit-export.json
  2. Filter by skill: vmware-audit export --skill vmware-aiops --since 2026-01-01
  3. Import into your SIEM or compliance tool

Usage Mode

ScenarioRecommendedWhy
Query audit logsCLIvmware-audit provides rich table output
Integrate into a skillPython APIfrom vmware_policy import vmware_tool, sanitize
Automated compliance exportCLIvmware-audit export --format json pipes to any tool

CLI Quick Reference

# View recent audit entries
vmware-audit log --last 20
vmware-audit log --skill vmware-nsx --status denied
vmware-audit log --since 2026-03-28 --tool delete_segment

# Export for compliance
vmware-audit export --format json > audit.json
vmware-audit export --skill vmware-aiops --since 2026-01-01

# Aggregate statistics
vmware-audit stats --days 7
vmware-audit stats --days 30
Full CLI reference: see references/cli-reference.md

Python API

from vmware_policy import vmware_tool, sanitize

# Wrap every MCP tool function
@vmware_tool(risk_level="high", sensitive_params=["password"])
def delete_segment(name: str, env: str = "") -> dict:
    ...

# Sanitize untrusted API responses before returning to LLM
clean_text = sanitize(api_response_text, max_len=500)

MCP Tools (0)

vmware-policy does not expose MCP tools. It is a Python library and CLI consumed by other VMware skills.

ComponentTypeDescription
@vmware_toolDecoratorWraps all 156+ MCP tools across 8 skills
sanitize()FunctionPrompt injection defense for API responses
AuditEngineClassSQLite WAL audit logger with rotation
PolicyEngineClassYAML rule evaluation with hot-reload
vmware-auditCLITyper CLI for querying audit trail
detect_agent()FunctionInfers calling AI agent from env vars (see below)

Agent Detection (Transparency Note)

The detect_agent() function in audit.py checks the following environment variables to identify which AI agent is calling the tools. This is read-only inspection for audit logging purposes — no credentials are extracted or stored:

Env VarDetected AgentPurpose
CLAUDE_SESSION_ID or CLAUDE_CODEclaudeClaude Code session
OPENAI_API_KEY or CODEX_SESSIONcodexOpenAI Codex session
OLLAMA_HOSTlocalLocal Ollama model
DEERFLOW_SESSIONdeerflowDeerFlow session
(none matched)unknownUnrecognized agent

The detected agent name is stored in the agent column of ~/.vmware/audit.db for audit trail purposes only. No API keys or tokens are logged.

Troubleshooting

"Cannot initialize audit DB" warning

The audit database directory ~/.vmware/ must be writable. Create it manually: mkdir -p ~/.vmware && chmod 700 ~/.vmware.

Policy rules not taking effect

Rules are loaded from ~/.vmware/rules.yaml. Verify the file exists and contains valid YAML. The PolicyEngine hot-reloads on file change -- no restart needed.

Audit log growing too large

The AuditEngine automatically rotates at 100MB, keeping the 5 most recent archives. For manual cleanup: ls ~/.vmware/audit.*.db to see archives.

"PolicyDenied" exception in skill

This means a deny rule in ~/.vmware/rules.yaml matched the operation. Check vmware-audit log --status denied to see the rule name and reason. To temporarily bypass: VMWARE_POLICY_DISABLED=1 (still logged as bypassed).

Decorator not detecting skill name

The @vmware_tool decorator infers the skill name from the module path (e.g., vmware_aiops.ops.vm_lifecycle -> aiops). If the module does not follow the vmware_<skill> convention, the skill is logged as "unknown".

SQLite "database is locked" error

Multiple concurrent skill processes can write to the same audit.db via WAL mode. If locks persist beyond 5 seconds, check for zombie processes holding the database file.

Setup

uv tool install vmware-policy
mkdir -p ~/.vmware
vmware-policy is auto-installed as a dependency of all VMware skills. The ~/.vmware/ directory is created automatically on first audit write.
Full setup guide, security details, and integration instructions: see references/setup-guide.md

Security

  • Source Code: github.com/zw008/VMware-Policy
  • Config File Contents: ~/.vmware/rules.yaml contains only rule definitions, no credentials
  • Webhook Data Scope: N/A -- vmware-policy does not send data externally
  • TLS Verification: N/A -- vmware-policy does not make network connections
  • Prompt Injection Protection: sanitize() truncates to 500 chars and strips C0/C1 control characters
  • Least Privilege: Audit database is local-only (~/.vmware/audit.db), no network exposure

License

MIT -- github.com/zw008/VMware-Policy

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.53%
按下载量换算1,516

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills