Safeguard Docs

Continuous Scanning

Safeguard re-evaluates every asset against new vulnerabilities, and new policy rules continuously - not just at build time.

Continuous Scanning

Scanning at build time tells you the state of an artifact the moment it was built. That's not enough. A dependency you shipped on Monday can become vulnerable on Thursday when a new CVE is published. Continuous scanning closes that gap.

Safeguard re-evaluates every asset in your inventory - SBOMs, container images, AI models, source repositories, vendor SBOMs - every time the world changes.

What "Continuous" Means in Safeguard

Three signals drive rescans:

  1. Vulnerability feed updates - when a new CVE, GHSA, OSV entry, CISA KEV addition, or EPSS score change affects a component you use.
  2. Safeguard zero-day publication - when the research team publishes an SG-YYYY-NNNNN advisory.
  3. Asset change - when a repository gets a new commit, a registry gets a new image tag, or a vendor uploads a new SBOM.

What Gets Scanned, Continuously

AssetFrequencyMechanism
Source repositoriesEvery push + hourly pullGit webhook + scheduled pull for missed hooks
Container imagesOn push + every 4 hours for running imagesRegistry webhook
Packaged artifacts (jars, wheels, etc.)On publish + on vulnerability-feed deltaRegistry listener + feed-driven rescoring
AI modelsOn publish + weekly re-validationModel registry listener
SBOMs (yours and vendors)On upload + hourly feed-driven rescoringPortal ingestion + feed-driven evaluator
VendorsOn SBOM upload + on SLA expiry (configurable)TPRM scheduler

Feed-Driven Re-Scoring

The expensive part of scanning is not extraction - it's comparing every component to every known advisory. Safeguard inverts this:

  • Components are stored as searchable nodes in the Safeguard knowledge graph.
  • New advisories are matched to components via purl, version range, and CPE resolution.
  • Only affected assets get rescored; unaffected assets are never re-traversed.

This lets Safeguard rescan only the assets a new advisory touches.

Notifications

When a continuous scan produces a new or escalated finding, Safeguard routes the alert by:

  • Owner (from CODEOWNERS, container labels, or manual assignment).
  • Severity band (critical / high / medium / low).
  • Exploitation status (KEV-listed, EPSS > 0.7, PoC available).
  • Environment (production flows differently than dev sandboxes).

Configure routes in Settings → Notifications:

  • Slack / Teams / Discord channels.
  • Jira / Linear / Azure Boards ticket creation.
  • Email digests (per-user, daily or weekly).
  • PagerDuty / OpsGenie on-call pages for critical-KEV findings in production.
  • Generic webhook for custom integrations.

Offline Continuous Scanning

For offline environments, you load vulnerability databases by hand (safeguard update --import, and safeguard threat-intel sync --offline-dir for threat intelligence) and the scanners run offline with SCANNER_OFFLINE_MODE=true. Delivery is not automated.

See the offline deployment guide for the steps.

Rescan History and Diffs

Every asset shows a Timeline of scans:

  • When each scan ran and what triggered it.
  • The diff of findings from the previous scan (added, resolved, changed severity).
  • Griffin-narrated summaries: "3 new high-severity findings since last scan; 2 are in production-reachable code paths."

This makes postmortems straightforward - you can see exactly when a finding entered or left the system.

Tuning Scan Frequency

Most teams should leave defaults on. For specialized needs:

  • Sensitive production workloads - set scan.interval: 5m on the asset label criticality:sensitive.
  • Dev / sandbox environments - set scan.interval: 24h to reduce noise.
  • Vendor SBOMs with SLA windows - set SLA-driven rescans in TPRM.

Settings are in Policies → Scan Policies.

Performance Impact

Continuous scanning is designed to be invisible to your systems:

  • Agentless scans pull metadata from registries and Git providers; no compute runs on your side.
  • Feed-driven rescoring runs in Safeguard cloud; no customer-side work.

API

Trigger an on-demand scan:

safeguard scan --asset <asset-id>
safeguard scan --project <project> --all

To run scans from a pipeline, use the CI scan API described in the API Reference.

On this page