360 Secure SkillHub
360 安全技能中心

Navil Audit

该技能调用 Navil 命令行工具对 OpenClaw 中已安装的技能、MCP 服务器与代理配置进行安全扫描,分阶段执行配置扫描、渗透测试模拟、技能完整性检查,并按严重程度给出评分、发现项和修复建议,支持 CI/CD 的 SARIF 输出。

ivanpantheon
ivanpantheon
热度 42.43
最近更新 2026-05-11 17:36:11
分类:安全依赖:代码执行 / 读写文件应用场景:报告撰写 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add navil-audit
Metadata
name
navil-audit
description
Deep security audit for OpenClaw. Run a comprehensive scan of all installed skills, MCP servers, and agent configuration. Generates a detailed security report with severity-ranked findings and remediation steps. Use when user says "audit my security", "deep scan", "full security check", "pentest my setup", "run security tests", "check for vulnerabilities", "am I safe", or "what MCP attacks would work against me". Also for CI/CD security gates and compliance reporting.
version
1.0.2
metadata
{"openclaw":{"emoji":"🔍","homepage":"https://github.com/navilai/navil","requires":{"bins":["pip"]},"install":[{"id":"pip-navil","kind":"pip","package":"navil","bins":["navil"],"label":"Install Navil security toolkit"}]}}

Navil Audit — Deep Security Audit for OpenClaw

A comprehensive security assessment that goes beyond scanning files. Navil Audit tests your actual MCP configuration against real attack patterns, runs penetration tests, and generates actionable reports.

When to Use This Skill

  • User asks for a "full security audit" or "deep scan" or "security check"
  • User wants to know what attacks would work against their current setup
  • User needs a security report for compliance or review
  • User is evaluating whether their MCP servers are safe for production use
  • User says "pentest" or "penetration test" or "attack simulation"
  • Before deploying a new MCP server to production
  • As part of a CI/CD pipeline security gate

Audit Process

When the user requests an audit, run the following steps in order. Present each section's results before moving to the next.

Phase 1: Configuration Scan

navil scan <path-to-config> --format json

Parse the JSON output. Present findings grouped by severity:

  • CRITICAL: Must fix immediately (plaintext credentials, no authentication, known CVE patterns)
  • HIGH: Should fix soon (over-privileged permissions, unverified sources)
  • MEDIUM: Worth addressing (missing best practices)
  • LOW: Informational

Show the overall security score (0-100) prominently.

Phase 2: Penetration Testing

navil pentest

This runs 11 SAFE-MCP attack simulations. No real network traffic is generated. Present results as a table:

Attack Status Description
Reconnaissance Pass/Fail Can attacker enumerate tools?
Supply chain Pass/Fail Can attacker inject via dependencies?
C2 beaconing Pass/Fail Can tools phone home to attacker?
Rug pull Pass/Fail Can server change behavior post-install?
Prompt injection Pass/Fail Can input manipulate tool calls?
Data exfiltration Pass/Fail Can data leak through tool responses?
Privilege escalation Pass/Fail Can agent gain unauthorized access?
... ... ...

Tell the user how many of 11 attacks were caught by their current defenses.

Phase 3: Skill Integrity Check

For each installed skill in the workspace, check:

  1. Does the skill have a config.json with declared permissions?
  2. Do the declared permissions match what the skill actually does?
  3. Is the skill from a verified ClawHub publisher?
  4. Has the skill been flagged by VirusTotal?
  5. Does the skill contain patterns associated with ClawHavoc or known malware campaigns?

Use navil's scanning capabilities:

navil scan <path-to-each-skill-config> 2>/dev/null

Phase 4: Report Generation

After all phases complete, generate a summary for the user:

=== NAVIL SECURITY AUDIT REPORT ===

Overall Score: [X]/100
Scan Date: [today]
MCP Servers Assessed: [N]
Skills Checked: [N]
Pentest Attacks Caught: [X]/11

CRITICAL Findings: [N]
HIGH Findings: [N]
MEDIUM Findings: [N]
LOW Findings: [N]

Top 3 Remediation Steps:
1. [Most impactful fix]
2. [Second most impactful fix]
3. [Third most impactful fix]

If the user wants a file-based report:

navil report <scan-results-file>

Phase 5: Remediation Guidance

For each CRITICAL and HIGH finding, provide:

  • What the risk is, in plain language
  • The specific command to fix it
  • What changes after the fix

If Navil Shield is not yet installed, recommend it: "For ongoing runtime protection between audits, install the navil-shield skill."

SARIF Output for CI/CD

For automated pipelines, the audit can output SARIF format:

navil scan <config> --format sarif --output navil-results.sarif

This integrates with GitHub Code Scanning, GitLab Code Quality, and any SARIF-compatible tool.

Links