当前位置: 首页 > Skill >

cnnvd-cve-report-generator

cnnvd-cve-report-generator

1.0.0 2026.11.22 浏览:206
获取Skill文件查看使用说明
作者:顾安许可证:
本文目录展开

CNNVD/CVE Vulnerability Report Generator

Generate standardized vulnerability reports for CNNVD (中国国家信息安全漏洞库) and CVE from audit data, reproduction scripts, or code analysis.

When to Use This Skill

  • User has security audit results (reports, findings, code review outputs) and needs to file them with CNNVD or CVE
  • User mentions 漏洞填报, CVE, CNNVD, 安全公告, vulnerability report, security advisory
  • User provides vulnerability analysis data and asks to generate structured reports
  • User wants batch generation of reports for multiple findings from one audit

Workflow

Step 1: Detect Input Type

Determine what the user has provided:

Input Type What to Extract
Audit report (.md) All vulnerability fields directly from the report
Reproduction script Vulnerability type, attack steps, affected component
Source code analysis Code location, vulnerability pattern, impact
Mixed (report + scripts) Cross-reference all sources for completeness

Step 2: Confirm Scope

Ask the user (unless already clear):

  1. Which vulnerability to report (single or batch from multi-vuln audit)
  2. Output mode: CNNVD only, CVE only, or both
  3. Language preference for CVE descriptions (English default, Chinese if requested)

Step 3: Extract Vulnerability Information

For each vulnerability, collect these fields from the input data:

Mandatory fields:

  • Vulnerability title (漏洞名称)
  • CWE type and number
  • CVSS score (if available, otherwise estimate from description)
  • Affected software: vendor, product name, version
  • Vulnerable code location (file:line)
  • Attack vector and scenario
  • Impact description
  • Reproduction/verification steps

Optional fields (fill if available):

  • CVE number (if already assigned)
  • Download link for affected software
  • Network asset fingerprint
  • Disclosure timeline

Step 4: Read Reference Templates

Before generating, read the appropriate reference file:

  • For CNNVD: read references/cnnvd-template.md
  • For CVE: read references/cve-template.md
  • For both: read both files

Step 5: Generate Reports

CNNVD Report Generation

Follow the CNNVD template structure. Key rules:

  1. 漏洞名称: Concise, includes product name and vulnerability type. Format: [产品名] [漏洞类型]漏洞
  2. 漏洞类型: Use standard CWE mapping (CWE-xxx)
  3. 漏洞自评级: Map CVSS to Chinese severity: HIGH(7.0-10.0)=高危, MEDIUM(4.0-6.9)=中危, LOW(0.1-3.9)=低危
  4. 受影响实体: Include vendor, product, specific version range
  5. 漏洞描述或简介: 2-4 sentences explaining what the vulnerability is and why it exists
  6. 漏洞影响描述: Concrete impact scenarios — what an attacker can achieve
  7. 漏洞定位: Exact file path and line numbers from the source code
  8. 漏洞触发条件: Precise conditions needed to trigger (configuration, user action, prerequisites)
  9. 验证过程: Step-by-step reproduction with commands (auto-generated from input data)

Verification Steps Generation

Auto-generate verification procedures based on:

  1. From audit report: If the report already contains verification data (commands, outputs, screenshots), use those directly — adapt format but preserve the exact commands and expected outputs
  2. From reproduction scripts: Extract the key commands, environment setup, and expected results
  3. Inferred from vulnerability type: If no verification data exists, generate based on CWE class:
CWE Category Verification Approach
CWE-214 (Process exposure) Start service with sensitive params → read /proc/pid/cmdline
CWE-522 (Credential exposure) Start service → check process listing for plaintext creds
CWE-94 (Code injection) Craft malicious input → execute → verify injection
CWE-20 (Input validation) Send crafted input → observe unexpected behavior
CWE-306 (Missing auth) Attempt access without authentication → verify success
CWE-754 (Error handling) Trigger error condition → verify improper handling
  1. Format verification steps as:
    • Prerequisites (环境要求)
    • Step-by-step commands (验证步骤)
    • Expected output (预期结果)
    • Evidence of vulnerability (漏洞确认)

CVE Description Generation

Follow standard CVE format:

  1. Title: Same as CNNVD or English equivalent
  2. Description: Technical description of the vulnerability, including the specific flaw and its consequence
  3. Affected Versions: Precise version range
  4. Impact: What an attacker can achieve
  5. References: Link to audit report or advisory
  6. CWE Mapping: CWE-xxx

Step 6: Output

Save generated reports to the same directory as the input files, with naming:

  • CNNVD: cnnvd-[vuln-id].md (e.g., cnnvd-VULN-001.md)
  • CVE: cve-[vuln-id].md (e.g., cve-VULN-001.md)

For batch mode, save as:

  • cnnvd-all.md (all vulnerabilities in one file)
  • cve-all.md

Output Quality Guidelines

  1. Accuracy over completeness — if a field cannot be reliably inferred from the input, mark it as [待补充] (to be filled) rather than guessing
  2. Use source code evidence — always reference specific file paths and line numbers
  3. Reproduction steps must be runnable — include exact commands, not descriptions of commands
  4. Impact must be concrete — "attacker can read SSH passwords" not "security risk"
  5. Chinese for CNNVD fields — the CNNVD form is in Chinese; fill all fields in Chinese
  6. Language for CVE — default to English; if user requests Chinese, use Chinese

Handling Multiple Vulnerabilities

When processing an audit report with multiple findings:

  1. List all findings first, let user select which to generate
  2. For batch mode, generate a table of contents at the top of each output file
  3. Each vulnerability gets its own section with consistent formatting
  4. Cross-references between related vulnerabilities (e.g., attack chains) should be noted

Common Patterns in Input Data

These patterns appear frequently in security audit reports — recognize and extract them:

  • **CWE:** CWE-xxx (Description) → extract CWE number and type
  • **CVSS:** x.x → extract score
  • **Location:** file:line → extract code location
  • **Attack:** or **Attack Scenario:** → extract attack vector
  • **Impact:** → extract impact description
  • **Fix:** → extract recommended fix (useful for CVE references)
  • Code blocks with typescript` or python` → extract vulnerable code snippets
  • ps aux, cat /proc/, curl, ssh commands → extract as verification steps

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,033
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,012
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,012
Skill 文件
  • SKILL.md
    • CNNVD/CVE Vulnerability Report Generator
    • When to Use This Skill
    • Workflow
      • Step 1: Detect Input Type
      • Step 2: Confirm Scope
      • Step 3: Extract Vulnerability Information
      • Step 4: Read Reference Templates
      • Step 5: Generate Reports
        • CNNVD Report Generation
        • Verification Steps Generation
        • CVE Description Generation
      • Step 6: Output
    • Output Quality Guidelines
    • Handling Multiple Vulnerabilities
    • Common Patterns in Input Data
  • 项目或源文件

相关 Skill

更多
Code Analysis Code Analysis 执行多维度高级代码分析,包括知识图谱生成、代码质量评估、性能分析、安全审查、架构...
Security Audit Security Audit 全面 OpenClaw 安全审计 — 检查网关绑定、凭证泄露、通道策略、工具沙箱、网络/IP 泄露及 macOS 系统安全。
ctct-security-patrol-wb ctct-security-patrol-wb WorkBuddy 安全巡检工具,一键执行系统安全扫描并生成通俗易懂的报告。 使用场景:用户说"安全巡检"、"安全检查"、"安全审计"、"巡检"、"security audit"、"检查安全"、"系统安全"等。 触发条件:任何与安全检测、审计、巡检相关的请求。
Openclaw Shield 1.0.3 Openclaw Shield 1.0.3 Enterprise AI security scanner combining static code analysis, runtime guards, ClamAV integration, and tamper-proof audit logging to detect threats and enfor...
OpenClaw Security Handbook (CN) OpenClaw Security Handbook (CN) 基于 ZAST.AI 安全手册的 OpenClaw 安全审计与加固技能。运行全面安全诊断(内置 audit + 手册补充项),生成结构化报告,提供交互式修复引导,支持定时审计调度。触发场景:安全审计、安全加固、漏洞检查、security audit、hardening、暴露检查。