Skip to content
Security
Skill

/dependency-audit

Audit project dependencies, frameworks, languages, and dev tools for known vulnerabilities, CVEs, and security anti-patterns. Use when the user mentions 'dependency audit,' 'npm audit,' 'CVE,' 'vulnerable packages,' 'supply chain security,' 'outdated dependencies,' 'known

From plugin
cybersecurity-skills
52142 skills1 agent

Claude Code

$ npx -y skills add briiirussell/cybersecurity-skills --skill dependency-audit --agent claude-code

SKILL.md

dependency-audit.SKILL.md
name: dependency-audit
description: "Audit project dependencies, frameworks, languages, and dev tools for known vulnerabilities, CVEs, and security anti-patterns. Use when the user mentions 'dependency audit,' 'npm audit,' 'CVE,' 'vulnerable packages,' 'supply chain security,' 'outdated dependencies,' 'known vulnerabilities,' 'security advisory,' 'package security,' 'framework vulnerability,' 'is this package safe,' 'pnpm audit,' 'yarn audit,' 'bundle audit,' 'patch this CVE,' 'audit fix broke,' 'lockfile diff,' 'dependency confusion,' 'registry redirection,' 'MCP server pinning,' 'lookalike Claude Code package,' 'release pipeline,' or needs to check whether their stack, CI, or release pipeline has known security issues."
allowed-tools: Read, Grep, Glob, WebSearch, WebFetch, Bash(npm audit), Bash(npm audit --json), Bash(npm audit --omit=dev), Bash(npm audit --omit=dev --json), Bash(npm ls:*), Bash(npm view:*), Bash(npm outdated:*), Bash(pnpm audit --prod), Bash(pnpm audit --prod --json), Bash(pnpm why:*), Bash(yarn audit --groups dependencies --json), Bash(yarn npm audit:*), Bash(yarn why:*), Bash(osv-scanner scan:*), Bash(govulncheck:*), Bash(bundle audit:*), Bash(composer audit:*), Bash(dotnet list package:*), Bash(trivy fs:*), Bash(trivy image:*)

Dependency Audit — Framework, Package, and Toolchain Security

Audit project dependencies, frameworks, language runtimes, and dev tools for known vulnerabilities (CVEs), security anti-patterns, and supply chain risks.

Cross-references: `patch-sweep` for patching the same advisory across many repos; `scanner-pipeline` for running osv-scanner / trivy in CI across every lockfile at once; `agent-supply-chain-audit` for reviewing the content of MCP servers, skills, and plugins this skill inventories; `cloud-audit` "PaaS" for platform runtime and config checks behind `Mitigated (platform/config)`; `secrets-audit` for tokens found in `.npmrc` or CI; `iam-audit` for the cloud roles CI assumes via OIDC; `cicd-security` for workflow and runner security; `finding-triage` for dispositioning individual findings.

Authorization

Confirm the user owns or is authorized to audit the repo, CI system, and registries before running anything. Audit tools are read-only, but fix commands (`audit fix`, `bundle update`) rewrite lockfiles. Run them only when asked, on a branch, never on the production branch directly.

Methodology

Step 0: Confirm What Ships

Before inventorying anything, confirm you are auditing the code that is actually deployed:

  • **Production branch:** the branch the platform or deploy workflow builds from (Vercel/Netlify production branch, Heroku pipeline, `on: push: branches:` in the deploy workflow). It is not always `main`. In one field sweep, `main` held only a README.
  • **Monorepos:** which app or package is deployed, and its lockfile or workspace slice.
  • **Package manager:** which lockfile is committed and the `packageManager` field. This decides the audit command in Step 2.

If the deployed branch can't be confirmed from the repo, say which branch you audited and mark it `needs_validation`. Details: [references/fixing-safely.md](references/fixing-safely.md) §10.

Step 1: Inventory the Stack

Identify everything in use — not just direct dependencies but the full chain:

**Package manifests — read and catalog:**

Node/JS:    package.json, package-lock.json, yarn.lock, pnpm-lock.yaml
Python:     requirements.txt, Pipfile.lock, pyproject.toml, poetry.lock
Ruby:       Gemfile, Gemfile.lock
Go:         go.mod, go.sum
Rust:       Cargo.toml, Cargo.lock
Java:       pom.xml, build.gradle
PHP:        composer.json, composer.lock
.NET:       *.csproj, packages.config

**Framework and runtime versions:**

  • Check framework version (Next.js, Django, Rails, Spring, Laravel, Express, etc.)
  • Check language/runtime version (Node.js, Python, Ruby, Go, Java, PHP, .NET)
  • Check infrastructure tools (Docker base images, Terraform providers, Kubernetes versions)

**Dev tools and CI/CD:**

  • Check CI/CD pipeline configs (.github/workflows, .gitlab-ci.yml, Jenkinsfile)
  • Check pre-commit hooks, linters, formatters
  • Check container base images and their update status
  • Check IaC tool versions (Terraform, Pulumi, CDK)

**Agent extensions** (code a coding agent loads and runs at launch):

  • MCP server configs: `.mcp.json`, `.cursor/mcp.json`, `.vscode/mcp.json`. Record each server's `command` + `args` (or `url` for remote servers) and whether the version is pinned.
  • Installed skills and agent rules: `SKILL.md` folders, `.claude/agents/`, `.claude/commands/`, `.cursor/rules/*.mdc`, `AGENTS.md`
  • Plugin marketplaces and enabled plugins: `extraKnownMarketplaces`, `enabledPlugins`, `enableAllProjectMcpServers` in `.claude/settings*.json`
  • Inventory and pinning only here. Defer review of what the extension tells the agent to do to `agent-supply-chain-audit`. Greps: [references/source-redirection.md](references/source-redirection.md) §2.

**Edge cases in package manifests:**

  • `optionalDependencies` — installed but not audited by default
  • `peerDependencies` — version range may not match what's installed
  • `overrides` / yarn `resolutions` / pnpm `overrides` — check if used to *silence* advisories rather than fix them
  • Monorepos: read every `packages/*/package.json` and `apps/*/package.json`, not just the root
  • `engines` field — older-than-LTS Node makes other audits moot

Step 2: Run Automated Audit Tools

Run the appropriate audit command for the project:

# Node.js
npm audit --json                # full structured output
npm audit --omit=dev --json     # production-only: filters dev/build-time vulns
# Compare the two — vulns only in dev/build tooling do not ship to users
# and should be triaged as lower priority. Don't bury this in the report.

# pnpm / yarn — use their own audit; npm audit in a pnpm or yarn repo has no
# package-lock.json and fails or audits the wrong tree without a clear error
pnpm audit --prod --json
Read more
@briiirussell
Ships withcybersecurity-skills

A collection of cybersecurity skills for AI coding agents. The AI does the heavy lifting; you bring the context about your stack and your priorities.

52142 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
521
Star history of briiirussell/cybersecurity-skills on GitHub, a chart by star-history.com

Other skills on cybersecurity-skills.

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about dependency-audit.

Which coding agents can use dependency-audit?
dependency-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.