Evo software dependency audit

From OpenLAIR/OpenSkill · View interactive version

Evo software dependency audit is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Security audit skill for scanning dependency files (e.g., package-lock.json) using Trivy offline scanner to identify HIGH/CRITICAL vulnerabilities and produce CSV reports.

How to use this skill

Skill file

evo-software-dependency-audit

CRITICAL: You MUST Use Trivy (Not npm audit)

DO NOT use npm audit, yarn audit, snyk, or any other tool. The ONLY correct tool for this task is Trivy with its pre-built offline vulnerability database. Using any other tool will produce incorrect results because different tools use different vulnerability databases with different CVE mappings, CVSS scores, and fixed version information.

Trivy is already installed and its offline database is pre-loaded. You do not need internet access.

Quickest Path to Solution

A complete, ready-to-run Python script is provided. Simply execute it:

python3 /root/.claude/skills/evo-software-dependency-audit/scripts/run_audit.py

This will:

  1. Run Trivy offline scan on /root/package-lock.json
  2. Parse the JSON output
  3. Extract HIGH and CRITICAL vulnerabilities
  4. Write /root/security_audit.csv with the correct format

That single command is all you need. Do not modify the script. Do not use npm audit. Do not try alternative approaches.

Alternative: Use as a Python Library

import sys
sys.path.insert(0, '/root/.claude/skills/evo-software-dependency-audit/scripts')
from utils import full_audit

vulns = full_audit('/root/package-lock.json', '/root/security_audit.csv')
print(f"Found {len(vulns)} vulnerabilities")

Why Trivy and Not npm audit

Technical Details

Trivy Offline Scanning Flags

All four flags are required for air-gapped operation:

CVSS Score Extraction Priority

For extracting CVSS scores from Trivy's nested CVSS object, use this vendor precedence:

  1. NVD V3Score — governmental authority, standard reference (matches ground truth)
  2. GHSA V3Score — GitHub Security Advisory
  3. RedHat V3Score — general fallback
  4. Any other vendor V3Score
  5. V2Score with same priority cascade (legacy)

CSV Output Format

Columns: Package,Version,CVE_ID,Severity,CVSS_Score,Fixed_Version,Title,Url

FixedVersion Handling

Deduplication

Functions in scripts/utils.py

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.