Run2 trivy offline
[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.
npx -y skills add cxcscmu/SkillLearnBench --skill run2_trivy-offlineAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Use Trivy vulnerability scanner in offline mode to discover security vulnerabilities in dependency files, covering setup, execution, and JSON output parsing.
SKILL.md
2.2 KB, as published. Nobody here has run it
Trivy Offline Vulnerability Scanning
Prerequisites
- Trivy installed (
trivy --versionto check) - Local vulnerability DB already downloaded (check
trivy --versionfor DB info)
Command for npm package-lock.json
trivy fs \
--skip-db-update \
--skip-java-db-update \
--offline-scan \
--scanners vuln \
--severity HIGH,CRITICAL \
--format json \
/path/to/package-lock.json > results.json
Flag reference
| Flag | Purpose |
|---|---|
--skip-db-update | Don't update vulnerability DB (required for offline) |
--skip-java-db-update | Don't update Java DB (required for offline) |
--offline-scan | No network access |
--scanners vuln | Only vulnerability scanning (not misconfig/secret) |
--severity HIGH,CRITICAL | Filter severity at scan time |
--format json | Machine-readable JSON output |
JSON Output Structure
{
"SchemaVersion": 2,
"Results": [
{
"Target": "package-lock.json",
"Type": "npm",
"Vulnerabilities": [
{
"VulnerabilityID": "CVE-YYYY-NNNNN",
"PkgName": "package-name",
"InstalledVersion": "1.2.3",
"FixedVersion": "1.2.4", // may be null/missing if no fix
"Severity": "HIGH",
"Title": "Short description",
"Description": "Longer description",
"PrimaryURL": "https://avd.aquasec.com/nvd/cve-...",
"CVSS": {
"nvd": {"V3Score": 7.5},
"ghsa": {"V3Score": 7.5},
"redhat": {"V3Score": 7.2}
}
}
]
}
]
}
Important notes
FixedVersioncan be null/None (not just missing) when no fix is availableFixedVersionmay contain comma-separated values for multiple fix branches (e.g., "7.5.2, 6.3.1, 5.7.2")CVSSdict keys vary per vulnerability — not all sources are present for every CVETitlemay be null; fall back toDescriptionif soVulnerabilitieskey may be null (not just empty list) if no vulns found for a target