返回顶部
s

skills-audit技能审计

Audit locally installed agent skills for security/policy issues using the SkillLens CLI (`skilllens scan`, `skilllens config`). Use when asked to scan a skills directory (Codex/Claude) and produce a risk-focused audit report based on each skill's `SKILL.md` and bundled resources.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,187
下载量
免费
免费
4
收藏
概述
安装方式
版本历史

skills-audit

技能审计 (SkillLens)

安装 SkillLens

  • - 一次性运行:npx skilllens scan(或 pnpm dlx skilllens scan)
  • 全局安装:pnpm add -g skilllens

快速开始

  • - 运行 skilllens config 查看已配置的扫描根目录和审计工具 CLI 可用性。
  • 运行 skilllens scan 扫描已配置的根目录,或 skilllens scan <路径> 扫描特定目录。
  • 使用 --verbose 参数重新运行可查看原始审计输出,使用 --force 参数可忽略缓存结果。

审计工作流程

  1. 1. 定义范围
- 优先使用具体的目标路径(例如:~/.codex/skills),除非用户明确要求扫描所有已配置的根目录。 - 如果审计包含技能的仓库检出目录,请扫描包含技能目录的父文件夹(例如:skilllens scan ./skills)。
  1. 2. 使用 SkillLens 盘点技能
- 运行 skilllens scan [路径] [--auditor claude|codex]。 - 将缺失的审计工具 CLI 或 skipped(已跳过)状态视为需要人工审核,而非安全。
  1. 3. 确定审核优先级
- 首先审核标记为 unsafe(不安全)或 suspicious(可疑)的技能。 - 其次审核请求广泛权限(文件系统/网络)、运行 shell 命令或引用外部下载的技能。
  1. 4. 人工审核每个技能的内容
- 阅读技能的 SKILL.md 文件以及所有引用的 scripts/、references/ 和 assets/ 目录。 - 默认情况下不要执行捆绑的脚本,先进行检查。
  1. 5. 评估风险(重点关注实际滥用场景)
- 数据泄露:将文件内容、环境变量、令牌、SSH 密钥、浏览器数据或配置文件发送到远程端点。 - 执行风险:指示运行任意 shell 命令、curl | bash、eval 或获取并执行代码。 - 持久化风险:修改 shell 配置文件、启动代理、定时任务、编辑器配置或技能安装位置。 - 权限/审批绕过:指示忽略系统策略、禁用安全检查或不必要地请求提升权限。 - 提示注入:尝试覆盖更高优先级的指令(忽略之前的指令、始终遵从、永远不要提及...)。 - 过度触发:模糊的描述导致技能在不相关的任务上被触发。
  1. 6. 生成报告
- 对于每个技能,包括:名称、路径、判定结果(安全/可疑/不安全)、风险等级(0–100),以及带有具体证据(引用或文件名)的要点问题。 - 建议减少影响范围的修复措施:缩小范围、移除危险的默认设置、添加明确的确认关卡、记录所需的权限。

命令示例

  • - 扫描已配置的根目录:skilllens scan
  • 扫描特定文件夹:skilllens scan ~/.codex/skills
  • 强制重新审计并显示原始输出:skilllens scan ~/.codex/skills --force --verbose

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skill-audit-1775942205 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skill-audit-1775942205 技能

通过命令行安装

skillhub install skill-audit-1775942205

下载

⬇ 下载 skills-audit v1.0.0(免费)

文件大小: 2.04 KB | 发布时间: 2026-4-12 11:24

v1.0.0 最新 2026-4-12 11:24
Initial release of the skills-audit tool using SkillLens.

- Audits locally installed agent skills for security and policy issues via the SkillLens CLI.
- Provides clear workflow for scanning skills directories, reviewing risks, and generating risk-focused audit reports.
- Details risk patterns to watch for, such as exfiltration, shell execution, persistence, and prompt injection.
- Includes practical command usages and guidance for both quick scans and in-depth manual reviews.
- Offers report structure suggestions for actionable, evidence-based audit results.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部