dependency-auditor
|
Works with
--- name: dependency-auditor description: | license: MIT --- # Dependency Auditor ## What You Get - Vulnerability report with CVE IDs, CVSS scores, and fix recommendations - License compliance audit (copyleft flags, conflicts, missing licenses) - Prioritized upgrade plan with breaking change risk assessment ## Philosophy Dependencies are attack surface. Every transitive dependency is code you did not write, did not review, and may not maintain. Audit proactively, not after an incident. ## Workflow: 5 Phases ### Phase 1: Scan Dependencies Detect the project's ecosystem(s) from lockfiles and manifests. A single project may use multiple ecosystems (e.g., Node frontend + Python backend). Identify: - Direct dependencies and their versions - Transitive dependency tree depth - Pinned vs floating version specifiers ### Phase 2: Vulnerability Check Run ecosystem-specific audit commands. See [vulnerability-scanning.md](vulnerability-scanning.md) for per-language tools. For each vulnerability: - CVE identifier and CVSS score - Affected version range - Whether a patched version exists - Whether the vulnerable code path is reachable in this project ### Phase 3: License Audit Classify every dependency's license. See [license-compliance.md](license-compliance.md) for the taxonomy. Flag: - Copyleft licenses in proprietary projects - License conflicts between dependencies - Dependencies with no declared license - Dual-licensed packages where the commercial license applies ### Phase 4: Detect Bloat Identify dependencies that are: - Unused (imported but never called) - Duplicated (multiple versions of the same package) - Oversized relative to their function (pulling in a framework for one utility) - Replaceable with standard library equivalents ### Phase 5: Upgrade Plan For each actionable finding, produce: - Priority (critical vuln > license issue > bloat) - Recommended action (upgrade, replace, remove, pin) - Breaking change risk for each upgrade - Test commands to verify the upgrade ## Polyglot Coverage | Ecosystem | Manifest | Lockfile | Audit Tool | |-----------|----------|----------|------------| | JavaScript/TypeScript | package.json | package-lock.json, yarn.lock, pnpm-lock.yaml | npm audit, yarn audit | | Python | pyproject.toml, requirements.txt | poetry.lock, uv.lock | pip-audit, safety | | Go | go.mod | go.sum | govulncheck | | Rust | Cargo.toml | Cargo.lock | cargo-audit | | Ruby | Gemfile | Gemfile.lock | bundler-audit | | Elixir | mix.exs | mix.lock | mix_audit, sobelow | | Java/Kotlin | pom.xml, build.gradle | | dependency-check | ## Sub-files | File | Topic | |------|-------| | [vulnerability-scanning.md](vulnerability-scanning.md) | Per-language audit commands, CVSS, supply chain | | [license-compliance.md](license-compliance.md) | License classification, GPL contamination, SPDX |
More Security skills
azure-cost
microsoft/azure-skills
Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
azure-messaging
microsoft/azure-skills
Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

