AGENT SKILL

run2_trivy_audit

Run Trivy in offline mode to identify high and critical vulnerabilities in package-lock.json with specific flag usage.

License 许可
MIT
最近更新
2026-10-02
Stars
★ 93
Forks
8

01 前言 Front Matter

name
run2_trivy_audit
description
Run Trivy in offline mode to identify high and critical vulnerabilities in package-lock.json with specific flag usage.

03 SKILL.md 正文

Trivy Offline Audit (Improved)

Use this skill to scan package-lock.json for HIGH/CRITICAL vulnerabilities.

Usage

  1. Database: Trivy uses its own local DB. Ensure the DB is updated (trivy --download-db-only).
  2. Execution: Use trivy fs to scan the lock file.
    trivy fs --cache-dir /root/.cache/trivy --severity HIGH,CRITICAL --format json --output report.json .
    
  3. Important: Do not use --offline as it prevents the scanner from accessing local database paths correctly in some versions. Rely on the cached DB.

04 同仓库更多 Skills