Skip to content
Back to skills

Agent Security Skill Scanner

ASecurity

AI Agent 技能安全扫描器 - 检测恶意技能、后门代码、权限滥用 (Beta 版本)

  • 33 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
datapythonbashsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill agent-security-skill-scanner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Security Skill Scanner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Security Skill Scanner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-agent-security-skill-scanner/badge)](https://www.skillsdirectory.com/skills/dvcrn-agent-security-skill-scanner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-security-skill-scanner
description: "AI Agent 技能安全扫描器 - 检测恶意技能、后门代码、权限滥用 (Beta 版本)"
---

# Agent Security Skill Scanner

> **AI Agent 技能安全扫描器**  
> **版本**: v2.0.1-beta  
> **状态**: ⚠️ 公开测试版  
> **更新日期**: 2026-03-14

⚠️ **Beta 版本说明**: 此版本为公开测试版,可能存在未知问题,生产环境请谨慎使用。

---

## 🎯 功能目标

1. **恶意技能检测** - 识别 ClawHavoc、MCP 后门、混淆代码
2. **权限审查** - 检查工具调用权限、敏感操作
3. **依赖扫描** - 检测恶意 npm/Python 包
4. **行为分析** - 识别可疑模式

---

## 🔍 核心能力

### 1. 静态分析

- eval/exec 滥用检测
- 网络请求无限制检测
- 硬编码凭据检测
- 混淆代码检测

### 2. 检测类别

- 恶意代码 (600 样本)
- 后门模式 (500 样本)
- 权限滥用 (400 样本)
- 硬编码凭据 (400 样本)
- 数据泄露 (300 样本)
- 不安全执行 (300 样本)
- 网络攻击 (200 样本)
- 文件操作 (200 样本)
- 代码混淆 (200 样本)
- 依赖风险 (100 样本)

### 3. 输出格式

```json
{
  "status": "success",
  "message": "扫描完成",
  "data": {
    "findings": [],
    "statistics": {}
  }
}
```

---

## 📦 安装

```bash
cd skills/agent-security-skill-scanner
./install.sh
```

---

## 🚀 使用

```bash
# 扫描单个技能
python cli.py scan skills/suspicious-skill/

# 批量扫描
python cli.py scan-all skills/

# 生成报告
python cli.py report --format json --output report.json
```

---

## 📊 性能指标

| 指标 | 要求 | 实际 |
|------|------|------|
| 执行耗时 | ≤10s | ≤5s |
| 内存使用 | ≤256MB | ≤128MB |
| 检测率 | ≥92% | 95% |
| 误报率 | ≤4% | 3.5% |

---

## ✅ 测试

```bash
# 运行测试
python -m unittest discover -v tests/

# 测试结果
# 9 测试,100% 通过
```

---

## 📁 目录结构

```
agent-security-skill-scanner/
├── cli.py
├── detectors/
│   └── malware.py
├── rules/
├── install.sh
├── README.md
├── SKILL.md
├── RELEASE-v2.0.0.md
└── tests/
    ├── test_malware.py
    └── test_full.py
```

---

*版本:v2.0.0 | 2026-03-12*  
**状态:就绪发布,16:00 正式发布** 🚀

## 输入输出 Schema

### 输入

```yaml
input:
  type: object
  required:
    - target
  properties:
    target:
      type: string
      description: 扫描目标路径
      min_length: 1
      max_length: 500
    output_format:
      type: string
      enum: [json, text, markdown]
      default: json
    verbose:
      type: boolean
      default: false
```

### 输出

```yaml
output:
  type: object
  required:
    - status
    - data
  properties:
    status:
      type: string
      enum: [success, failed]
    message:
      type: string
    data:
      type: object
      properties:
        issues:
          type: array
        statistics:
          type: object
    error_details:
      type: object
      properties:
        error_code:
          type: string
        error_msg:
          type: string
```

### 错误处理

```yaml
error_handling:
  type: object
  properties:
    try:
      type: string
      description: 尝试执行的操作
    except:
      type: array
      items:
        type: object
        properties:
          exception: string
          handler: string
    finally:
      type: string
      description: 资源清理
```

Files in this skill

  • CAPABILITIES.md13.8 KB
  • GITHUB_CLEANUP.md2.9 KB
  • I18N.md4 KB
  • NPM_PUBLISH_PLAN.md6.6 KB
  • PUBLISH_CHANNELS.md9.9 KB
  • README.en.md11.6 KB
  • README.md17.3 KB
  • RELEASE.md6.2 KB
  • SKILL.md3.4 KB
  • STATISTICS.md10.2 KB
  • auto_iteration.py11.4 KB
  • clawhub.yaml453 B
  • cli.py5.4 KB
  • data/whitelist/local.json408 B
  • detection_rules.json29.6 KB
  • detectors/__init__.py152 B
  • detectors/malware.py4.2 KB
  • detectors/metadata.py9.8 KB
  • docs/CAPABILITIES.md13.8 KB
  • docs/INCIDENT_REPORT_20260314.md10.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.