Software dependency audit

From XuShuwenn/RedAct · View interactive version

Software dependency audit is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Perform security audits on package-lock.json files to identify and report HIGH/CRITICAL severity vulnerabilities in CSV format.

How to use this skill

Skill file

Software Dependency Audit

When to Use

Execution Protocol

Execution Protocol

Key Steps

  1. Read /root/package-lock.json for dependency tree
  2. Scan for vulnerabilities using offline tools (trivy, npm audit)

2a. Before counting or reporting findings, fully enumerate the scanner results; if output is large, page through the complete vulnerability list or parse the JSON with tools such as jq until no entries remain.

2b. Do not infer missing findings from truncated snippets or partial previews.

2c. Ground every CSV row in allowed offline scanner output; do not use memory or internet lookups to fill vulnerability metadata.

  1. Filter for HIGH and CRITICAL severity only
  2. Extract: Package, Version, CVE_ID, Severity, CVSS_Score, Fixed_Version, Title, Url
  3. Write CSV to /root/security_audit.csv
  4. If you create intermediate artifacts, keep them in allowed task directories (prefer /root/...), not /tmp or other unapproved paths.
  5. Before parsing scan output or declaring success, confirm the scanner actually finished successfully; do not treat DB-download, progress, or initialization logs as a completed scan.
  6. Preserve the task's requested audit scope; do not silently broaden or narrow coverage such as including or excluding dev dependencies unless the task says to.
  7. Re-open /root/security_audit.csv before finishing and verify end-to-end: the header is exactly Package,Version,CVE_ID,Severity,CVSS_Score,Fixed_Version,Title,Url, every row has all 8 fields populated with a real value or N/A, and no rows are truncated or malformed.
  8. Reconcile the number of HIGH/CRITICAL findings with the number of CSV data rows; if counts differ or any preview is partial, inspect the source scan data and regenerate/fix the CSV before reporting completion.
  9. Confirm Version is the installed version from package-lock.json and CVE_ID is a real CVE-... value or N/A.
  10. If the task specifies an exact completion marker or final response format, output it verbatim as the final response.

CSV Output Format

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

Common Patterns

Tips

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.