/compliance:cve-intelligence-gatheringfrom compliance
Collects CVE vulnerability details from multiple authoritative sources with fallback strategies. Pre-populates profiles from Jira context when available.
Ships in compliance. 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.
None: SKILL.md is the whole skill.
Systematically collects CVE vulnerability details from multiple authoritative sources, handles search failures, and compiles a comprehensive vulnerability profile for analysis.
Use this skill when:
web_search tool access# Regex pattern for CVE ID
CVE_PATTERN="^CVE-[0-9]{4}-[0-9]{4,}$"
# Validate format
if [[ "$CVE_ID" =~ $CVE_PATTERN ]]; then
echo "Valid CVE format"
else
echo "ERROR: Invalid CVE format. Expected: CVE-YYYY-NNNNN"
exit 1
fi
Extract components:
YYYY from CVE-YYYY-NNNNNNNNNN from CVE-YYYY-NNNNNDecision Point:
If a jira_context object was passed in from the jira-cve-extraction skill (i.e. the parent command was invoked with --jira= or --jql=), pre-populate the vulnerability profile before any web searches. This reduces redundant lookups and surfaces internal context that is not available in public databases.
Fields to extract and pre-populate:
| Jira field | Profile field | Notes |
|---|---|---|
cvss_score + cvss_vector | severity.cvss_score, severity.cvss_vector | Prefer Jira value; verify against NVD in Step 2 |
cwe_id | cwe_id | Cross-check with NVD; flag if they differ |
summary (parsed description) | description (supplement) | Internal phrasing may be more specific |
affects_versions | Analysis scope (which project/release versions are affected) | |
target_versions | Fix target / release window | |
release_note_text | remediation.recommended_action (supplement) | May already describe the fix or upgrade path |
components, labels | Context only | |
| Description body (workaround scan) | remediation.workarounds | Already extracted by jira-cve-extraction |
| Internal notes from description | internal_context field in profile | Capture any previous analysis, conclusions, or decisions noted in the ticket body |
Mark each pre-populated field as source: jira in the profile.
Conflict resolution: If Jira and a public source (NVD, GHSA) disagree on CVSS score or CWE:
Decision Point:
jira_context is null or absent (direct <CVE-ID> mode) → Skip this step entirely, proceed to Step 2 as normaljira_context is present → Pre-populate, then continue to Step 2 to fill remaining gaps and verifyNational Vulnerability Database (NVD)
Search query: "CVE-{ID} site:nvd.nist.gov"
Example: "CVE-YYYY-NNNNN site:nvd.nist.gov"
Extract from results:
MITRE CVE Database
Search query: "CVE-{ID} site:cve.mitre.org"
Example: "CVE-YYYY-NNNNN site:cve.mitre.org"
Extract from results:
Error Handling:
Go Vulnerability Database
Search queries:
1. "CVE-{ID} golang vulnerability"
2. "CVE-{ID} site:github.com/golang/vulndb"
3. "CVE-{ID} site:go.dev/security"
Extract from results:
<package-path>)< <version>)<version>)GitHub Security Advisories (GHSA)
Search queries:
1. "CVE-{ID} golang GHSA"
2. "CVE-{ID} site:github.com/advisories"
Look for:
GHSA-xxxx-xxxx-xxxx)Decision Point:
Security Advisories
Search queries:
1. "CVE-{ID} security advisory"
2. "CVE-{ID} golang fix"
3. "CVE-{ID} patch"
Look for:
Community Discussions
Search queries:
1. "CVE-{ID} golang github issue"
2. "CVE-{ID} golang discussion"
Check for:
Proof of Concept / Exploits (for context only)
Search query: "CVE-{ID} exploit poc"
Note: Only use for understanding attack vectors, not for testing
If CVE is Very New (e.g., published recently)
Search alternative queries:
1. "CVE-{ID} disclosure"
2. "CVE-{ID} advisory {YEAR}"
3. "{PACKAGE_NAME} vulnerability {YEAR}"
If Web Searches Return No Results
Try alternative strategies:
Search by package name (if known from context):
Search: "{package-name} vulnerability {year}"
Example: "<package-name> vulnerability <year>"
Search for GHSA aliases:
Search: "GHSA-{pattern} golang"
Check package repository directly:
Search: "site:github.com/{org}/{repo} security"
Decision Point:
If automated searches fail: IF AUTO_APPROVE=yes → there is no one to prompt; skip straight to "User Response Handling: no" below (return an error to the parent command). This step is never gated to proceed automatically — fabricating CVE details is not a safe default, regardless of how much unattended automation the caller wants. IF AUTO_APPROVE=no (or unset — the default) → prompt user:
❌ Unable to fetch details for {CVE-ID} from online sources.
Attempted searches:
- NVD: No results
- MITRE: No results
- Go vulnerability database: No results
- GitHub Security Advisories: No results
Please provide any information you have about this CVE:
1. CVE Description:
[What vulnerability does this CVE describe?]
2. Affected Go Packages/Modules:
[e.g., <package-path>, github.com/<org>/<repo>]
3. Vulnerable Version Range:
[e.g., all versions before <version>, or versions <version-range>]
4. Fixed Version (if known):
[e.g., <version> or later]
5. Severity (if known):
[CRITICAL/HIGH/MEDIUM/LOW or CVSS score]
6. References (if any):
[Links to security advisories, GitHub issues, etc.]
You can provide partial information. Analysis will proceed with whatever details are available.
Would you like to provide CVE details? (yes/no)
User Response Handling:
Merge all gathered information — Jira context (Step 1.5, if present) and public sources (Steps 2–6) — into a single profile. Every field records which source(s) populated it.
{
"cve_id": "CVE-YYYY-NNNNN",
"aliases": ["GHSA-xxxx-xxxx-xxxx"],
"severity": {
"rating": "<CRITICAL|HIGH|MEDIUM|LOW>",
"cvss_score": "<score>",
"cvss_vector": "<CVSS vector string>",
"cvss_source": "<jira|nvd|ghsa — which source this came from>"
},
"affected_packages": [
{
"name": "<package-name>",
"vulnerable_versions": "<version-range>",
"fixed_version": "<fixed-version>",
"vulnerable_functions": ["<function1>", "<function2>"]
}
],
"vulnerability_type": "<vulnerability-type>",
"cwe_id": "CWE-<number>",
"attack_vector": "<attack-vector>",
"description": "<vulnerability description>",
"impact": {
"confidentiality": "<NONE|LOW|HIGH>",
"integrity": "<NONE|LOW|HIGH>",
"availability": "<NONE|LOW|HIGH>"
},
"remediation": {
"fix_available": true,
"recommended_action": "<remediation guidance>",
"workarounds": ["<workaround from Jira description or public advisory>"],
"fix_target_versions": ["<target versions from Jira target_versions, if any>"],
"release_note": "<from Jira release_note_text if present>"
},
"internal_context": {
"jira_ticket": "<PROJ-NNNNN or null>",
"affects_versions": ["<affected versions from Jira>"],
"previous_analysis_notes": "<any conclusions or analysis captured in Jira description>",
"priority": "<Jira priority>",
"status": "<Jira status>"
},
"information_sources": [
{
"type": "Jira",
"verified": true,
"url": "https://redhat.atlassian.net/browse/<PROJ-NNNNN>"
},
{
"type": "NVD",
"verified": true,
"url": "https://nvd.nist.gov/vuln/detail/CVE-YYYY-NNNNN"
},
{
"type": "GitHub Security Advisory",
"verified": true,
"url": "https://github.com/advisories/GHSA-xxxx-xxxx-xxxx"
}
],
"information_completeness": "COMPLETE",
"data_quality": "HIGH",
"conflicts": [],
"gaps": []
}
internal_context and the Jira entry in information_sources are only populated when a jira_context was passed in (Step 1.5); omit them entirely in direct <CVE-ID> mode.
Mark Information Sources:
Record conflicts when Jira and public sources disagree:
"conflicts": [
{
"field": "cvss_score",
"jira_value": "7.5",
"public_value": "6.5",
"resolution": "Used higher value (7.5) for conservative risk assessment"
}
]
Assess Information Completeness:
Identify Gaps:
"gaps": [
"CVSS score not available",
"Fixed version not confirmed",
"Vulnerable functions not identified"
]
Assess if CVE is Go-related:
Strong Indicators (HIGH confidence):
Weak Indicators (MEDIUM confidence):
Not Go-related (Exit early):
Decision Point:
Return structured data to parent command:
{
"skill": "cve-intelligence-gathering",
"status": "success",
"cve_profile": {
"cve_id": "CVE-YYYY-NNNNN",
"severity": "<CRITICAL|HIGH|MEDIUM|LOW>",
"cvss_score": "<score>",
"affected_packages": [...],
"fixed_versions": [...],
"description": "...",
"references": [...]
},
"information_quality": {
"completeness": "<COMPLETE|MOSTLY_COMPLETE|PARTIAL|MINIMAL>",
"sources": ["<source1>", "<source2>", ...],
"user_provided": "<true|false>",
"gaps": []
},
"go_relevance": {
"is_go_related": "<true|false>",
"confidence": "<HIGH|MEDIUM|LOW>",
"reasoning": "<explanation>"
}
}
Error: Invalid CVE identifier format
Expected: CVE-YYYY-NNNNN
Received: {user-input}
Action: Return error, do not proceed
Warning: CVE-{ID} not found in any database
Possible reasons:
- CVE is very new (not yet published)
- CVE ID is incorrect
- CVE was disputed/rejected
- Private disclosure not yet public
Action: Request user input or exit
Info: CVE-{ID} does not appear to affect Go
Affected platforms: {list}
Action: Return NOT_APPLICABLE verdict early
Step 1: Validate
✓ CVE-YYYY-NNNNN - Valid format
Step 2: Primary Sources
✓ NVD: Found - CVSS <score>, Severity: <severity>
✓ MITRE: Found - CWE-<number>, References available
Step 3: Go-Specific Sources
✓ Go vulndb: Found - <package-name>
✓ GHSA: Found - GHSA-xxxx-xxxx-xxxx
- Affected: <package-name> <version-range>
- Fixed: <fixed-version>
- Vulnerable functions: <function1>, <function2>
Step 4: Remediation Intelligence
✓ GitHub Advisory: Update to <fixed-version>
✓ Release notes: <release-notes-url>
✓ Fix commit: <commit-url>
Step 5: Not needed - sufficient data
Step 6: Not needed - sufficient data
Step 7: Compile Profile
✓ All fields populated
✓ Information completeness: COMPLETE
✓ Data quality: HIGH
✓ No gaps identified
Step 8: Go Relevance
✓ Is Go-related: YES
✓ Confidence: HIGH
✓ Package: <package-name>
Result: Complete vulnerability profile ready for Phase 2 analysis
This skill is called from Phase 1 of the analyze-cve skill.
Input from parent:
<CVE-ID> argument, or extracted by jira-cve-extraction when --jira=/--jql= was used)jira_context object from the jira-cve-extraction skill (optional — only present when --jira= or --jql= was provided)AUTO_APPROVE (yes/no, default no) — governs the Step 6 fallback-prompt gatingOutput to parent:
cve_profile — merged vulnerability profile (Jira internal context + public sources when Jira mode was used; public sources only otherwise)information_quality — completeness assessment (noting which fields came from which source)conflict_log — where Jira and public sources disagreed (empty when no Jira context)go_relevance — Go applicability determinationDecision Flow:
IF status = "error" → Exit command
IF go_relevance.is_go_related = false → Generate "Not Applicable" report, exit
IF information_quality.completeness = "MINIMAL" AND user_declined → Exit command
OTHERWISE → Proceed to Phase 2 with profile
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub openshift-eng/ai-helpers --plugin compliance9 skills in this plugin
/analyze-cveFull Go CVE analysis workflow. Given a CVE identifier -- supplied directly, or
resolved from a Jira ticket or JQL batch -- resolves and clones the affected
repository, gathers vulnerability intelligence, analyzes codebase impact with
govulncheck and call-graph reachability, generates a risk report, and optionally
applies a fix and opens a GitHub pull request.
Use when the user gives a CVE ID (CVE-YYYY-NNNNN), a Jira ticket (--jira=), or a
JQL query (--jql=) for Go CVE triage; wants call-graph proof that a vulnerable
function is reachable; or wants an automated fix and PR for a Go dependency
vulnerability.
Triggers on: 'analyze CVE', 'CVE impact', 'is this repo affected by CVE',
'Go vulnerability analysis', 'triage this Jira CVE ticket', 'fix this CVE and
open a PR', or a bare CVE-YYYY-NNNNN identifier.
/call-graph-analysisPerform definitive call graph analysis to prove whether vulnerable functions are reachable from program entry points/codebase-impact-analysisAnalyze a Go codebase to determine if it is impacted by a specific CVE using multiple verification methods and assign a risk level/create-fix-prUse when opening or updating a GitHub pull request after Phase 5 of `/compliance:analyze-cve` has applied and verified a CVE fix locally./image-repo-mappingUse when resolving which GitHub repository to clone for CVE analysis from a container image name in a Jira ticket summary, pscomponent label, or Downstream Component Name field./jira-cve-extractionUse when `/compliance:analyze-cve` is invoked with `--jira=` or `--jql=` and needs the CVE ID, image name, branch, and enriched ticket context from a Jira issue.Other plugins' skills for the same job