Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计通过

cve-validationCVE 验证

Agent Skill

cve-validation 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

408

周安装

17

GitHub Stars

5

下载量

136
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cve-validation(CVE 验证)
来源仓库:https://github.com/dmartinol/ai5-marketplaces
仓库路径:skills/cve-validation
安装命令:
npx skills add https://github.com/dmartinol/ai5-marketplaces --skill cve-validation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dmartinol/ai5-marketplaces --skill cve-validation

简介

cve-validation 校验 CVE 标识符有效性并在 Red Hat Lightspeed 中检查修复可用性。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 的修复前置验证,避免无效投入。
  • 常与其他修复技能协同工作,确保漏洞真实存在且具备可修复条件。
  • 调用时需确认 API 密钥与目标系统访问权限,防止因认证失败导致误判。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

CVE Validation Skill

This skill validates CVE identifiers and checks remediation availability in Red Hat Lightspeed, ensuring CVEs are valid and remediable before investing effort in remediation planning.

Integration with Remediation Skill: The /remediation skill orchestrates this skill as part of its Step 2 (Validate CVE) workflow. For standalone CVE validation, you can invoke this skill directly.

Invocation Note (Host-Specific)

When invoked by another skill (e.g. remediation), use the Skill tool—do NOT use "Task Output" with the skill name as task ID. That causes "No task found with ID: cve-validation". See skill-invocation.md.

Prerequisites

Required MCP Servers: lightspeed-mcp (setup guide)

Required MCP Tools:

  • get_cve (from lightspeed-mcp) - Get CVE metadata and validation

Required Environment Variables:

  • LIGHTSPEED_CLIENT_ID - Red Hat Lightspeed service account client ID
  • LIGHTSPEED_CLIENT_SECRET - Red Hat Lightspeed service account secret

Prerequisite Validation

CRITICAL: Before executing any operations, execute the /mcp-lightspeed-validator skill to verify MCP server availability.

Validation freshness: Can skip if already validated in this session. See Validation Freshness Policy.

How to invoke: Execute the /mcp-lightspeed-validator skill

Handle validation result:

  • If validation PASSED: Continue with CVE validation
  • If validation PARTIAL: Warn user and ask to proceed
  • If validation FAILED: Stop execution, provide setup instructions

When to Use This Skill

Use this skill directly when you need:

  • Quick validation of CVE identifier format and existence (standalone query)
  • Check if automated remediation is available
  • Verify CVE metadata before analysis
  • Validate CVE lists for batch operations

DO NOT use this skill when - use /remediation skill instead:

  • User says "create a remediation playbook" or "remediate CVE-X" or "patch CVE-X"
  • User says "create playbook and execute it" - agent orchestrates full workflow
  • Any request that implies playbook generation or execution

Use the /remediation skill when you need:

  • Full remediation workflow (validation + analysis + playbook + execution)
  • Integrated CVE validation as part of remediation planning

How they work together: The /remediation skill invokes this skill early in the workflow to fail fast if a CVE is invalid or has no automated remediation, saving time and effort.

When invoked by remediation: Return remediatable status prominently so the orchestrator can gate. Include remediation_status.automated_remediation_available (boolean) and validation_status ("valid" | "not_remediable" | "invalid" | "not_found") in the output.

Workflow

Step 0: Validate Lightspeed MCP Prerequisites

Action: Execute the /mcp-lightspeed-validator skill

Note: Can skip if validation was performed earlier in this session and succeeded. See Validation Freshness Policy.

How to invoke: Execute the /mcp-lightspeed-validator skill

Handle validation result:

  • If validation PASSED: Continue to Step 1
  • If validation PARTIAL: Warn user and ask to proceed
  • If validation FAILED: Stop execution, user must set up MCP server

Step 1: CVE Format Validation

Validate CVE identifier format before calling MCP tools. Format only—do NOT reject based on year or sequence magnitude.

CVE Format: CVE-YYYY-NNNNN
Where:
- YYYY = 4-digit year (1999-2030; current and recent years are valid)
- NNNNN = 4-7 digit sequence number (e.g. 1234, 24882, 1234567)

Valid Examples:
- CVE-2024-1234
- CVE-2026-24882   # 2026 CVEs exist; 24882 is 5 digits (valid)
- CVE-2023-12345
- CVE-2021-1234567

Invalid Examples (format only):
- CVE-24-1234 (year must be 4 digits)
- CVE-2024-ABC (sequence must be numeric)
- 2024-1234 (missing CVE- prefix)
- CVE-2024-123 (sequence must be 4-7 digits)

Quick Regex Check:

Pattern: ^CVE-\d{4}-\d{4,7}$

If invalid format:
→ Return error immediately
→ Suggest format correction
→ Do not proceed to MCP tool calls

CRITICAL - Do NOT add extra checks: If the format matches the regex, you MUST call get_cve. Do NOT reject based on:

  • "Future" or "current year" assumptions (e.g. "2026 CVE might not exist yet")
  • Sequence number magnitude (e.g. "24882 seems high")—5 digits is valid
  • Your training data about typical CVE ranges

Let the API determine existence. A 404 from get_cve means "not found"; format validation only catches malformed IDs.

Step 2: CVE Metadata Retrieval

CRITICAL: Document consultation MUST happen BEFORE tool invocation.

Document Consultation (REQUIRED - Execute FIRST):

  1. Action: Read vulnerability-logic.md using the Read tool to understand CVE validation criteria
  2. Action: Read references/01-remediation-indicators.md to interpret get_cve response—CRITICAL to avoid misinterpreting remediation availability
  3. Output to user: "I consulted vulnerability-logic.md and 01-remediation-indicators.md for CVE validation and remediation indicator interpretation."

MCP Tool: get_cve or vulnerability__get_cve (from lightspeed-mcp)

Do NOT use vulnerability__explain_cves for validation. That tool requires system_uuid from inventory; at validation you may not have it. get_cve provides remediation availability. Never pass system_uuid: "undefined" or placeholders.

Parameters:

  • cve: Exact CVE identifier from user query (format: "CVE-YYYY-NNNNN")

- Example: "CVE-2024-1234"

  • advisory_available: "true" (retrieve CVE with advisory/remediation info)

Expected Output: CVE metadata including CVSS score, severity, affected packages, remediation availability

Retrieve CVE metadata from Red Hat Lightspeed:

{
  "cve_id": "CVE-2024-1234",
  "cvss_score": 7.5,
  "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
  "severity": "Important",  # Red Hat severity rating
  "description": "A vulnerability in Apache HTTPD...",
  "published_date": "2024-01-15",
  "modified_date": "2024-01-20",

  "affected_packages": [
    {
      "name": "httpd",
      "version": "2.4.37-1.el8",
      "fixed_version": "2.4.37-2.el8"
    }
  ],

  "references": [
    "https://access.redhat.com/errata/RHSA-2024:1234",
    "https://nvd.nist.gov/vuln/detail/CVE-2024-1234"
  ],

  "cwe": "CWE-400: Uncontrolled Resource Consumption",

  "exploitability": "Proof of concept available",
  "remediation_available": true,  # KEY FIELD
  "reboot_required": false
}

Step 3: Validation Checks

CRITICAL: Document consultation MUST happen BEFORE validation logic.

Document Consultation (REQUIRED - Execute FIRST):

  1. Action: Read cvss-scoring.md using the Read tool to understand Red Hat severity classification and CVSS score ranges
  2. Output to user: "I consulted cvss-scoring.md to understand Red Hat severity classification and CVSS score ranges."

Perform comprehensive validation:

A. Existence Check:

✓ CVE exists in Red Hat CVE database
✗ CVE not found → Return error with suggestions

B. Red Hat Relevance Check:

✓ CVE affects RHEL systems
✗ CVE is Windows/macOS specific → Not applicable to RHEL

C. Severity Classification:

Red Hat Severity Levels:
- Critical (CVSS 9.0-10.0): Immediate action required
- Important (CVSS 7.0-8.9): Urgent remediation needed
- Moderate (CVSS 4.0-6.9): Plan remediation
- Low (CVSS 0.1-3.9): Low priority

D. Remediation Availability Check (READ references/01-remediation-indicators.md):

Key Question: Can Red Hat Lightspeed generate an automated playbook?

✅ USE these fields:
  - advisory_available === true  → Remediation available
  - remediation === 2             → Automated remediation available
  - advisories_list non-empty     → RHSA exists, remediation available

❌ DO NOT use rules[] for remediation decision:
  - rules: [] (empty) does NOT mean "no remediation"
  - Advisor rules are separate from vulnerability remediation
  - Remediation comes from Security Advisories (RHSA), not Advisor rules

✓ If advisory_available=true OR remediation=2 OR advisories_list has entries
  → Proceed with automated remediation
  → Use create_vulnerability_playbook tool

✗ If advisory_available=false AND (remediation=0 or advisories_list empty)
  → Manual remediation required
  → Provide manual steps based on affected packages

E. Package Information Validation:

Check affected_packages array:
✓ Packages identified: httpd-2.4.37-1.el8
✓ Fixed version available: httpd-2.4.37-2.el8
✓ Package exists in RHEL repositories

This information will be used by playbook-generator skill.

Step 4: Return Validation Result

Return structured validation result. When invoked by remediation skill: Ensure validation_status and remediation_status.automated_remediation_available are explicit—the orchestrator gates on these.

{
  "validation_status": "valid",  # or "invalid", "not_found", "not_remediable"

  "cve_metadata": {
    "cve_id": "CVE-2024-1234",
    "cvss_score": 7.5,
    "severity": "Important",
    "description": "Brief description...",
    "published_date": "2024-01-15"
  },

  "remediation_status": {
    "automated_remediation_available": true,
    "reboot_required": false,
    "affected_packages": [
      {
        "name": "httpd",
        "current_version": "2.4.37-1.el8",
        "fixed_version": "2.4.37-2.el8"
      }
    ]
  },

  "recommendations": [
    "Automated remediation available via Red Hat Lightspeed",
    "No reboot required for this CVE",
    "Severity: Important - Urgent remediation recommended",
    "Test in staging environment before production deployment"
  ],

  "next_steps": [
    "Analyze CVE impact (use cve-impact skill)",
    "Gather system context (use system-context skill)",
    "Generate remediation playbook (use playbook-generator skill)"
  ]
}

Output, Examples, Error Handling

Read references/03-output-template.md for report format. Read references/04-examples.md for validation examples. Read references/05-error-handling.md for format, not-found, no-remediation, and API errors.

Best Practices

Validate format first; if regex matches, ALWAYS call get_cve (do not reject on year/sequence). Check remediation availability; fail fast if none. Provide clear next steps and manual guidance when automated unavailable. Link to NVD and Red Hat Security. Cache results to avoid redundant calls.

Dependencies

Required MCP Servers

  • lightspeed-mcp - Red Hat Lightspeed platform access

Required MCP Tools

  • get_cve (from lightspeed-mcp) - Get CVE metadata and validation

- Parameters: cve_id (string, format CVE-YYYY-NNNNN), include_details (boolean), validate_format (boolean) - Returns: CVE metadata with CVSS score, severity, affected packages, remediation availability

Related Skills

  • mcp-lightspeed-validator - PREREQUISITE - Validates Lightspeed MCP server before operations

- Use before: ALL cve-validation operations (Step 0 in workflow) - Purpose: Ensures MCP server is available before attempting tool calls

  • cve-impact - Analyze CVE impact after validation

- Use after: Step 4 when CVE is validated and user wants impact analysis - Purpose: Assess risk and affected systems for validated CVE

  • system-context - Get system details after validating CVE affects systems

- Use after: Validation confirms CVE has affected systems - Purpose: Understand deployment context before remediation

  • playbook-generator - Generate remediation playbooks for validated CVEs

- Use after: Validation confirms remediation_available = true - Purpose: Create automated remediation for valid, remediable CVEs

Reference Documentation

Tools Reference

This skill uses:

  • get_cve (vulnerability toolset) - Get CVE metadata and remediation availability from Red Hat Lightspeed

Do NOT use vulnerability__explain_cves in this skill—it requires system_uuid which may not be available at validation time. Use get_cve only.

All tools are provided by the lightspeed-mcp MCP server configured in mcps.json.

Integration with Other Skills

cve-impact, playbook-generator, system-context, remediation-verifier all depend on validation first. The /remediation skill invokes cve-validation as Step 2. Validate → proceed if valid; stop and return error if invalid.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.45%
按下载量换算48

Claude

31.45%
按下载量换算43

Cursor

18.29%
按下载量换算25

Gemini CLI

9.77%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills