ai-risk-management
Apply the NIST AI Risk Management Framework (AI RMF 1.0) and adjacent guidance to AI / ML systems — model lifecycle governance,…
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
$ npx -y skills add briiirussell/cybersecurity-skills --skill dependency-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dependency-auditContext preview
The summary Claude sees to decide when to auto-load this skill.
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
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,' or needs to check whether their stack has known security issues." allowed-tools: Bash, Read, Write, Grep, Glob, WebSearch
Audit project dependencies, frameworks, language runtimes, and dev tools for known vulnerabilities (CVEs), security anti-patterns, and supply chain risks.
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:**
**Dev tools and CI/CD:**
**Edge cases in package manifests:**
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. # Python pip audit # If pip-audit installed safety check # If safety installed # Ruby bundle audit # Go govulncheck ./... # Rust cargo audit # PHP composer audit # .NET dotnet list package --vulnerable # Docker docker scout cves <image> trivy image <image> # General (if Trivy is available) trivy fs .
**Applying fixes — read before you `--force`:**
npm audit fix # safe: upgrades within stated ranges npm audit fix --dry-run --force # ALWAYS dry-run first npm audit fix --force # only after reviewing the dry-run
`npm audit fix --force` can resolve an advisory by DOWNGRADING a package to an older version that doesn't trigger the audit signature. This is almost always wrong (e.g. downgrading `next@16` to `next@9` to "fix" a transitive postcss CVE). Inspect dry-run output for "Will install X@Y, which is a breaking change" — that's the tool trying to downgrade.
**When `npm audit fix` cannot resolve an advisory** (transitive dep pinned by an upstream package):
1. **Determine reachability** — is the vulnerable code path actually invoked in your usage? `npm ls <package>` + reading the parent's source can rule it out as unreachable. 2. **Consider a `package.json` `overrides` pin** to a patched version (test thoroughly — overrides can break the parent). 3. **Consider swapping the parent provider entirely.** 4. **If none apply:** document explicitly, track upstream, and note in the audit report rather than silently dropping the finding.
Beyond CVEs in packages, check for known vulnerability patterns specific to the framework in use. Search for recent advisories and common misconfiguration issues.
For every direct dependency, cross-reference the installed version against:
The framework-specific patterns below cover *evergreen* anti-patterns (mass assignment, debug-in-prod, etc.). Recent CVEs need a fresh check because hardcoded advisory lists rot fast and LLM training data is often 6+ months behind the latest.
**Next.js / React:**
**Django:**
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.
Apply the NIST AI Risk Management Framework (AI RMF 1.0) and adjacent guidance to AI / ML systems — model lifecycle governance,…
Audit REST, GraphQL, and RPC APIs against the OWASP API Security Top 10 (2023). Use when the user mentions 'API security,' 'API…
Learn from public breach disclosures — extract the audit question each one implies and check your own stack. Capital One IMDS…
Audit cloud infrastructure (AWS, GCP, Azure) for misconfigurations, excessive permissions, and security gaps. Use when the user…
Audit container images, Dockerfiles, and Kubernetes manifests for misconfigurations, excessive privileges, exposed secrets, and…
Audit cryptography implementation — algorithm choice, key sizes, KDF parameters, IV/nonce handling, signature verification,…