跳到正文
TakoAPI
返回技能列表

guard-scanner

由 koatora20 提供

Coding Agents & IDEs
—暂无评分
你的评分

简介

Security scanner for AI agent skills.

描述

该技能的功能

Security scanner for AI agent skills with 358 static threat patterns across 35 categories and 27 runtime checks. Detects prompt injection, identity hijacking, MCP tool poisoning, supply chain attacks, and other AI-specific threats. Runs as a CLI scanner, file watcher, MCP server, or OpenClaw runtime hook.

Covers AI-specific threat classes like agent-to-agent contagion, SOUL.md tampering, and MCP tool poisoning that traditional static analysis tools have no patterns for.

何时使用

  • Scanning a skill directory before publishing to ClawHub
  • Auditing a GitHub or npm username for leaked credentials in public packages
  • Blocking malicious tool calls at runtime inside an OpenClaw agent
  • Adding SARIF security reports to a GitHub Actions workflow
  • Monitoring skill files in real-time during local development

示例工作流

输入

User asks: scan my skills folder and fail the CI build if anything is found

智能体
  1. 1

    Run guard-scanner scan ./skills/ --sarif --fail-on-findings and redirect output to report.sarif

  2. 2

    Add a GitHub Actions step that executes the scan command on push

  3. 3

    Upload the resulting SARIF file using github/codeql-action/upload-sarif@v3

  4. 4

    Review flagged findings with --verbose to see line numbers and threat categories

输出

CI pipeline fails on detected threats and uploads a SARIF report visible in GitHub Security tab

前置要求

  • VT_API_KEY environment variable (optional, required only for VirusTotal double-layer scanning)

安装

clawhub install koatora20/guard-scanner

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接