Enforce SCA findings before install with artifact management

Your software composition analysis (SCA) tool knows which packages you use, which versions, what they pulled in with them, and which ones carry known risk. SCA and artifact management are two complementary defense-in-depth layers. A strong security posture also needs to govern what enters your build environments. An artifact manager acts as a control point for every package that routes through it into your environment.

SCA shows you what’s in your dependencies

SCA tools read your manifests and lockfiles and build an inventory that maps every package your project depends on. That inventory includes the transitive dependencies that are multiple layers deep and nobody on your team actively chose. A single direct dependency can bring dozens of transitive dependencies along with it, and those transitive dependencies impact your security posture just as much as the top-level ones.

SCA then matches that inventory against vulnerability and threat data, including:

  • Common Vulnerabilities and Exposures (CVE) records, scored for severity with the Common Vulnerability Scoring System (CVSS).
  • The Exploit Prediction Scoring System (EPSS), which estimates the probability of exploitation in the next 30 days.
  • The Cybersecurity and Infrastructure Security Agency's (CISA) Known Exploited Vulnerabilities (KEV) catalog.
  • Malicious package reports, like the MAL- entries the OpenSSF Malicious Packages project publishes to OSV.dev.
  • License data, so a copyleft package doesn’t end up in a proprietary product.

Some SCA tools also provide reachability analysis, which checks whether your code calls the vulnerable function at all. A critical-severity CVE in a code path your application never touches is a lower priority than a medium-severity CVE that sits in your login flow, and reachability helps teams determine which vulnerabilities matter the most so they can fix them first.

SCA can run in many different places along the development lifecycle, meeting developers where they work: as an IDE plugin, a CLI on a workstation, a pull request check, and a CI test or gate. Common SCA vendors include Snyk Open Source, Socket, Aikido, Mend, Black Duck, Endor Labs, Semgrep Supply Chain, and GitHub Dependabot. Different vendors have their own approach to SCA, and all provide different SCA functionality and modalities. Remediation guidance is a big part of their value. Telling a developer which version fixes a problem, and opening the pull request to make the upgrade, turns a finding into a fix.

SCA findings arrive after components are installed

SCA reads what a project declares or what a build resolved. A lockfile scan can run before installation, but by then the developer who added the dependency has usually installed it locally to try it out, and many CI jobs run the SCA step after npm install or pip install has already finished.

For a package with a known vulnerability, that timing works well. A vulnerable library only does harm when someone exploits it in a running application, so a finding during CI arrives in time to fix it before release.

Malicious packages, like Shai-Hulud-style attacks, strike faster and earlier. In this type of attack, a preinstall or postinstall script runs during installation, with the privileges of whoever ran the install, on a machine that usually holds sensitive key data, like npm tokens, GitHub tokens, and cloud keys. By the time a CI scan reports back, the malicious script has already run on the developer’s workstation and possibly on the CI runner.

A pull request gate blocks the merge, and that protects your main branch. The install that produced the finding happened earlier, on the machine of the developer who opened the pull request.

Developer workstations and AI coding agents that pull straight from public registries sit outside CI gates entirely. An agent that installs a package to test a suggestion runs its install scripts long before any pipeline sees the change.

Point-in-time SCA scans go stale quickly

A clean scan tells you a package was clear of risk based on the data available at the time it ran. In 2025, over 48,000 new CVE disclosures were published. In the first three quarters of 2026, the year-to-date number of new CVEs is almost 73,000. Every new disclosure potentially changes the validity of your scan results and poses a threat to your security.

The volume and frequency of CVE disclosures puts as much weight on re-checking the packages already in your environment as it does on evaluating newly arriving ones. SCA tools typically re-scan on triggers: a commit, a schedule, or a manual run. Between those runs, a newly disclosed vulnerability sits unmatched in a package that your project or application relies on.

When an advisory lands, the first question is how far the risk extends. An SCA platform can tell you which of the projects it monitors depends on the affected version. Packages also arrive through paths that no manifest records, like a RUN pip install line in a Dockerfile, a build tool with its own resolver, or an AI agent working in a scratch directory. A complete answer to the blast radius question needs a record of what was pulled, not only what was declared.

Artifact management turns findings into actions

An artifact manager sits on the path dependencies travel into your environment. Every package pull from a developer machine, CI runner, or AI agent goes through it, allowing the artifact manager to apply your policies to each request.

Cloudsmith evaluates packages against your policies before serving them. A package with a known malicious report, a vulnerability above your threshold, or a license your organization prohibits gets blocked before it reaches the machine where its install script would run.

Evaluation continues after ingestion. Cloudsmith’s continuous risk detection matches new and stored packages against threat data supplied by OSV.dev. It re-runs the match whenever new threat data lands. Continuous risk detection matches based on package metadata, making it a lightweight process that can run continuously across every package in your Cloudsmith workspace. A positive match triggers re-evaluation of your security policies, so a package that cleared policy last month automatically gets re-checked the moment a new advisory names it.

Cloudsmith policies, written as code in Open Policy Agent’s Rego language, can block or quarantine critical vulnerabilities that have a known exploit while allowing a lower-severity finding through with a time-boxed exception for a package that has no fixed version yet. Teams can write rules that match their risk tolerance instead of relying on blunt allow-or-block rules that stall builds.

Cloudsmith also keeps a record of which actors pulled each package and when. When SCA flags a package version, that record shows where it went.

Two examples of how SCA and artifact management work together

SCA knows how your application uses a dependency. It identifies the code path and fix, and can suggest alternative versions that minimize impact on your application. Your artifact manager knows what already entered your environment and governs package pulls. The type of threat determines how they interact with each other. We can see how this relationship might play out across two common attack types.

Attack type 1: A critical vulnerability lands in a widely used package. Continuous risk detection flags the affected versions already in Cloudsmith, and logs and observability data show which repositories and pipelines pulled them. Blocking the version everywhere would break builds for applications that never call the vulnerable code, so you can configure policy to flag it for review instead of quarantining it.

At that point, SCA takes over. Reachability analysis can help prioritize fixes to the applications that call the vulnerable function, SCA works out the upgrade path for each, and may even have the ability to open pull requests. SCA can also help determine which fixes to prioritize first. The fixed version comes in through Cloudsmith and passes policy on the way. Once the fixes merge, you can update your policy to block the vulnerable version for everyone, so no new build pulls the affected version again.

Attack type 2: A compromised maintainer account. This is the Shai-Hulud pattern that began to appear frequently starting in September 2025: an attacker uses stolen tokens to publish a malicious patch version of a popular package. In this kind of attack, the artifact manager is the first line of defense. A cooldown policy holds newly published versions for a set period, which gives researchers time to identify the malicious version and the registry time to remove it before it reaches a developer workstation or CI runner. Once a threat advisory exists, continuous risk detection flags the affected package for any team that already pulled it. This triggers Cloudsmith to re-run your policies and block or quarantine the package accordingly.

SCA handles remediation. It checks lockfiles for references to the bad version, including projects that resolved packages outside the artifact manager, and it confirms the fix once those projects update. A clean lockfile check confirms no project still declares the bad version. Cloudsmith’s pull records cover the rest, showing whether anything fetched it through the registry.

Make your SCA tool more actionable with artifact management

SCA remains the best tool for understanding dependency risk: what you have, what’s wrong with it, and how to fix it. An artifact manager enforces those findings before a package installs, and it keeps enforcing them as new intelligence arrives for every package you already use.

Book a demo to see Cloudsmith’s continuous risk detection and policy as code enforcement work alongside your SCA tool.