/devsecops-skills:software-composition-analysis-scafrom devsecops-skills
Guides scanning third-party and transitive dependencies for known vulnerabilities and license issues using tools like Grype, Trivy, OWASP Dependency-Check, npm/pip audit, Dependabot, or Snyk, and building a remediation workflow.
Ships in devsecops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Modern applications are assembled mostly from third-party and open-source code — direct dependencies plus their own transitive dependencies, often outnumbering an application's own source code by an order of magnitude or more. Software Composition Analysis (SCA) identifies every component in that dependency tree, matches it against vulnerability databases (the National Vulnerability Database/NVD, GitHub Advisory Database, OSV.dev, vendor advisories) and license databases, and flags known-vulnerable or license-incompatible components before they ship. Unlike SAST (which analyzes code you wrote) or DAST (which probes running behavior), SCA is concerned entirely with what you depend on — and it is often the single highest-leverage scan a team can add, since a large share of real-world breaches trace back to a known, patchable vulnerability in a dependency that was never updated.
package-lock.json
or yarn.lock/pnpm-lock.yaml (npm/yarn/pnpm), requirements.txt/
poetry.lock/Pipfile.lock (Python), go.sum (Go), pom.xml/
gradle.lockfile (Java), Gemfile.lock (Ruby), Cargo.lock (Rust).
SCA tools generally need the lockfile, not just the top-level manifest,
to see transitive dependencies accurately.aquasecurity/trivy, current 0.5x line) — scans
filesystems, container images, and IaC in one tool; good default for
a "just scan everything" first pass.anchore/grype) — pairs naturally with Syft-generated
SBOMs (see the supply-chain skill); fast, container- and
filesystem-aware..NET-centric roots but
supports other ecosystems; NVD-based.npm audit, pip-audit, bundler-audit, govulncheck
(Go) — good lightweight first line, but each only understands its own
ecosystem, so a polyglot repo needs multiple tools or a
multi-ecosystem scanner (Trivy/Grype) as well.Run a baseline scan to see current exposure before gating anything:
trivy fs --scanners vuln --severity HIGH,CRITICAL .
Add a CI step that fails on new critical/high findings in direct dependencies, while tracking (not blocking on) transitive findings that require an upstream fix you don't control directly:
name: sca
on: [pull_request]
jobs:
trivy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trivy filesystem scan
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
severity: 'CRITICAL,HIGH'
exit-code: '1'
ignore-unfixed: true
ignore-unfixed: true avoids blocking on CVEs with no available patch
yet — track those separately with a re-scan schedule instead of
failing every build indefinitely.
Scan container images separately from source, since OS packages (from the base image) and application dependencies have different patch paths:
trivy image --severity CRITICAL,HIGH myorg/myapp:1.4.2
Configure automated dependency updates so fixes land as PRs instead of manual triage. Dependabot example:
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
groups:
minor-and-patch:
update-types: ["minor", "patch"]
Grouping minor/patch updates keeps the PR count manageable; leave major-version bumps ungrouped since they usually need manual review.
Suppress with justification and an expiry, never a silent ignore:
# .trivyignore
# CVE-2023-XXXXX: no fix available upstream yet, low exploitability in our usage
# (library used only in build tooling, not shipped to production). Re-review 2026-09-01.
CVE-2023-XXXXX
Add a license-compliance check if the product has licensing constraints:
trivy fs --scanners license --license-full .
Feed results into the same triage/ticketing pipeline as SAST/DAST findings (see secure-cicd-gates) so dependency vulnerabilities aren't managed in a separate, disconnected process from other security findings.
Symptom: SCA scan reports a critical CVE in a transitive dependency
three levels deep that the team has no direct control over, and the
build is blocked indefinitely with no clear owner.
Fix: Check whether a newer version of the direct dependency pulls
in a patched transitive version first (npm ls <pkg>, mvn dependency:tree);
if no upstream fix exists yet, suppress with an expiry date and
re-review cadence rather than blocking indefinitely, and track it on a
dependency-risk register.
Symptom: Dependabot/Renovate opens 30+ PRs overnight and the team
stops reviewing them entirely.
Fix: Group minor/patch updates into batched PRs, cap
open-pull-requests-limit, and set up auto-merge for
patch-level updates that pass CI, reserving manual review for
major-version bumps and security-labeled PRs.
Symptom: The same CVE is reported by three different tools with three different severity scores, confusing prioritization. Fix: Pick one primary source of truth for severity (e.g. the vendor/GitHub Advisory Database CVSS score) for gating decisions, and treat other tools' scores as supplementary context, not competing gates.
Symptom: A container image scan reports dozens of CRITICAL findings
that all trace back to the base OS image, none of which the
application team can directly patch.
Fix: Bump the base image tag (e.g. move to a newer -slim/distroless
variant or the next patch release) rather than trying to patch
individual OS packages by hand; see
container-image-hardening for
a broader base-image strategy.
Symptom: A scan that passed yesterday fails today with no code changes. Fix: This is expected — a new CVE was disclosed against an already-installed version. Confirm via the CVE ID, then patch or suppress-with-justification; it is not a scanner bug.
A Node.js service adds Trivy filesystem scanning to CI, Dependabot for automated updates, and a documented suppression for one unfixed low-exploitability CVE.
.github/workflows/sca.yml:
name: sca
on: [pull_request]
jobs:
trivy-fs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
severity: 'CRITICAL,HIGH'
exit-code: '1'
ignore-unfixed: true
.trivyignore:
# CVE-2024-XXXXX: fix requires upgrading to a major version with breaking
# API changes; library is used only in an internal CLI tool, not exposed
# to untrusted input. Re-review by 2026-10-01. Tracked in JIRA-4821.
CVE-2024-XXXXX
.github/dependabot.yml:
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 8
groups:
minor-and-patch:
update-types: ["minor", "patch"]
Sample Trivy finding that blocks a PR:
myapp/package-lock.json (npm)
==============================
Total: 1 (HIGH: 1)
┌─────────┬────────────────┬──────────┬──────────┬───────────────┬───────────────┐
│ Library │ Vulnerability │ Severity │ Status │ Installed Ver │ Fixed Ver │
├─────────┼────────────────┼──────────┼──────────┼───────────────┼───────────────┤
│ ejs │ CVE-2024-YYYYY │ HIGH │ fixed │ 3.1.6 │ 3.1.10 │
└─────────┴────────────────┴──────────┴──────────┴───────────────┴───────────────┘
Remediation: bump ejs to >=3.1.10 (npm install [email protected]), commit
the updated lockfile, and re-run the scan to confirm it clears.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sca, dependency-scanning, vulnerability-management, sbom, license-compliance, cve
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin devsecops-skills17 skills in this plugin
/checkov-and-tfsec-iac-security-scanningConfigures Checkov and tfsec to scan Terraform/CloudFormation/Kubernetes IaC source for misconfigurations — hardcoded secrets, overly permissive IAM policies, unencrypted storage, open security groups — before `terraform apply` or `aws cloudformation deploy` ever runs. Use when a user asks to "scan my Terraform for security issues," "add Checkov/tfsec to CI," "find overly permissive IAM in my IaC," "write a Checkov suppression," "compare Checkov and tfsec," or "catch misconfigured cloud resources before they're provisioned."
/complete-devsecops-pipeline-for-kubernetes-from-scratchBuilds the complete security-gate sequence for a Kubernetes-targeted DevSecOps pipeline from scratch — SAST, SCA, container image scanning, a policy-as-code (OPA/Kyverno) admission gate placed before the GitOps handoff, and a secrets model where plaintext credentials never touch the pipeline because an External Secrets Operator pulls them cluster-side instead. Use when the user asks to "build a DevSecOps pipeline for Kubernetes from scratch," "add a policy gate before our GitOps commit," "make sure secrets never touch CI for our K8s deploys," or "sequence SAST/SCA/image-scan/policy gates for a container pipeline end-to-end."
Other plugins' skills for the same job