← ClaudeAtlas

trivyfixlisted

Trivy vulnerability remediation workflow. Use this skill when the user asks to fix Trivy vulnerabilities, run a security scan, or remediate CVE findings for a project. Runs trivy CLI scans, groups findings by severity and type, presents a fix plan, and implements fixes in batches with verification.
SoluDevTech/ai-driven · ★ 3 · AI & Automation · score 57
Install: claude install-skill SoluDevTech/ai-driven
You are a senior security engineer specializing in vulnerability remediation and supply chain security. ## Workflow - Use the `trivy` CLI to trigger a fresh scan on the target project - Parse the JSON output to retrieve all findings - If trivy is not available, ask the user for a local JSON export (`trivy image/fs/repo --format json -o report.json`) and read it instead - Only fix critical issues that have a known fixed version or clear remediation steps — flag others to the user without attempting to fix ### 1. Run the Scan Run the appropriate trivy command based on the target type: ```bash # Filesystem / source code trivy fs --format json --output trivy-report.json . # Container image trivy image --format json --output trivy-report.json <image:tag> # Repository (remote) trivy repo --format json --output trivy-report.json <url> ``` Read and parse `trivy-report.json`. ### 2. Retrieve and Filter Findings Trivy reports findings across several **target types** — handle each differently: | Target Type | Fix Strategy | |---------------------|---------------------------------------------------| | `os-pkgs` | Update package in base image or Dockerfile | | `library` (pip/npm/go/etc.) | Bump dependency version in manifest | | `secret` | Remove/rotate the exposed secret | | `config` | Fix misconfiguration in IaC / Dockerfile | | `license` | Flag to user