返回顶部
o

open-cve-scanner开放CVE扫描器

>

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

open-cve-scanner

CVE Scanner - 开源漏洞分析技能

概述

CVE Scanner 是一款用于分析开源软件安全漏洞(CVE)并生成报告的工具。

使用方法

单个包分析

bash

基本用法


cve-scanner 包名 版本

示例

cve-scanner log4j-core 2.14.0 cve-scanner openssl 1.1.1k --severity HIGH,CRITICAL cve-scanner spring-framework 5.3.18 --output excel

文件分析

bash

分析依赖文件


cve-scanner --file package.json
cve-scanner --file requirements.txt --output json
cve-scanner --file pom.xml --severity CRITICAL,HIGH

选项

选项说明默认值
--severity严重级别过滤 (CRITICAL,HIGH,MEDIUM,LOW)全部
--output
输出格式 (markdown, excel, json, csv) | markdown | | --ecosystem | 指定生态系统 (npm, pypi, maven, golang 等) | 自动检测 | | --file | 依赖文件路径 | - | | --quiet, -q | 抑制警告信息 (推荐用于 JSON 输出) | - | | --no-cache | 不使用缓存 | - | | --max-retries | API 调用重试次数 | 3 | | --nvd-key | NVD API 密钥 (提高速率限制) | - | | --github-token | GitHub 令牌 (提高速率限制) | - |

支持的文件格式

  • - package.json / package-lock.json (npm)
  • requirements.txt / Pipfile.lock (PyPI)
  • pom.xml / build.gradle (Maven)
  • go.mod / go.sum (Go)
  • Cargo.lock (Rust)
  • composer.lock (PHP)
  • Gemfile.lock (Ruby)

数据源

  1. 1. NVD (NIST) - 美国国家漏洞数据库
  2. OSV.dev (Google) - 开源专用漏洞数据库
  3. GitHub Advisory - GitHub 安全公告

输出示例

Markdown

markdown

CVE Scanner 漏洞分析报告

📦 log4j-core

项目内容
当前版本2.14.0
最新版本
2.23.1 | | 发现 CVE 数量 | 3 个 |

漏洞列表

CVE ID严重级别CVSS描述
CVE-2021-44228🔴 CRITICAL10.0Log4Shell

API 密钥设置(可选)

bash

NVD API 密钥 (提高速率限制)


export NVDAPIKEY=your-api-key

GitHub 令牌 (提高速率限制)

export GITHUB_TOKEN=your-token

依赖要求

bash
pip install -r requirements.txt

准确度验证管道(1000 个测试用例)

CVE Scanner 包含一个大规模测试管道,用于验证准确度(精确率/召回率/F1 分数)。

运行管道

bash
cd scripts
python3 runaccuracypipeline.py [--skip-existing] [--fp-verify-sample N]

4 步管道

步骤脚本说明耗时
1generatetestcases1000.py生成约 1000 个测试用例约 2 秒
2
scan1000testcases.py | 使用 CVEScanner 批量扫描 | 约 20 分钟* | | 3 | buildgroundtruth.py | 基于 OSV/NVD 构建 Ground Truth | 约 5 分钟 | | 4 | verifyaccuracy1000.py | FP 二次验证 + 准确度计算 | 约 10 分钟 |

*如有 NVD API 密钥

单独步骤执行

bash

生成测试用例


python3 scripts/generatetestcases_1000.py

CVE 扫描

python3 scripts/scan1000test_cases.py \ --test-cases /tmp/cvetestcases/testcases1000.json \ --output-dir /tmp/cvetestresults

构建 Ground Truth

python3 scripts/buildgroundtruth.py \ --test-cases /tmp/cvetestcases/testcases1000.json \ --output-dir /tmp/cvegroundtruth

验证准确度

python3 scripts/verifyaccuracy1000.py \ --scan-results /tmp/cvetestresults/scanresults1000.json \ --ground-truth /tmp/cvegroundtruth/groundtruth1000.json \ --output-dir /tmp/cve_accuracy

准确度验证方法

  • - Ground Truth: OSV API(包生态系统)+ NVD CPE(独立软件)
  • FP 二次验证: NVD 直接查询 + Brave Search 抽查
  • 指标: 精确率、召回率、F1 分数、按生态系统分类表

结果文件

/tmp/cveaccuracy/accuracyreport_1000.json # 最终准确度报告
/tmp/cvegroundtruth/groundtruth1000.json # Ground Truth 数据
/tmp/cvetestresults/scanresults1000.json # 扫描结果

注意事项

  • - 存在 API 速率限制,批量查询可能需要较长时间
  • 部分包可能需要指定生态系统
  • 建议使用 SemVer 版本格式
  • 运行准确度验证管道时建议使用 NVD API 密钥(提高速度)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 open-cve-scanner-1776179548 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 open-cve-scanner-1776179548 技能

通过命令行安装

skillhub install open-cve-scanner-1776179548

下载

⬇ 下载 open-cve-scanner v1.0.1(免费)

文件大小: 190.51 KB | 发布时间: 2026-4-15 13:37

v1.0.1 最新 2026-4-15 13:37
open-cve-scanner 1.0.1

- Added large-scale accuracy testing pipeline, including scripts for generating ~1000 test cases, batch scanning, ground truth building, and verification.
- Introduced new utility and matching modules to improve version detection, matching reliability, and ecosystem analysis.
- Documentation updates: Added details and instructions for running the new accuracy test pipeline and interpreting results.
- Expanded and modularized the codebase for testability, future improvements, and research on CVE detection precision.
- Removed obsolete top-level cve-scanner file as part of refactoring.

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

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

p2p_official_large
返回顶部