ARTICLE - Security Hardening

Vulnerability Scanning and the CVE Remediation Lifecycle

Vulnerability scanning is the first step in a discover, assess, remediate, verify loop. A single scan is meaningless; what really determines your security posture is whether you can turn results into prioritized fixes and respond quickly when new CVEs are disclosed.

2026-08-06 CISA Known Exploited Vulnerabilities Catalog

Vulnerability Scanning and the CVE Remediation Lifecycle

Vulnerability scanning is the first step in a "discover, assess, remediate, verify" loop. A single scan is meaningless; what really determines your security posture is whether you can turn results into prioritized fixes and respond quickly when new CVEs are disclosed. For tool selection see Vulnerability Scanner Comparison; this article focuses on the process itself.

Positioning common scanning tools

Tool Type Typical use
Nessus / Nessus Professional Commercial, comprehensive Host, configuration, and compliance scanning
OpenVAS Open-source, comprehensive Alternative when the budget is limited
Trivy Open-source image scanner Container image and dependency vulnerabilities (combine with Container Security Best Practices)
Native cloud scanning Platform built-in One-click scanning for instances, images, and serverless

CVE prioritization: not all vulnerabilities are equally urgent

Sorting by CVSS score is only a starting point. In practice, add three dimensions:

  • Exploitability: whether a public POC or exploit code already exists.
  • Attack surface: whether the service is exposed publicly and whether mitigations (WAF, network isolation) exist.
  • Exploited in the wild: prioritize entries in the CISA Known Exploited Vulnerabilities (KEV) catalog, which sets binding remediation deadlines.

Operate in tiers: "below medium -> next maintenance window, high -> this week, KEV/actively exploited -> immediately".

Building a sustainable remediation workflow

  1. Discover: set a scanning cadence (hosts/containers weekly, dependencies and images on every build) and integrate with CI/CD.
  2. Assess: generate priorities from CVSS + exploitability + KEV.
  3. Remediate: patch, fix configuration, or apply temporary mitigations (upgrade, close ports, enable WAF rules).
  4. Verify: rescan after the fix to confirm the vulnerability is gone.
  5. Review: record root causes and connect with the Incident Response workflow.

Closing the loop with baselines and backups

Scanning only finds known issues. Configuration-type risks are covered by the CIS Baseline, and data safety before remediation depends on the Backup Strategy. Together these form complete vulnerability governance.

Making scanning actually run: commands and CI integration

A process is only as good as the tooling it runs on. Here are a few of the most common starting commands to establish a re-scan-able baseline quickly:

# Trivy scanning of a container image (works locally and in CI)
trivy image --severity HIGH,CRITICAL your-image:latest

# Scan dependency lockfiles without pulling an image; great for pre-commit
trivy fs --scanners vuln --severity HIGH,CRITICAL .

# Create a scheduled scan task over GMP with gvm-cli (OpenVAS example)
gvm-cli --gmp-username admin --gmp-password '***' socket --xml \
  '<create_task><name>weekly-host-scan</name></create_task>'

The key is to wire these into CI/CD: scan images right after each build, scan dependency lockfiles on every change, and set thresholds (block the pipeline on a CRITICAL) so scanning becomes part of the build rather than a monthly ritual. In CI, have Trivy emit SARIF or JUnit so results land directly in GitLab/GitHub's vulnerability dashboards and every developer sees which risks their commit introduced.

A real case: the 72 hours of a Log4Shell-style response

Take CVE-2021-44228 (Log4Shell) as an example: public exploit code appeared the day the vulnerability was disclosed, while official patches usually lag by several days. Without routine scanning and an asset inventory, teams are left doing manual company-wide triage. A team with a baseline process moves roughly like this:

  • Hours 0-4: confirm the asset scope — which services run affected log4j versions, and check the KEV catalog first to gauge severity.
  • Hours 4-24: apply temporary mitigations to publicly exposed services that cannot be patched immediately (WAF rules, disabling JNDI lookup).
  • Hours 24-72: roll out patches or upgrades in batches, rescan after each batch to verify, then promote to production.
  • After 72 hours: review root cause and add "which component, which version, running where" to the asset database.

This timeline makes one thing clear: incident response is not about luck, but about whether you already have an asset inventory and ready-made scanning and verification channels. Those are what matter most during the window.

Example vulnerability response SLA

Quantifying your response cadence beats vague promises to "fix it soon." Here is a reference tiering:

Severity Criteria Target response Target fix
Critical KEV/actively exploited 2 hours 24-48 hours
High High severity + public exposure 1 business day 3-5 business days
Medium Medium severity or has mitigations 3 business days Next maintenance window
Low Low severity / layered internal coverage Log it Scheduled window

These numbers are a starting point, not a mandate — tune them to your team size and risk tolerance, but publish them somewhere the whole team can see.

Common mistakes

  • Looking only at CVSS: a high score does not equal high exploit risk; ignoring exploitability and attack surface wastes remediation effort.
  • Scan but never fix: a backlog of reports leaves high-severity vulnerabilities exposed for months.
  • Fix only what you know: scanning misses design flaws and logic bugs — combine it with penetration testing.
  • Ignoring the supply chain: vulnerabilities in images and dependencies are just as dangerous; embed build-time scanning into CI/CD.

Integrating with the release process

Write vulnerability gates into your deployment flow: nothing above high severity ships unfixed, and image scans must pass before anything reaches production. Only when scanning, remediation, and verification form a closed loop does your security posture keep improving iteration after iteration.

References: CISA Known Exploited Vulnerabilities Catalog https://www.cisa.gov/known-exploited-vulnerabilities-catalog · NVD https://nvd.nist.gov/ · CVE List https://cve.org/

16IDC Observation

For small and mid-sized sites, start with free tools and focus on KEV and the public attack surface, rather than drowning in a hundreds-of-pages report nobody acts on. Assigning an owner and a deadline to each vulnerability matters more than piling up tools. Browse more content back in the Security Hardening category.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog

Configuration & Integration Examples

Example 1: Scanning an image with Trivy and gating on severity

IMAGE="${IMAGE:?set IMAGE, e.g. registry.example.com/app:tag}"

# 0) Confirm scanner version so results stay reproducible
trivy --version

# 1) Report first: table for humans, JSON and SARIF for the pipeline
trivy image --severity HIGH,CRITICAL --format table "$IMAGE" | tee report.txt
trivy image --severity HIGH,CRITICAL --format json -o report.json "$IMAGE"
trivy image --format sarif -o report.sarif "$IMAGE"

# 2) Record triaged findings in .trivyignore to stop re-alerting
trivy image --ignorefile .trivyignore --severity HIGH,CRITICAL "$IMAGE"

# 3) Then gate: non-zero exit on high findings, ready for CI
trivy image --exit-code 1 --ignore-unfixed --severity HIGH,CRITICAL "$IMAGE"

Run in report mode for a baseline sprint, watch false positives and legacy backlog, then turn on --exit-code.

Example 2: SBOM and dependency scanning with grype and osv-scanner

# Generate an SBOM and let grype match it; archive the SBOM as evidence
syft "$IMAGE" -o spdx-json > sbom.spdx.json
grype "sbom:sbom.spdx.json" --fail-on high

# Scan open-source dependencies from lock files
osv-scanner --lockfile package-lock.json
osv-scanner --lockfile requirements.txt
osv-scanner --lockfile go.sum

# Report only fixable findings to cut "no patch available" noise
grype "$IMAGE" --only-fixed --fail-on critical

# The working directory can be scanned recursively as well
osv-scanner -r .

# Record scanner and database versions so results are reproducible
trivy --version

# Internet-exposed surface check (authorised assets only)
nmap -sV --top-ports 100 <authorized-host> -oN nmap.txt

An SBOM turns "which of our components does this CVE affect" into a query instead of a pile of conflicting reports.

Scan Cadence and Gate Conditions in CI

Scan frequency is tiered by object: hosts and containers weekly, dependencies and images on every build. Frequency only sets how often you look; a gate decides whether a release proceeds, and the two are configured separately.

The gate runs on exit codes: a HIGH or CRITICAL hit returns non-zero and fails the pipeline. Run report mode first to see false positives and legacy debt, then switch the exit code on so day one does not block every release.

The table pairs each object with its trigger, gate action and decision basis, mapping directly onto CI settings.

Object Trigger Gate action Basis
Hosts and containers Weekly Fix HIGH within the week Scan cadence
Container image Every build Non-zero exit blocks Trivy --exit-code
Dependency lockfile Every change Scan the lockfile osv-scanner --lockfile
Assessed findings Written to ignore file Gate not re-triggered .trivyignore
Report output Every scan SARIF / JUnit into the panel Developer visibility

Troubleshooting False Positives, Noise and Re-scans

Cut noise before turning on the gate. Report only fixable findings and record legacy debt in an ignore file with the assessment behind it, so the first exit-code run does not block every release.

Start false-positive triage with version pinning: log scanner and vulnerability-database versions so a result can be reproduced, and check NVD references when affected ranges do not match the component in hand.

Every fix needs a re-scan. The criterion is that the same image or lockfile no longer matches that CVE in a new run, not that a ticket was moved to resolved.

A finding that survives several rounds usually comes from the base image layer. Swapping or retagging the base image is more direct than patching dependencies at the application layer.

Limitations

  • Configuration-type risks are covered by the CIS Baseline, and data safety before remediation depends on the Backup Strategy.
  • This article reflects public information as of 2026-08-06; terms, prices and quotas follow the provider's current published terms.
  • Third-party capability and limit statements follow their official documentation; no further commitment is implied here.
  • Licensing, filing and data-residency decisions must be verified against the regulations of your operating region.

FAQ

How often should vulnerability scans run?

Hosts and containers weekly, dependencies and images on every build. Shorter intervals produce reports nobody reads, longer ones miss newly published CVEs. Wiring trivy image --exit-code 1 into CI so every build is scanned tracks real risk better than a full scan on a fixed calendar date.

Why do scan reports pile up without fixes?

Because no finding is tied to a person and a deadline. Rank by KEV, internet exposure and CVSS, then set a 2-hour response and a 24–48 hour fix for urgent items, 3–5 working days for high, and the next maintenance window for medium. Every entry needs an owner.

Which permissions do you need before scanning?

Read-only asset discovery rights and a clearly scoped authorisation. Host scans need to enumerate ports and services, container scans need image pull access, and internet exposure checks must stay inside approved assets. On cloud, confirm the scanner role is not blocked from the APIs, or the report stays half-blind.

Related Providers

  • Nessus: when each CVE needs a report with CVSS scores and fixes that non-security teams can action.
  • OpenVAS: when there is no budget and scans must run as scheduled internal jobs with raw results retained.
  • Nmap: when the asset list and open ports must be confirmed first so each CVE maps to a real service version.

Community & Resources

Official docs and communities

  • Trivy — image, filesystem and IaC scanning docs
  • Grype — SBOM matching and --fail-on gating
  • OSV-Scanner — lock file and container dependency scanning
  • NVD — CVE scores, affected versions and references

Learning resources and tools

Original source: CISA Known Exploited Vulnerabilities Catalog ↗