Xpersona
C

Clawhub Publish V621

CLAWHUB · Unverified

Enterprise AI Agent Security Scanner - 846 rules, three-layer detection architecture, risk tier classification. Detects prompt injection, credential theft, d... Skill: Clawhub Publish V621 Owner: caidongyun Summary: Enterprise AI Agent Security Scanner - 846 rules, three-layer detection architecture, risk tier classification. Detects prompt injection, credential theft, d... Tags: agent:2.0.1-beta, agent-security:4.1.4, beta:2.0.1-beta, latest:6.2.0, scanner:4.1.4, security:4.1.4 Version history: v6.2.2 | 2026-04-27T13:33:22.989Z | user gzip压缩规则文件(332KB→31KB) + 运行时自动解压 + 风险分级

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fyrnjh6q0nmpwx68s5yy7wd842pjv:agent-security-skill-scanner
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-caidongyun-agent-security-skill-scanner/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

150,103 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-security-skill-scanner
title: Agent Security Scanner
description: Enterprise AI Agent Security Scanner - 846 rules, three-layer detection architecture, risk tier classification. Detects prompt injection, credential theft, data exfiltration, and attack chains.
version: 6.2.0
---

# AI Agent Security Scanner v6.2.0

企业级 AI Agent 安全扫描工具,检测恶意代码、供应链攻击、凭据窃取和攻击链。

## 🎯 核心指标

| 指标 | v6.2.0 |
|------|--------|
| 规则数 | 846 |
| 检测架构 | 三层 (PatternEngine → HybridRuleEngine → LLMEngine) |
| 扫描速度 | ~385 文件/秒 |
| 风险分级 | 5 级 (CRITICAL/HIGH/MEDIUM/LOW/INFO) |

## 🔥 v6.2.0 新特性

### 风险分级体系
- **Curl 风险分级**: 白名单域名 + 敏感参数检测
- **凭据窃取检测**: 攻击链识别 (诱导→混淆→外传)
- **5 级风险体系**: CRITICAL/HIGH/MEDIUM/LOW/INFO

### 单 Skill 熔断机制
- 默认阈值: 500 文件/目录
- 防止恶意软件塞入大量文件拖慢扫描

### 规则库优化
- 去重 88 条规则 (928 → 846)
- 新增 6 条凭据攻击链规则 (CRED-CHAIN-001~006)
- 419 条 severity 统一为大写

## 💻 使用

### 命令行
```bash
# 扫描目录
python3 scanner.py /path/to/skills/

# 并发扫描 (8 worker)
python3 scanner.py /path/to/skills/ --workers 8

# 输出 JSON 报告
python3 scanner.py /path/to/skills/ --output json --output-file report.json

# 单 Skill 熔断阈值
python3 scanner.py /path/to/skills/ --skill-max-files 500
```

### npm
```bash
npm install -g @caidongyun/security-scanner
agent-scanner /path/to/skills/
```

## 📦 安装

```bash
# pip
pip install -r requirements.txt

# npm
npm install -g @caidongyun/security-scanner
```

## 📁 文件结构

```
├── scanner.py                  # 主扫描器
├── whitelist_filter.py         # 白名单过滤
├── config_detector.py          # 配置文件检测
├── context_aware_filter.py     # 上下文感知过滤
├── credential_theft_classifier.py  # 凭据窃取攻击链检测
├── curl_risk_classifier.py     # Curl 风险分级
├── risk_tier_classifier.py     # 5 级风险体系
├── security_tool_detector.py   # 安全工具识别
├── scan                        # CLI 入口
├── src/engines/                # 8 个检测引擎
├── rules/dist/all_rules.json   # 846 条规则
├── package.json                # npm 配置
├── README.md                   # 使用文档
└── RELEASE_NOTES.md            # 发布说明
```

## 🔗 链接

- **Gitee**: https://gitee.com/caidongyun/agent-security-skill-scanner
- **GitHub**: https://github.com/caidongyun/agent-security-skill-scanner
- **NPM**: @caidongyun/security-scanner@6.2.0

---

**v6.2.0** | **846 Rules** | **Three-Layer Detection** | **Risk Tier Classification** | **Attack Chain Detection**

README.md

# AI Agent Security Scanner v6.2.0

企业级 AI Agent 安全扫描工具

---

## 📊 核心指标

| 指标 | v6.2.0 | 说明 |
|------|--------|------|
| 规则数 | 846 | 去重优化后实际生效 |
| 新增模块 | 7 | 风险分级/攻击链检测/熔断等 |
| 检测架构 | 三层 | 白名单 → 智能评分 → LLM |
| 扫描速度 | ~385 文件/秒 | 8 worker 并发 |

## 🎯 快速开始

### 安装
```bash
npm install -g @caidongyun/security-scanner
```

### 使用
```bash
# 扫描目录
agent-scanner /path/to/skills

# 并发扫描
agent-scanner /path/to/skills --workers 8

# 输出 JSON 报告
agent-scanner /path/to/skills --output json --output-file report.json
```

## 🔥 v6.2.0 新特性

### 1. 风险分级体系
- **Curl 风险分级**: 白名单域名 + 敏感参数检测
- **凭据窃取检测**: 攻击链识别 (诱导→混淆→外传)
- **5 级风险体系**: CRITICAL/HIGH/MEDIUM/LOW/INFO

### 2. 单 Skill 熔断机制
- 默认阈值: 500 文件/目录
- 防止恶意软件塞入大量文件拖慢扫描
- 参数: `--skill-max-files N`

### 3. 规则库优化
- 去重 88 条规则 (928 → 846)
- 标准化 419 条 severity 为大写
- 新增 6 条凭据攻击链规则 (CRED-CHAIN-001~006)

## 📦 发布文件清单 (20 个)

**核心模块 (8 个)**:
| 文件 | 功能 |
|------|------|
| `scanner.py` | 主扫描器 (三层架构) |
| `whitelist_filter.py` | 白名单过滤 |
| `config_detector.py` | 配置文件检测 |
| `context_aware_filter.py` | 上下文感知过滤 (新增) |
| `credential_theft_classifier.py` | 凭据窃取攻击链检测 (新增) |
| `curl_risk_classifier.py` | Curl 风险分级 (新增) |
| `risk_tier_classifier.py` | 5 级风险体系 (新增) |
| `security_tool_detector.py` | 安全工具识别 (新增) |

**规则库 (2 个)**:
- `rules/dist/all_rules.json` — 846 条规则
- `rules/rule_optimizer.py` — 规则优化器 (新增)

**引擎模块 (9 个)**:
- `src/encoding_utils.py`
- `src/engines/` (8 个检测引擎)

**入口 (3 个)**:
- `scan` — CLI 入口
- `index.js` — Node.js 入口
- `index.d.ts` — 类型定义

**文档/配置 (5 个)**:
- `package.json`
- `requirements.txt`
- `README.md`
- `RELEASE_NOTES.md`
- `SKILL.md`

## 🔧 配置选项

| 参数 | 默认值 | 说明 |
|------|--------|------|
| `--workers` | 4 | 并发线程数 |
| `--skill-max-files` | 500 | 单 Skill 文件数熔断阈值 |
| `--timeout` | 3.0 | 单文件超时 (秒) |
| `--output` | text | 输出格式 (text/json) |
| `--output-file` | - | 输出文件路径 |

## 📝 许可证

MIT License

## 🔗 仓库

- **Gitee**: https://gitee.com/caidongyun/agent-security-skill-scanner-master
- **GitHub**: https://github.com/caidongyun/agent-security-skill-scanner
- **NPM**: @caidongyun/security-scanner@6.2.0

_meta.json

{
  "ownerId": "kn7b15wqp8qq0czrb0d960rcrd82s62k",
  "slug": "agent-security-skill-scanner",
  "version": "6.2.2",
  "publishedAt": 1777296802989
}

package.json

{
  "name": "@caidongyun/security-scanner",
  "version": "6.2.0",
  "description": "AI Agent Security Scanner - 846 rules, hybrid detection, risk tier classification",
  "main": "index.js",
  "bin": {
    "agent-scanner": "scan"
  },
  "scripts": {
    "scan": "python3 scanner.py",
    "test": "python3 -m pytest tests/ -v"
  },
  "keywords": [
    "agent-security",
    "ai-security",
    "llm-security",
    "clawhub-scanner",
    "risk-classification",
    "credential-theft",
    "curl-security"
  ],
  "author": "Agent Security Team",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://gitee.com/caidongyun/agent-security-skill-scanner-master.git"
  },
  "files": [
    "scanner.py",
    "whitelist_filter.py",
    "config_detector.py",
    "context_aware_filter.py",
    "credential_theft_classifier.py",
    "curl_risk_classifier.py",
    "risk_tier_classifier.py",
    "security_tool_detector.py",
    "scan",
    "index.js",
    "index.d.ts",
    "package.json",
    "requirements.txt",
    "README.md",
    "RELEASE_NOTES.md",
    "SKILL.md",
    "rules/dist/all_rules.json",
    "rules/rule_optimizer.py",
    "src/"
  ],
  "publishConfig": {
    "access": "public"
  }
}

requirements.txt

# Agent Security Scanner - Python Dependencies

# Core dependencies
pyahocorasick>=2.0.0
tqdm>=4.65.0

# Optional dependencies
# pytest>=7.0.0  # For testing
# black>=22.0.0  # For code formatting

# Python version: 3.7+

Sponsored

Ads related to Clawhub Publish V621 and adjacent AI workflows.