patch-cve
Skill by HolmesGPT
Guides an assistant through patching CVEs in the HolmesGPT Docker image. It covers finding the vulnerable package with docker scout, checking upstream fixes, rebuilding, and validating the result.
Install patch-cve
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HolmesGPT/holmesgpt /tmp/holmesgpt && mkdir -p ~/.claude/skills && cp -r /tmp/holmesgpt/.claude/skills/patch-cve ~/.claude/skills/patch-cveRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HolmesGPT/holmesgpt /tmp/holmesgpt && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/holmesgpt/.claude/skills/patch-cve ~/.gemini/antigravity-cli/skills/patch-cveAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives the assistant a step-by-step workflow for handling CVEs in the HolmesGPT Docker image. It starts by running docker scout cves to find which package or binary introduces the vulnerability, including Go standard library, system packages, and Python dependencies. Before changing anything, it checks whether a newer upstream release, a merged pull request, or a newer package version already contains the fix.
The skill then picks one of four strategies: upgrading to a fixed upstream release, rebuilding from source with a patched Go version, pre-building binaries locally for both amd64 and arm64, or pinning a system package version. After building the image, it confirms the CVE is gone with docker scout, checks the tool still runs, and adds Dockerfile comments describing when the patch can be reverted. It is written for people who maintain that image.
Written from the project's SKILL.md and checked against it.
What it can do
- Identify the CVE sourceUses docker scout cves to find the affected package, its version range, the fixed version, and the binary involved.
- Check upstream fixesLooks at the latest tool releases, go.mod files, upstream PRs and issues, apt and pip versions for a fix.
- Apply the fixChooses between upgrading a version, rebuilding from source, pre-building binaries, or pinning a package version.
- Build the imageBuilds a test image for a single platform, with multi-platform builds suggested after the fix is confirmed.
- Validate the fixConfirms the CVE is gone with docker scout, reviews remaining high and critical CVEs, and checks the tool still runs.
- Document and clean upAdds Dockerfile comments on the patch and revert conditions, removes temporary workarounds, and deletes test images.
What you need
- Docker
- docker scout
- Go toolchain for pre-building binaries
- Git LFS for large binaries (optional)
Try asking
- Patch CVE-2025-68121 in the HolmesGPT Docker image
- Check whether a newer ArgoCD release fixes a Go stdlib CVE
- Validate that a CVE is gone after rebuilding the image
Good to know
- Single-platform builds are enough for quick validation, per the source.
- go.mod shows the minimum Go version, so check the binary's version output instead.
- Git LFS is suggested for large binaries of about 200MB or more.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/patch-cve/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to patch-cve
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
patch-cve: common questions
Which types of CVEs does this skill cover?
The skill covers CVEs in the HolmesGPT Docker image, including Go standard library issues, system packages, and Python dependencies.
Should I upgrade a tool or rebuild it from source?
Upgrading to a fixed upstream release is preferred. Rebuilding from source or pre-building binaries is for cases where upstream has not released a fix yet.
How does the skill confirm a CVE is fixed?
It runs docker scout cves on the rebuilt image and checks that the CVE no longer appears. It then runs the tool's version and help commands to confirm it still works.
How do I install patch-cve?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is patch-cve free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is patch-cve safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to patch-cve?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
