Navil Shield — Runtime Security for OpenClaw
VirusTotal scans skills before install. ClawSec checks file integrity. Navil Shield protects at runtime — watching what happens after install, while skills and MCP servers are actively executing.
Static scanning catches 1.7% of threats. Runtime monitoring catches the other 98.3%.
What This Skill Does
Navil Shield wraps every MCP server in your OpenClaw config with a transparent security proxy that:
- - Intercepts every tool call in real-time and checks it against 568+ known attack patterns across 30 categories
- Detects behavioral anomalies using 11 statistical detectors with adaptive baselines
- Enforces policies — restrict which tools each agent can see and call
- Connects to the Community Threat Network — attack patterns discovered by other Navil users protect you within seconds
- Logs everything — full audit trail of every tool call, policy decision, and anomaly
Overhead: <3 microseconds per message. You will not notice it.
When to Use This Skill
- - User says "secure my setup" or "protect my OpenClaw" or "check my security"
- User is concerned about MCP security, prompt injection, or data exfiltration
- User just heard about ClawHavoc or CVE-2026-25253
- User asks "is my setup safe?" or "audit my skills" or "scan for threats"
- User wants to monitor what their MCP servers are doing
- User wants to reduce token costs by scoping which tools agents can see
- Automatically when new MCP servers or skills are added to the config
First-Time Setup
When the user activates this skill for the first time, follow these steps exactly:
Step 1: Install Navil
CODEBLOCK0
Verify installation:
CODEBLOCK1
If pip is not available, try:
CODEBLOCK2
Step 2: Find the OpenClaw MCP Config
Look for the OpenClaw configuration file. Check these locations in order:
- 1.
./openclaw.json (current workspace) - INLINECODE1 (user config)
If found, extract the MCP server configuration section.
Step 3: Wrap All MCP Servers
Run the one-command setup:
CODEBLOCK3
Show the user what will change. If they confirm:
CODEBLOCK4
Tell the user: "Your original config has been backed up automatically. Every MCP server is now monitored by Navil's security proxy. To undo at any time: navil wrap <path-to-config> --undo"
Step 4: Run Initial Scan
CODEBLOCK5
Present the security score (0-100) and any findings to the user in plain language. Group by severity: CRITICAL first, then HIGH, MEDIUM, LOW.
Step 5: Confirm Threat Network Connection
CODEBLOCK6
Tell the user: "You're connected to the Navil Community Threat Network. Attack patterns discovered by other users will automatically protect your setup. No personal data leaves your machine — only anonymized threat metadata."
Ongoing Protection
After initial setup, this skill provides continuous protection:
When the User Asks "Check My Security" or "Security Status"
Run:
CODEBLOCK7
Present the score and any new findings since last check.
When the User Installs a New Skill or MCP Server
After any skill installation from ClawHub or manual MCP config change:
- 1. Re-run
navil scan <path-to-config> on the updated config - If the new server is not yet wrapped, run INLINECODE4
- Report any findings about the new addition
When the User Asks for a Full Audit
Run the penetration test suite:
CODEBLOCK8
This runs 11 SAFE-MCP attack simulations (no real network traffic) and reports which threats the current setup catches. Present results as a pass/fail table.
When the User Asks About Token Costs or Tool Bloat
Navil can scope which tools each agent sees, reducing schema tokens by up to 94%:
CODEBLOCK9
Explain that creating a policy file at ~/.navil/policy.yaml with tool scopes reduces both security risk and inference cost. Offer to generate a starter policy based on current usage.
When the User Wants to Undo
CODEBLOCK10
This restores the original config from the automatic backup.
Telemetry Transparency
By default, Navil shares anonymized threat metadata with the Community Threat Network. Here is exactly what is sent:
- - Sent: anomaly type (e.g. "RATE_SPIKE"), severity, confidence score, tool name, timing metadata
- NOT sent: raw tool arguments, tool responses, file contents, agent prompts, user data
- Agent IDs: one-way HMAC-SHA256 hashed — irreversible, cannot be linked to real identities
- Destination:
https://navil-cloud-api.onrender.com/v1/telemetry (see source: navil/cloud/telemetry_sync.py) - Opt-out: set
NAVIL_DISABLE_CLOUD_SYNC=true to stop all telemetry - Full audit: inspect
navil/cloud/telemetry_sync.py in the repo to see exactly what is collected
What Navil Shield Does NOT Do
- - It does not replace VirusTotal scanning or ClawSec file integrity checks — those catch different threats at different layers. Use all three together for defense in depth.
- It does not require an account or API key for the free Community tier.
- It does not slow down your agent — 2.7 microsecond overhead per message.
- It does not phone home with your data — only anonymized threat metadata is shared, and you can fully opt out with
NAVIL_DISABLE_CLOUD_SYNC=true.
Upgrade to Navil Pro
The free Community tier includes full runtime protection with community threat intelligence (48-hour delay on new patterns).
For real-time threat intel, OIDC identity integration, custom policy rules, and fleet analytics:
CODEBLOCK11
Plans start at $59/month. Details at https://navil.ai
Troubleshooting
- - "navil: command not found" — Run
pip install navil again, or check that your pip bin directory is in PATH. - "No MCP servers found in config" — Verify the config path. OpenClaw configs are typically at
~/.openclaw/openclaw.json. - "Redis not available" — The shim mode (what
navil wrap uses) works without Redis. Redis is only needed for the full proxy mode. - Undo everything —
navil wrap <config> --undo restores your original config from the automatic backup.
Links
- - GitHub: https://github.com/navilai/navil
- Documentation: https://navil.ai/docs
- Community Threat Radar: https://navil.ai/radar
- Report an issue: https://github.com/navilai/navil/issues
技能名称: navil-shield
详细描述:
Navil Shield — OpenClaw 运行时安全
VirusTotal 在安装前扫描技能。ClawSec 检查文件完整性。Navil Shield 在运行时提供保护——监控安装后、技能和 MCP 服务器正在执行时发生的情况。
静态扫描能捕获 1.7% 的威胁。运行时监控能捕获其余的 98.3%。
此技能的功能
Navil Shield 用一个透明的安全代理包裹 OpenClaw 配置中的每个 MCP 服务器,该代理能够:
- - 实时拦截每次工具调用,并根据 30 个类别中的 568 多种已知攻击模式进行检查
- 使用 11 个具有自适应基线的统计检测器检测行为异常
- 执行策略 — 限制每个代理可以查看和调用的工具
- 连接到社区威胁网络 — 其他 Navil 用户发现的攻击模式可在数秒内保护您
- 记录所有内容 — 每次工具调用、策略决策和异常的完整审计追踪
开销:每条消息小于 3 微秒。 您不会察觉到。
何时使用此技能
- - 用户说“保护我的设置”或“保护我的 OpenClaw”或“检查我的安全性”
- 用户担心 MCP 安全、提示注入或数据泄露
- 用户刚刚听说 ClawHavoc 或 CVE-2026-25253
- 用户问“我的设置安全吗?”或“审计我的技能”或“扫描威胁”
- 用户想要监控他们的 MCP 服务器正在做什么
- 用户希望通过限定代理可以看到的工具来降低令牌成本
- 当新的 MCP 服务器或技能被添加到配置时自动触发
首次设置
当用户首次激活此技能时,请严格按照以下步骤操作:
步骤 1:安装 Navil
bash
pip install navil --break-system-packages 2>/dev/null || pip install navil
验证安装:
bash
navil --version
如果 pip 不可用,请尝试:
bash
pip3 install navil --break-system-packages 2>/dev/null || pip3 install navil
步骤 2:找到 OpenClaw MCP 配置
查找 OpenClaw 配置文件。按顺序检查以下位置:
- 1. ./openclaw.json(当前工作区)
- ~/.openclaw/openclaw.json(用户配置)
如果找到,提取 MCP 服务器配置部分。
步骤 3:包裹所有 MCP 服务器
运行一键设置命令:
bash
navil wrap --dry-run
向用户展示将要更改的内容。如果他们确认:
bash
navil wrap
告诉用户:“您的原始配置已自动备份。每个 MCP 服务器现在都受到 Navil 安全代理的监控。要随时撤销:navil wrap --undo”
步骤 4:运行初始扫描
bash
navil scan
用通俗易懂的语言向用户呈现安全评分(0-100)和任何发现。按严重性分组:首先是严重,然后是高、中、低。
步骤 5:确认威胁网络连接
bash
navil cloud status 2>/dev/null || echo 以社区模式运行 — 威胁情报有效,延迟 48 小时
告诉用户:“您已连接到 Navil 社区威胁网络。其他用户发现的攻击模式将自动保护您的设置。没有个人数据离开您的机器——仅共享匿名化的威胁元数据。”
持续保护
初始设置后,此技能提供持续保护:
当用户询问“检查我的安全性”或“安全状态”时
运行:
bash
navil scan
呈现评分以及自上次检查以来的任何新发现。
当用户安装新技能或 MCP 服务器时
在从 ClawHub 安装任何技能或手动更改 MCP 配置后:
- 1. 在更新后的配置上重新运行 navil scan
- 如果新服务器尚未被包裹,运行 navil wrap
- 报告关于新添加内容的任何发现
当用户要求进行全面审计时
运行渗透测试套件:
bash
navil pentest
这将运行 11 个 SAFE-MCP 攻击模拟(无真实网络流量),并报告当前设置捕获了哪些威胁。以通过/失败表格的形式呈现结果。
当用户询问令牌成本或工具膨胀时
Navil 可以限定每个代理可以看到的工具,从而将模式令牌减少高达 94%:
bash
navil policy check --tool --agent --action read
解释在 ~/.navil/policy.yaml 创建包含工具作用域的策略文件可以同时降低安全风险和推理成本。提供根据当前使用情况生成入门策略。
当用户想要撤销时
bash
navil wrap --undo
这将从自动备份中恢复原始配置。
遥测透明度
默认情况下,Navil 与社区威胁网络共享匿名化的威胁元数据。以下是确切发送的内容:
- - 发送: 异常类型(例如“RATESPIKE”)、严重性、置信度评分、工具名称、时间元数据
- 不发送: 原始工具参数、工具响应、文件内容、代理提示、用户数据
- 代理 ID: 单向 HMAC-SHA256 哈希处理 — 不可逆,无法链接到真实身份
- 目的地: https://navil-cloud-api.onrender.com/v1/telemetry(请参阅源代码:navil/cloud/telemetrysync.py)
- 选择退出: 设置 NAVILDISABLECLOUDSYNC=true 以停止所有遥测
- 完整审计: 检查仓库中的 navil/cloud/telemetrysync.py 以准确了解收集了哪些内容
Navil Shield 不做什么
- - 不 替代 VirusTotal 扫描或 ClawSec 文件完整性检查——这些在不同层面捕获不同的威胁。请三者结合使用以实现纵深防御。
- 不 需要账户或 API 密钥即可使用免费社区版。
- 不 减慢您的代理速度——每条消息 2.7 微秒的开销。
- 不 将您的数据回传——仅共享匿名化的威胁元数据,并且您可以通过 NAVILDISABLECLOUD_SYNC=true 完全选择退出。
升级到 Navil Pro
免费社区版包括完整的运行时保护和社区威胁情报(新模式延迟 48 小时)。
如需实时威胁情报、OIDC 身份集成、自定义策略规则和集群分析:
bash
navil cloud login
套餐起价为每月 59 美元。详情请访问 https://navil.ai
故障排除
- - “navil: command not found” — 再次运行 pip install navil,或检查您的 pip bin 目录是否在 PATH 中。
- “No MCP servers found in config” — 验证配置路径。OpenClaw 配置通常位于 ~/.openclaw/openclaw.json。
- “Redis not available” — 垫片模式(navil wrap 使用的模式)无需 Redis 即可工作。Redis 仅在完整代理模式下需要。
- 撤销所有操作 — navil wrap --undo 从自动备份中恢复您的原始配置。
链接
- - GitHub:https://github.com/navilai/navil
- 文档:https://navil.ai/docs
- 社区威胁雷达:https://navil.ai/radar
- 报告问题:https://github.com/navilai/navil/issues