# Vulnerability Management Program

> Use when building or running a vulnerability management program for an organization you defend. Covers asset and vulnerability discovery, risk-based prioritization beyond raw severity scores, remediation SLAs by risk tier, patch windows and change control, exception and risk acceptance governance, scanner operations and credentialed scanning, remediation tracking and aging metrics, and verification rescans. Use when patching is ad hoc, when critical vulnerabilities age past 30 days, when leadership asks for risk posture instead of scan counts, or when a new program must be built.

- Skill: `mizazhaider-ceh/vulnerability-management-program` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/vulnerability-management-program`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/vulnerability-management-program/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/vulnerability-management-program

---


Scanning finds vulnerabilities. A program fixes them, in the right
order, on time, with proof. Most programs fail not on discovery but
on the middle: nobody owns the fix, the SLA is a suggestion, and
the same critical finding appears in every monthly report for a
year. This skill builds the full loop: discover, prioritize by
real risk, assign an owner and a deadline, track aging, verify
the fix with a rescan, and govern the exceptions honestly. It is
for estates you own or are authorized to assess and remediate.

## Quick Workflow

1. Build the asset inventory first: a vulnerability on an unknown
   asset is invisible, and scanning only known assets is a census
   of what you already knew.
2. Scan authenticated wherever possible: unauthenticated scans miss
   most patch-level findings and over-report network noise.
3. Prioritize by risk, not by CVSS alone: exploitability, exposure
   (internet facing or not), asset criticality, and data sensitivity.
4. Assign every finding an owner and an SLA by risk tier, on the day
   it is confirmed, not at the monthly meeting.
5. Schedule patch windows that match the SLA, with change control
   and rollback plans for the risky patches.
6. Track aging daily: anything past SLA escalates automatically to
   the asset owner and then to management.
7. Verify with a rescan after the fix: a ticket closed without a
   rescan is a claim, not a fix.
8. Report risk posture to leadership: open criticals by age, SLA
   compliance, and mean time to remediate, not raw finding counts.

## 1. Risk-based prioritization

CVSS alone misorders work: a CVSS 9.8 on an isolated internal test
host is less urgent than a CVSS 7.5 with a public exploit on an
internet-facing server. Score each finding on four factors and
sort by the result. The weights below are a starting point, tune
them to your threat model, but write them down, because an
unwritten priority rule becomes "whoever shouts loudest".

```python
# prioritize.py - rank findings by risk, not by CVSS alone.
# Input: findings.csv with columns cve, cvss, exploit_public,
# internet_facing, asset_criticality (1-5), asset, owner.
# Output: ranked list with SLA tier and deadline in days.
import csv

def risk_score(row):
    score = float(row["cvss"])
    if row["exploit_public"].lower() == "yes":
        score += 2.0
    if row["internet_facing"].lower() == "yes":
        score += 1.5
    score += (int(row["asset_criticality"]) - 1) * 0.5
    return round(score, 1)

def sla_days(score):
    if score >= 10:
        return 7
    if score >= 8:
        return 14
    if score >= 6:
        return 30
    return 90

with open("findings.csv", newline="") as fh:
    rows = sorted(csv.DictReader(fh), key=risk_score, reverse=True)

print(f"{'cve':<18} {'risk':>5} {'sla_d':>6}  asset / owner")
for row in rows:
    s = risk_score(row)
    print(f"{row['cve']:<18} {s:>5} {sla_days(s):>6}  {row['asset']} / {row['owner']}")
```

## 2. Scanner operations and credentialed scanning

Run discovery scans weekly for new assets and authenticated scans
on the full estate at least monthly, plus an on-demand scan after
any major change. Credentialed scanning needs a dedicated scan
account with least privilege, a rotating credential, and an
allowlist so the scanner is not blocked by the very controls it
is testing. Scan from inside the network for the internal view and
from outside for the internet-facing view, because the two views
disagree, and the outside view is the attacker's view.

```bash
# Baseline discovery scan of a subnet, then a targeted web check.
# Use only on networks you own or are authorized to assess.
# -sn finds live hosts without port scanning, keeping discovery light.
nmap -sn 10.20.0.0/24 -oA discovery_2026-10-27

# Service and version detection on a confirmed host, for triage only.
# Full authenticated vulnerability scanning belongs in the scanner
# platform, not in ad hoc commands, so results stay tracked.
nmap -sV -p 22,80,443,3306,5432 10.20.0.10

# Template-based web vulnerability check against an authorized target.
nuclei -u https://internal-app.example.org -tags cve -severity critical,high
```

## 3. SLA tracking and aging

Aging is the metric that matters. Track every finding from first
seen to verified fixed, and escalate on a fixed schedule: owner
notified at day 1, manager at 50 percent of SLA, leadership at
100 percent. Anything that passes SLA twice without a fix or a
formal exception is a governance failure, not a technical delay,
and it goes to the risk register with a named acceptor.

```python
# aging.py - flag findings past SLA and findings about to breach it.
# Input: open_findings.csv with columns cve, first_seen (YYYY-MM-DD),
# sla_days, asset, owner. Run daily from a scheduler.
import csv
from datetime import date

today = date(2026, 10, 27)
with open("open_findings.csv", newline="") as fh:
    for row in csv.DictReader(fh):
        year, month, day = map(int, row["first_seen"].split("-"))
        age = (today - date(year, month, day)).days
        sla = int(row["sla_days"])
        if age > sla:
            print(f"BREACH: {row['cve']} on {row['asset']} age {age}d, "
                  f"SLA {sla}d, owner {row['owner']} - escalate")
        elif age >= sla * 0.8:
            print(f"WARNING: {row['cve']} on {row['asset']} age {age}d, "
                  f"SLA {sla}d, owner {row['owner']} - due soon")
```

## 4. Exceptions and risk acceptance

Some vulnerabilities cannot be fixed on time: the vendor patch
does not exist, the system cannot be rebooted, the application
breaks. Those get a formal exception, not silence. An exception
record names the finding, the compensating control, the accepting
manager, and an expiry date no more than 90 days out. Expired
exceptions return to the open list automatically. An exception
without a compensating control is just a delay with paperwork,
and it is rejected.

## Edge cases

- Zero days and emergency patches: bypass the normal window with
  an emergency change, but never bypass the rescan. Speed without
  verification is how a bad patch ships twice.
- Legacy and OT systems that cannot be patched: isolate them
  (see network segmentation), monitor them closely, and record
  them as accepted risk with a compensating control, not as
  "in progress" forever.
- False positives from scanners: confirm with a manual check or
  a second tool before closing, and feed confirmed false positives
  back to the scanner tuning so the same noise does not return.
- Shared responsibility in cloud: the provider patches the host,
  you patch the workload. A finding on a managed service still
  needs an owner, even if the fix is a provider ticket.
- Patch windows that never arrive: if the SLA is shorter than
  the patch cycle, the cycle is wrong, not the SLA. Fix the
  cycle, or the SLA will be ignored and the program will lose
  credibility with both owners and leadership.
- Vulnerability counts that fall because scanning stopped: track
  scan coverage (assets scanned versus assets known) alongside
  finding counts, so a quiet report cannot hide a blind estate.

## Key references

- CISA Known Exploited Vulnerabilities Catalog, the priority feed
  for exploited flaws: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- NIST SP 800-40 Rev. 4, Guide to Enterprise Patch Management
  Planning.
- CVSS scoring specification for the severity input used above,
  combined here with exploitability, exposure, and criticality.
- FIRST Exploit Prediction Scoring System (EPSS) for the
  probability that a vulnerability will be exploited in the wild.
- MITRE ATT&CK T1190 (Exploit Public-Facing Application), the
  technique unpatched internet-facing flaws most often enable.

