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
- 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.
- Scan authenticated wherever possible: unauthenticated scans miss
most patch-level findings and over-report network noise.
- Prioritize by risk, not by CVSS alone: exploitability, exposure
(internet facing or not), asset criticality, and data sensitivity.
- Assign every finding an owner and an SLA by risk tier, on the day
it is confirmed, not at the monthly meeting.
- Schedule patch windows that match the SLA, with change control
and rollback plans for the risky patches.
- Track aging daily: anything past SLA escalates automatically to
the asset owner and then to management.
- Verify with a rescan after the fix: a ticket closed without a
rescan is a claim, not a fix.
- 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".
# 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.
# 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.
# 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.
1---2name: vulnerability-management-program3description: Use when building or running a vulnerability management4 program for an organization you defend. Covers asset and vulnerability5 discovery, risk-based prioritization beyond raw severity scores,6 remediation SLAs by risk tier, patch windows and change control,7 exception and risk acceptance governance, scanner operations and8 credentialed scanning, remediation tracking and aging metrics, and9 verification rescans. Use when patching is ad hoc, when critical10 vulnerabilities age past 30 days, when leadership asks for risk11 posture instead of scan counts, or when a new program must be built.12version: 1.0.013domain: defensive14lifecycle: stable15last_verified: "2026-10-27"16requires: []17extends: []18relates: [endpoint-hardening-baseline, incident-response, linux-hardening]19tools:20 - name: nmap21 version: "7.98"22 - name: nuclei23 version: "3.3"24 - name: Python25 version: "3.12"26 - name: Git27 version: "2.47"28metadata:29 source: https://skillmd.com/skills/mizazhaider-ceh/vulnerability-management-program30---3132Scanning finds vulnerabilities. A program fixes them, in the right33order, on time, with proof. Most programs fail not on discovery but34on the middle: nobody owns the fix, the SLA is a suggestion, and35the same critical finding appears in every monthly report for a36year. This skill builds the full loop: discover, prioritize by37real risk, assign an owner and a deadline, track aging, verify38the fix with a rescan, and govern the exceptions honestly. It is39for estates you own or are authorized to assess and remediate.4041## Quick Workflow42431. Build the asset inventory first: a vulnerability on an unknown44 asset is invisible, and scanning only known assets is a census45 of what you already knew.462. Scan authenticated wherever possible: unauthenticated scans miss47 most patch-level findings and over-report network noise.483. Prioritize by risk, not by CVSS alone: exploitability, exposure49 (internet facing or not), asset criticality, and data sensitivity.504. Assign every finding an owner and an SLA by risk tier, on the day51 it is confirmed, not at the monthly meeting.525. Schedule patch windows that match the SLA, with change control53 and rollback plans for the risky patches.546. Track aging daily: anything past SLA escalates automatically to55 the asset owner and then to management.567. Verify with a rescan after the fix: a ticket closed without a57 rescan is a claim, not a fix.588. Report risk posture to leadership: open criticals by age, SLA59 compliance, and mean time to remediate, not raw finding counts.6061## 1. Risk-based prioritization6263CVSS alone misorders work: a CVSS 9.8 on an isolated internal test64host is less urgent than a CVSS 7.5 with a public exploit on an65internet-facing server. Score each finding on four factors and66sort by the result. The weights below are a starting point, tune67them to your threat model, but write them down, because an68unwritten priority rule becomes "whoever shouts loudest".6970```python71# prioritize.py - rank findings by risk, not by CVSS alone.72# Input: findings.csv with columns cve, cvss, exploit_public,73# internet_facing, asset_criticality (1-5), asset, owner.74# Output: ranked list with SLA tier and deadline in days.75import csv7677def risk_score(row):78 score = float(row["cvss"])79 if row["exploit_public"].lower() == "yes":80 score += 2.081 if row["internet_facing"].lower() == "yes":82 score += 1.583 score += (int(row["asset_criticality"]) - 1) * 0.584 return round(score, 1)8586def sla_days(score):87 if score >= 10:88 return 789 if score >= 8:90 return 1491 if score >= 6:92 return 3093 return 909495with open("findings.csv", newline="") as fh:96 rows = sorted(csv.DictReader(fh), key=risk_score, reverse=True)9798print(f"{'cve':<18} {'risk':>5} {'sla_d':>6} asset / owner")99for row in rows:100 s = risk_score(row)101 print(f"{row['cve']:<18} {s:>5} {sla_days(s):>6} {row['asset']} / {row['owner']}")102```103104## 2. Scanner operations and credentialed scanning105106Run discovery scans weekly for new assets and authenticated scans107on the full estate at least monthly, plus an on-demand scan after108any major change. Credentialed scanning needs a dedicated scan109account with least privilege, a rotating credential, and an110allowlist so the scanner is not blocked by the very controls it111is testing. Scan from inside the network for the internal view and112from outside for the internet-facing view, because the two views113disagree, and the outside view is the attacker's view.114115```bash116# Baseline discovery scan of a subnet, then a targeted web check.117# Use only on networks you own or are authorized to assess.118# -sn finds live hosts without port scanning, keeping discovery light.119nmap -sn 10.20.0.0/24 -oA discovery_2026-10-27120121# Service and version detection on a confirmed host, for triage only.122# Full authenticated vulnerability scanning belongs in the scanner123# platform, not in ad hoc commands, so results stay tracked.124nmap -sV -p 22,80,443,3306,5432 10.20.0.10125126# Template-based web vulnerability check against an authorized target.127nuclei -u https://internal-app.example.org -tags cve -severity critical,high128```129130## 3. SLA tracking and aging131132Aging is the metric that matters. Track every finding from first133seen to verified fixed, and escalate on a fixed schedule: owner134notified at day 1, manager at 50 percent of SLA, leadership at135100 percent. Anything that passes SLA twice without a fix or a136formal exception is a governance failure, not a technical delay,137and it goes to the risk register with a named acceptor.138139```python140# aging.py - flag findings past SLA and findings about to breach it.141# Input: open_findings.csv with columns cve, first_seen (YYYY-MM-DD),142# sla_days, asset, owner. Run daily from a scheduler.143import csv144from datetime import date145146today = date(2026, 10, 27)147with open("open_findings.csv", newline="") as fh:148 for row in csv.DictReader(fh):149 year, month, day = map(int, row["first_seen"].split("-"))150 age = (today - date(year, month, day)).days151 sla = int(row["sla_days"])152 if age > sla:153 print(f"BREACH: {row['cve']} on {row['asset']} age {age}d, "154 f"SLA {sla}d, owner {row['owner']} - escalate")155 elif age >= sla * 0.8:156 print(f"WARNING: {row['cve']} on {row['asset']} age {age}d, "157 f"SLA {sla}d, owner {row['owner']} - due soon")158```159160## 4. Exceptions and risk acceptance161162Some vulnerabilities cannot be fixed on time: the vendor patch163does not exist, the system cannot be rebooted, the application164breaks. Those get a formal exception, not silence. An exception165record names the finding, the compensating control, the accepting166manager, and an expiry date no more than 90 days out. Expired167exceptions return to the open list automatically. An exception168without a compensating control is just a delay with paperwork,169and it is rejected.170171## Edge cases172173- Zero days and emergency patches: bypass the normal window with174 an emergency change, but never bypass the rescan. Speed without175 verification is how a bad patch ships twice.176- Legacy and OT systems that cannot be patched: isolate them177 (see network segmentation), monitor them closely, and record178 them as accepted risk with a compensating control, not as179 "in progress" forever.180- False positives from scanners: confirm with a manual check or181 a second tool before closing, and feed confirmed false positives182 back to the scanner tuning so the same noise does not return.183- Shared responsibility in cloud: the provider patches the host,184 you patch the workload. A finding on a managed service still185 needs an owner, even if the fix is a provider ticket.186- Patch windows that never arrive: if the SLA is shorter than187 the patch cycle, the cycle is wrong, not the SLA. Fix the188 cycle, or the SLA will be ignored and the program will lose189 credibility with both owners and leadership.190- Vulnerability counts that fall because scanning stopped: track191 scan coverage (assets scanned versus assets known) alongside192 finding counts, so a quiet report cannot hide a blind estate.193194## Key references195196- CISA Known Exploited Vulnerabilities Catalog, the priority feed197 for exploited flaws: https://www.cisa.gov/known-exploited-vulnerabilities-catalog198- NIST SP 800-40 Rev. 4, Guide to Enterprise Patch Management199 Planning.200- CVSS scoring specification for the severity input used above,201 combined here with exploitability, exposure, and criticality.202- FIRST Exploit Prediction Scoring System (EPSS) for the203 probability that a vulnerability will be exploited in the wild.204- MITRE ATT&CK T1190 (Exploit Public-Facing Application), the205 technique unpatched internet-facing flaws most often enable.