/rh-sre:cve-validationfrom rh-sre
**CRITICAL**: This skill must be used for CVE validation queries. DO NOT use raw MCP tools like get_cve directly. Validate CVE identifiers and check remediation availability in Red Hat Lightspeed. Use when: - "Is CVE-2024-1234 valid and remediable?" - "Check if CVE-X has automated remediation available" - "Verify these CVEs before creating a playbook" - "Validate CVE list for batch remediation" **DO NOT use this skill when** user requests full remediation - use `/remediation` skill instead: - "Create a remediation playbook for CVE-X" → `/remediation` skill - "Create playbook and execute it" → `/remediation` skill - "Remediate CVE-X" / "Patch CVE-X" → `/remediation` skill This skill orchestrates MCP tools (get_cve) for CVE validation. The `/remediation` skill invokes this skill as Step 2 of its workflow.
Ships in rh-sre. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
Required MCP Servers: lightspeed-mcp (setup guide)
Required MCP Tools:
get_cve (from lightspeed-mcp) - Get CVE metadata and validationRequired Environment Variables:
LIGHTSPEED_CLIENT_ID - Red Hat Lightspeed service account client IDLIGHTSPEED_CLIENT_SECRET - Red Hat Lightspeed service account secretCRITICAL: 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..
How to invoke: Execute the /mcp-lightspeed-validator skill
Handle validation result:
Use this skill directly when you need:
DO NOT use this skill when - use /remediation skill instead:
Use the /remediation skill when you need:
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.
Follow these steps in order to validate a CVE and determine remediation availability.
Action: Execute the /mcp-lightspeed-validator skill
Note: Can skip if validation was performed earlier in this session and succeeded..
How to invoke: Execute the /mcp-lightspeed-validator skill
Handle validation result:
Validate CVE identifier format before calling MCP tools. Format only—the ID's year and sequence length are not reliable signals of whether a CVE is real; only the live API response is.
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:
Let the API determine existence. A 404 from get_cve means "not found"; format validation only catches malformed IDs.
CRITICAL: Document consultation MUST happen BEFORE tool invocation.
Document Consultation (REQUIRED - Execute FIRST):
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")
"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
}
CRITICAL: Document consultation MUST happen BEFORE validation logic.
Document Consultation (REQUIRED - Execute FIRST):
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.
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)"
]
}
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.
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.
This skill depends on the following MCP servers, tools, and related skills.
lightspeed-mcp - Red Hat Lightspeed platform accessget_cve (from lightspeed-mcp) - Get CVE metadata and validation
mcp-lightspeed-validator - PREREQUISITE - Validates Lightspeed MCP server before operations
cve-impact - Analyze CVE impact after validation
system-context - Get system details after validating CVE affects systems
playbook-generator - Generate remediation playbooks for validated CVEs
This skill uses:
get_cve (vulnerability toolset) - Get CVE metadata and remediation availability from Red Hat LightspeedDo 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.
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.
references/01-remediation-indicators.md (opens in a new tab)references/03-output-template.md (opens in a new tab)references/04-examples.md (opens in a new tab)references/05-error-handling.md (opens in a new tab)references/ansible/aap-integration.md (opens in a new tab)references/ansible/cve-remediation-templates.md (opens in a new tab)references/ansible/error-handling.md (opens in a new tab)references/ansible/idempotency.md (opens in a new tab)references/compliance-frameworks.md (opens in a new tab)references/cvss-scoring.md (opens in a new tab)references/insights/vulnerability-logic.md (opens in a new tab)references/rhel/package-management.md (opens in a new tab)references/rhel/selinux-context.md (opens in a new tab)references/rhel/systemd-services.md (opens in a new tab)references/rhel/version-compatibility.md (opens in a new tab)references/skill-invocation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
inheritOther plugins' skills for the same job
npx claudepluginhub rhecosystemappeng/agentic-catalog --plugin rh-sre13 skills in this plugin
/cve-impact**CRITICAL**: Use for ALL CVE discovery and listing. DO NOT call get_cves directly.
Use when: "show critical CVEs", "CVEs on hostname X", "remediatable vulnerabilities", "impact of CVE-X", risk assessment.
NOT for remediation (use `/remediation`).
System-level: FIRST reply = pagination prompt (Step -1). Parsing: scripts/01-cve-response-parser.py.
/execution-summaryGenerates a concise report of agents, skills, tools, and documentation accessed during a workflow for audit and learning purposes.
Use when:
- "Generate execution summary"
- "Create execution report"
- "Summarize what was used"
- "Show execution summary"
- "What agents/skills/tools were used?"
/fleet-inventoryQuery and display Red Hat Lightspeed managed system inventory. This skill focuses on discovery and listing only - for remediation actions, transition to the `/remediation` skill.
Use when:
- "Show the managed fleet"
- "List all systems registered in Lightspeed"
- "What systems are affected by CVE-X?"
- "How many RHEL 8 systems do we have?"
- "Show me production systems"
**When NOT to use this skill** (use `/remediation` skill instead):
- "Remediate CVE-X on these systems"
- "Create a playbook for..."
- "Patch system Y"
This skill orchestrates MCP tools from lightspeed-mcp for fleet visibility and system inventory management.
/job-template-creatorCreate AAP (Ansible Automation Platform) job templates for executing playbooks. Use when users request:
- "Create a job template for this playbook"
- "Set up a template to run remediation playbooks"
- "Configure AAP to execute this playbook"
- "Add a new job template for CVE remediation"
This skill guides through adding playbooks to Git projects and creating job templates via AAP Web UI.
/job-template-remediation-validatorVerify an AAP job template meets requirements for executing CVE remediation playbooks.
Use when:
- "Does this job template support remediation playbooks?"
- "Validate job template X for CVE remediation"
- "Check if template is ready for playbook-executor"
- Before playbook-executor selects a template
NOT for: AAP MCP connectivity (use `/mcp-aap-validator`), creating templates (use `/job-template-creator`).
/mcp-aap-validatorValidate AAP (Ansible Automation Platform) MCP server connectivity. Use when the user asks to "validate AAP MCP", "check AAP connection", or when other skills need to verify AAP MCP availability before job management or inventory operations.