Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dependency-audit

БесплатноЗапускает вложенные скриптыНе проверен

Audit project dependencies, frameworks, languages, and dev tools for known vulnerabilities, CVEs, and security anti-patterns. Use when the user mentions…

briiirussellот briiirussell★ 541 звезда на GitHub

Об этом скилле

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 §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 §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                       # use the pnpm major matching the lockfile (corepack)
yarn audit --groups dependencies --json        # yarn v1
yarn npm audit --environment production -R     # yarn Berry (v2+)

# Python
pip audit          # If pip-audit installed
safety check       # If saf
Полный SKILL.md на GitHub

Установить dependency-audit в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

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:*)

Вложенные файлы

references/better-auth-expo.mdreferences/ci-release.mdreferences/diff-review.mdreferences/enrich-advisories.mjsreferences/exploitation-signals.mdreferences/findings-format.mdreferences/findings.schema.jsonreferences/fixing-safely.mdreferences/python-startup-hooks.mdreferences/runtime-exposure.mdreferences/severity-calibration.mdreferences/source-redirection.mdreferences/to-sarif.mjsreferences/undici-nov-2026.mdreferences/validate-findings.mjsreferences/verification.md

FAQ

Что делает скилл 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 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.

Как установить скилл dependency-audit?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dependency-audit запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить dependency-audit с