/install api-security-scanner
API Security Scanner 🔒
Description
Automated security scanner for REST API endpoints. Performs security audit against OWASP API Security Top 10, detecting authentication issues, authorization flaws, data exposure, injection risks, and more.
对 REST API 端点进行自动化安全审计,覆盖 OWASP API 安全 Top 10,检测认证/授权问题、数据泄露、注入风险等常见隐患。
When to Use This Skill
Use this skill when:
- You need to audit API endpoints for security vulnerabilities(审计 API 端点的安全漏洞)
- You want to review API design/config for security best practices(审查 API 设计/配置的安全最佳实践)
- You need to generate a security report before deployment(部署前生成安全报告)
- You're reviewing API documentation for security issues(审查 API 文档中的安全问题)
- You want to harden your API against common attack vectors(加固 API 抵御常见攻击向量)
Usage Modes
Mode 1: Full Scan — 完整扫描
请扫描以下 API 端点的安全问题:
POST /api/v1/users/register
GET /api/v1/users/{id}
PUT /api/v1/users/{id}
DELETE /api/v1/users/{id}
POST /api/v1/auth/login
GET /api/v1/admin/users
Headers: Authorization: Bearer {token}
Mode 2: Quick Check — 快速检查
快速检查这个 API 端点的安全问题:POST /api/v1/payments/charge
Mode 3: Config Audit — 配置审计
审查以下 API 网关/中间件配置的安全性:
(粘贴 nginx.conf / express middleware / Spring Security config 等)
Mode 4: Report Generation — 报告生成
根据以下安全扫描结果,生成一份结构化的安全报告:
(粘贴扫描结果或漏洞列表)
Scanning Dimensions
This skill scans across 6 security dimensions:
- Authentication & Session — 认证与会话管理
- Authorization & Access Control — 授权与访问控制
- Input Validation & Injection — 输入验证与注入防护
- Data Protection & Privacy — 数据保护与隐私
- Rate Limiting & DoS Protection — 速率限制与防 DoS
- Configuration & Infrastructure — 配置与基础设施
Output Format
Each scan produces a structured report with:
- 🔴 Critical — 必须立即修复
- 🟠 High — 高风险,尽快修复
- 🟡 Medium — 中等风险,计划修复
- 🔵 Low — 低风险,建议修复
- ✅ Passed — 通过检查
Knowledge Files
scan-rules.md— 完整扫描规则库(6大维度,100+ 检查项)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install api-security-scanner - 安装完成后,直接呼叫该 Skill 的名称或使用
/api-security-scanner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Api Security Scanner 是什么?
API 安全扫描工具。对 REST API 端点进行自动化安全审计,检测 OWASP Top 10 漏洞、 认证/授权问题、敏感数据泄露、速率限制缺失等常见安全隐患。输出结构化安全报告。 适合开发者在部署前快速自检,也适合安全团队做轻量级审计。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 53 次。
如何安装 Api Security Scanner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install api-security-scanner」即可一键安装,无需额外配置。
Api Security Scanner 是免费的吗?
是的,Api Security Scanner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Api Security Scanner 支持哪些平台?
Api Security Scanner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Api Security Scanner?
由 VelenGao(@caingao)开发并维护,当前版本 v1.0.0。