Trivy Offline Vulnerability Scanning
Use Trivy vulnerability scanner in offline mode to discover security vulnerabilities in dependency files. This skill covers setting up offline scanning, executing Trivy against package lock files, and generating JSON vulnerability reports without requiring internet access.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill trivy-offline-vulnerability-scanninggit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/software-dependency-audit/environment/skills/trivy-offline-vulnerability-scanning ~/.claude/skills/trivy-offline-vulnerability-scanningPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Trivy Offline Vulnerability Scanning This skill provides guidance on using Trivy, an open-source security scanner, to discover vulnerabilities in software dependencies using offline mode. ## Overview Trivy is a comprehensive vulnerability scanner that can analyze various targets including container images, filesystems, and dependency lock files. **Offline scanning** is crucial for: - Air-gapped environments without internet access - Reproducible security audits with fixed vulnerability databases - Faster CI/CD pipelines avoiding network latency - Compliance requirements for controlled environments ## Why Offline Mode? ### Challenges with Online Scanning - Network dependency introduces failure points - Database updates can cause inconsistent results across runs - Slower execution due to download times - Security policies may restrict external connections ### Benefits of Offline Scanning - **Reproducibility**: Same database = same results - **Speed**: No network overhead - **Reliability**: No external dependencies - **Compliance**: Works in restricted environments ## Trivy Database Structure Trivy's vulnerability database consists of: - **trivy.db**: SQLite database containing CVE information - **metadata.json**: Database version and update timestamp Database location: `<cache-dir>/db/trivy.db` ## Offline Scanning Workflow ### Step 1: Verify Database Existence Before scanning, ensure the offline database is available:
Details
- Skill name
trivy-offline-vulnerability-scanning- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/software-dependency-audit/environment/skills/trivy-offline-vulnerability-scanning/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Trivy Offline Vulnerability Scanning skill do?
Use Trivy vulnerability scanner in offline mode to discover security vulnerabilities in dependency files. This skill covers setting up offline scanning, executing Trivy against package lock files, and generating JSON vulnerability reports without requiring internet access.
How do I install the Trivy Offline Vulnerability Scanning skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill trivy-offline-vulnerability-scanning. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Trivy Offline Vulnerability Scanning popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Vulnerability CSV Reporting
49UCSB-NLP-Chang/Skill-Usage
Generate structured CSV security audit reports from vulnerability data with proper filtering and formatting. This skill covers CSV schema design for security reports, using Python csv.DictWriter, severity-based filtering, and field mapping from JSON to tabular format.
Ssh Penetration Testing
49UCSB-NLP-Chang/Skill-Usage
This skill should be used when the user asks to "pentest SSH services", "enumerate SSH configurations", "brute force SSH credentials", "exploit SSH vulnerabilities", "perform SSH tunneling", or "audit SSH security". It provides comprehensive SSH penetration testing methodologies and techniques.
Abuse Case Design
48sethdford/claude-skills
Design abuse cases (negative use cases) showing how attackers misuse system features. Use when identifying attacks that exploit intended functionality or business logic flaws.
Browse the most popular Claude skills, all security skills, or write your own with the skills generator.