dependency-audit
БесплатноЗапускает вложенные скриптыНе проверенAudit project dependencies, frameworks, languages, and dev tools for known vulnerabilities, CVEs, and security anti-patterns. Use when the user mentions…
от 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 alwaysmain. In one field sweep,mainheld only a README. - Monorepos: which app or package is deployed, and its lockfile or workspace slice.
- Package manager: which lockfile is committed and the
packageManagerfield. 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'scommand+args(orurlfor remote servers) and whether the version is pinned. - Installed skills and agent rules:
SKILL.mdfolders,.claude/agents/,.claude/commands/,.cursor/rules/*.mdc,AGENTS.md - Plugin marketplaces and enabled plugins:
extraKnownMarketplaces,enabledPlugins,enableAllProjectMcpServersin.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 defaultpeerDependencies— version range may not match what's installedoverrides/ yarnresolutions/ pnpmoverrides— check if used to silence advisories rather than fix them- Monorepos: read every
packages/*/package.jsonandapps/*/package.json, not just the root enginesfield — 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
Установить dependency-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWebSearchWebFetchBash(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:*)Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic