---
title: "Time-to-KEV: Where Uniform Patch SLAs Spend Effort and Where Listings Actually Concentrate"
subtitle: "Survival analysis of the CISA Known Exploited Vulnerabilities catalog"
author: Patrick Lefler
date: "2026-09-10"
---
```{r load}
#| include: false
source("R/00_setup.R")
source("R/01_data.R")
source("R/02_core.R")
```
## Project Overview {#project-overview}
Which SLA design should you run, and what residual exposure does it leave? Every figure comes from pinned public-data snapshots and names its population.
::: {.callout-note icon="false"}
## What is KEV?
The Known Exploited Vulnerabilities (KEV) catalog is CISA's list of vulnerabilities with reliable evidence of active exploitation and clear remediation guidance. Launched in November 2021 under Binding Operational Directive 22-01, it sets patch deadlines for US federal civilian agencies and is widely used by other organizations to prioritize patching.
:::
**Bottom line.** Run a tiered SLA with a short KEV overlay. The overlay delivers most of the reduction in exposure, and the tier concentrates the remaining expedited effort on Critical and edge-vendor CVEs. Uniform 14-day and 30-day deadlines do worse on exposure, on workload, or on both. The numbers that follow come from the NVD population, so rerun the policy comparison with your own patch lag and compliance before you adopt a tier.
- **Incidence.** `r fmt_n(hm$n_events)` of `r fmt_n(hm$n_total)` CVEs published since November 2021 (`r fmt_pct(hm$pct_event, 0.01)`) were listed in KEV by `r snap`. This is a floor, because listing lags exploitation.
- **Pre-disclosure.** About a quarter of listed CVEs were listed on or before NVD publication, many of them Microsoft's, which fits vendor-disclosed exploitation but is unconfirmed. No scheduled SLA helps with these CVEs, so the lever is how fast you respond to the listing ([How Fast Listing Happens](#speed)).
- **Speed after disclosure.** Among CVEs listed after publication, the typical lag is a few weeks, between a 14-day and a 30-day deadline, so the deadline you choose decides how many of these listings you beat ([How Fast Listing Happens](#speed)).
- **Concentration.** Critical and edge-vendor CVEs are listed several times more often than average, yet even in those groups most CVEs are never listed. The ranking holds on CVEs published after the models were built, and the edge-vendor flag adds a small but reliable improvement ([Where Listings Concentrate](#concentration) and [Does the Ranking Hold Up?](#ranking)).
- **Policy.** The table below compares the recommended policy, `r rec_code` (`r rec$policy`), with three common baselines.
```{r brief-table}
brief_rows <- c("Uniform 14 days", "Uniform 30 days", "Uniform 30d, KEV overlay 3d", rec$policy) |> unique()
policy_tbl |>
filter(policy %in% brief_rows) |>
arrange(match(policy, brief_rows)) |>
transmute(
Policy = policy_code[policy],
`Exposure-days after listing` = exposure_after,
`Days from publication to remediation` = exposure_total,
`Remediated before listing` = coverage,
`Expedited per 1,000` = expedited,
`Emergency per 1,000` = emergency
) |>
gt() |>
tab_header(
title = md("**The recommended policy against common baselines**"),
subtitle = paste0("Per listed CVE; CVEs published at least ", H_pol, " days before ", snap, ", remediation exactly on schedule, capped at 365 days.")
) |>
fmt_number(columns = c(2, 3, 5, 6), decimals = 1) |>
fmt_percent(columns = 4, decimals = 1) |>
cols_align(align = "left", columns = Policy) |>
tab_source_note(code_key) |>
gt_house()
```
**How to read the table.** Each row is one patching policy, named by the short code explained below the table. The first three columns describe a CVE that ends up in KEV: days it stays unpatched after CISA lists it, days from publication to the patch, and how often the patch lands before the listing. The last two columns are workload: how many of every 1,000 published CVEs must be patched within 14 days (expedited) or 3 days (emergency).
**What the table tells you.** Both policies with a `r rec_overlay`-day KEV deadline leave under `r ceiling(max(rec$exposure_after, u30_ov$exposure_after))` days of exposure after listing, against `r round(u14$exposure_after, 1)` for a uniform 14-day deadline that expedites every CVE. The KEV deadline costs only about `r round(u30_ov$emergency)` emergency patches per 1,000 CVEs, the listing rate. The recommended tier also patches more CVEs before they are listed (`r fmt_pct(rec$coverage, 0.1)` against `r fmt_pct(u30$coverage, 0.1)`). All figures assume deadlines are met exactly, so real programs will see larger numbers.
The full comparison of SLA designs, including the tier frontier and compliance sensitivity, is on [SLA Policy](policy.qmd).
**What this does not tell you.**
- Listing is not the start of exploitation, so exposure after listing understates the true window.
- Vendor patch dates and your own compliance move every exposure figure, and the clock starts at NVD publication.
- Rates describe the NVD population. Your assets will over-represent Microsoft, edge and Critical CVEs, and internet exposure is not in the data.
**Open items.** Vendor-advisory exploitation flags, vendor patch dates, and a broader exploitation label (VulnCheck KEV or Shadowserver) were not available.
## Why This Question {#why-this-question}
Calendar SLAs treat every vulnerability in a severity band alike, usually 14 days for Critical and 30 for High. CVSS rates the damage a flaw could do, not whether anyone is using it, and only a small share of published CVEs are ever observed exploited. A uniform deadline therefore spends effort on many CVEs that attackers never touch. The decision at stake is how many CVEs to place on an expedited track and how quickly to act once a CVE appears in KEV.
This analysis applies survival analysis to the CISA Known Exploited Vulnerabilities (KEV) catalog. It asks how likely a CVE is to be listed, how much listing happens at or before disclosure, how fast it happens afterward, and which SLA design leaves the least exposure for the least expedited work. The findings describe enterprise-vendor software of the kind CISA tracks, and they cannot see which of your assets face the internet.
The next three sections give the evidence, followed by the recommendations and limitations. The sources and cohort are described in [Data & Methods](methods.qmd), the full policy comparison is in [SLA Policy](policy.qmd), supporting analyses are in the [Technical Appendix](technical-appendix.qmd), and [Reproducibility](reproducibility.qmd) explains how to rerun everything.
::: {.callout-note icon="false"}
## What the event measures
The event is the first public listing of a CVE in KEV (`dateAdded`), not the first day of exploitation. CISA lists a CVE only after reliable evidence of exploitation and clear remediation guidance, so listing lags exploitation by days to months. Time-to-KEV is therefore an upper bound on time-to-exploitation, and incidence is a floor. "Listed" always means listed in KEV.
:::
| Term | Meaning |
|:-----------------|:---------------------------------------------------------|
| Mature cohort | CVEs published at least H days before the cutoff, so each has had H days to be listed |
| Exposure-days after listing | Days between the KEV listing date and remediation, never below zero, capped at 365 |
| Days to remediation | Days from NVD publication to remediation for CVEs that are listed |
| Expedited / emergency | CVEs with an SLA of 14 days or less / 3 days or less, per 1,000 published |
| KEV overlay | A deadline, counted from the listing date, that applies once a CVE is listed |
| Pre-disclosure listing | A CVE listed on or before its NVD publication date |
**Data in brief.** The cohort covers CVEs published from 1 November 2021 that carry NVD CVSS v3 metrics. Time runs from NVD publication to KEV listing, and CVEs not yet listed are right-censored. Sources, cohort rules, the frozen edge-vendor list and the KEV reconciliation are on [Data & Methods](methods.qmd).
## Where Listings Concentrate {#concentration}
```{r plot-incidence}
#| fig-cap: "Cumulative KEV listings per 10,000 CVEs by days since NVD publication, by CVSS band. The dashed line is edge-vendor CVEs in any band. Bands are 95% intervals."
p_inc <- ggplot(km_band, aes(x = time, y = inc, color = group, fill = group)) +
geom_ribbon(aes(ymin = lo, ymax = hi), alpha = 0.12, color = NA) +
geom_step(linewidth = 1.1) +
geom_ribbon(data = km_edge_line, aes(x = time, ymin = lo, ymax = hi), inherit.aes = FALSE, fill = "gray40", alpha = 0.12) +
geom_step(data = km_edge_line, aes(x = time, y = inc, linetype = "Edge-vendor CVEs (any band)"), inherit.aes = FALSE, color = "black", linewidth = 1) +
scale_x_continuous(breaks = seq(0, 365, by = 60)) +
scale_color_manual(values = band_pal, labels = band_labels, breaks = names(band_pal)) +
scale_fill_manual(values = band_pal, labels = band_labels, breaks = names(band_pal)) +
scale_linetype_manual(values = "dashed") +
labs(x = "Days since NVD publication", y = "Cumulative listings per 10,000 CVEs", color = NULL, fill = NULL, linetype = NULL) +
guides(color = guide_legend(nrow = 2), fill = guide_legend(nrow = 2))
p_inc
```
**How to read the plot.** The horizontal axis counts days since a CVE was published, and the vertical axis shows how many of every 10,000 CVEs had been listed in KEV by that day. Each colored line is one CVSS severity band, the dashed black line is CVEs from edge and network-appliance vendors in any band, and the shaded bands show the uncertainty. A line that starts above zero means some CVEs were listed on or before the day they were published.
**What the plot tells you.** Severity sorts CVEs clearly: by day 365, Critical CVEs reach `r round(crit_inc$inc, 1)` listings per 10,000 and High CVEs `r round(inc_band$inc[inc_band$cvss_band == "High"], 1)`, against `r round(inc_band$inc[inc_band$cvss_band == "Low"], 1)` for Low, and that order holds at every point on the timeline. Edge-vendor CVEs reach `r round(edge_inc$inc, 1)`, `r round(edge_inc$inc / inc_all$inc, 1)` times the rate for all CVEs, even though they span every severity band. Even the highest line stays below `r ceiling(max(c(crit_inc$inc, edge_inc$inc)) / 100)` in 100, so most CVEs in every group are never listed.
#### Severity ranks CVEs well, but absolute risk stays low
The first table gives hazard ratios for post-disclosure listing, the second the discrimination of each score, and the third the absolute risk by band.
```{r severity-hr}
hr_tbl |>
gt() |>
tab_header(
title = md("**Cox hazard ratios for post-disclosure KEV listing**"),
subtitle = "HR (95% CI). Baselines: Low band, NETWORK, LOW complexity, NONE privileges, NONE user interaction."
) |>
cols_label(
term = md("**Term**"),
a = md("**Model A: vector as covariate**"),
b = md("**Model B: stratified by vector**")
) |>
cols_align(align = "left", columns = term) |>
gt_house() |>
tab_source_note(paste0("Proportional-hazards test: global p = ", format.pval(zph_global_p, digits = 2, eps = 0.0001), "; terms with p < 0.05: ", paste(zph_violating, collapse = ", "), ". Hazard ratios are time-averaged."))
```
**How to read the table.** Each row compares a group of CVEs with the baseline named in the subtitle, for example Critical against Low. The number is a hazard ratio: 1 means listed at the same pace as the baseline, 2 means twice as fast on any given day, and below 1 means slower. Brackets give the 95% interval, and the two columns are model versions that differ only in how attack vector is handled.
**What the table tells you.** Severity is the strongest signal: Critical CVEs are listed about `r round(hr_crit$estimate)` times as fast as Low CVEs, and High CVEs about `r round(as.numeric(sub(" .*", "", hr_tbl$a[hr_tbl$term == "CVSS band: High"])))` times as fast. The two columns agree almost exactly, so this does not depend on how attack vector is treated. The intervals for the severity bands are wide because few Low CVEs are ever listed, and the note below the table shows that some ratios change over time, so read them as averages.
```{r severity-disc}
disc_tbl |>
gt() |>
tab_header(
title = md("**Discrimination (Harrell's C-index)**"),
subtitle = "In-sample, post-disclosure cohort. 0.5 = no discrimination."
) |>
cols_label(Model = md("**Model**"), C = md("**C-index**"), se = md("**SE**")) |>
fmt_number(columns = c(C, se), decimals = 3) |>
cols_align(align = "left", columns = Model) |>
gt_house()
```
**How to read the table.** Each row is one way of ranking CVEs by risk. The C-index is the chance that, of two CVEs, the one listed sooner was ranked as riskier: 0.5 is no better than a coin toss and 1.0 is a perfect ranking. SE is the standard error, a measure of how precise each figure is.
**What the table tells you.** The CVSS band alone ranks CVEs well (`r sprintf("%.2f", c_band)`), and the full model with every CVSS metric (`r sprintf("%.2f", c_full)`) adds almost nothing. Attack vector on its own scores `r sprintf("%.2f", disc_tbl$C[disc_tbl$Model == "Attack vector alone"])`, barely above a coin toss, which is why the recommended policy does not use it. These scores are measured on the same data the models were fitted to; the out-of-time test in [Does the Ranking Hold Up?](#ranking) checks them on later CVEs.
```{r severity-band}
band_inc |>
transmute(
`CVSS band` = group,
`KEV listings per 10,000 CVEs by day 365` = paste0(round(inc, 1), " (", round(lo, 1), " to ", round(hi, 1), ")")
) |>
gt() |>
tab_header(
title = md("**Absolute risk by CVSS band**"),
subtitle = "Kaplan-Meier cumulative incidence at day 365 (95% CI), all CVEs, pre-disclosure listings included"
) |>
cols_align(align = "left", columns = 1) |>
gt_house()
```
**How to read the table.** Each row is a CVSS severity band. The figure is how many of every 10,000 CVEs in that band were listed in KEV within a year of publication, with the 95% interval in brackets. It counts CVEs listed on or before publication as well as those listed later.
**What the table tells you.** Risk rises steeply with severity, but it stays low in absolute terms: even in the Critical band only `r fmt_pct(band_inc_get("Critical")$inc / 1e4, 0.1)` of CVEs are listed within a year, so about `r round(100 - band_inc_get("Critical")$inc / 100)` in 100 are not. A deadline that treats every Critical CVE as an emergency therefore spends most of its effort on CVEs that are never listed. The Low band's interval is wide because it has very few listings.
The Cox models above use only CVEs not listed at publication and treat listing after publication as the event. Model A enters attack vector as a covariate, and model B stratifies by vector, so the severity terms do not depend on how vector behaves over time. Three checks guard against artifacts ([Technical Appendix A2](technical-appendix.qmd#a2-severity-robustness)). Letting the baseline hazard differ by publication year gives a Critical versus Low hazard ratio of `r sprintf("%.1f", hr_crit_year$estimate)`, and clustering errors by vendor gives `r sprintf("%.1f", hr_cl$estimate)` (interval `r sprintf("%.1f", hr_cl$conf.low)` to `r sprintf("%.1f", hr_cl$conf.high)`). The CNA-provided score, published with the CVE, discriminates as well as the NVD score (weighted AUC `r sprintf("%.3f", cna_tbl$auc[2])` against `r sprintf("%.3f", cna_tbl$auc[1])`), which argues against late NVD scoring as the source of the signal.
### Product class: edge and network-appliance vendors
Edge-vendor CVEs are `r fmt_pct(edge_summary$n_edge / edge_summary$n, 0.1)` of CVEs but `r fmt_pct(edge_summary$ev_edge / edge_summary$ev, 0.1)` of listings, with an adjusted hazard ratio of `r sprintf("%.1f", hr_edge$estimate)` (interval `r sprintf("%.1f", hr_edge$conf.low)` to `r sprintf("%.1f", hr_edge$conf.high)`). Within the Critical band, incidence is `r round(crit_edge$inc[crit_edge$edge == 1], 0)` per 10,000 for edge vendors against `r round(crit_edge$inc[crit_edge$edge == 0], 0)` for others. Because the vendor list was frozen before 2024, the out-of-time test (see [Does the Ranking Hold Up?](#ranking)) is a fair check. A cure model separates whether a CVE is ever listed after publication from how soon.
```{r cure-table}
cure2_tbl |>
transmute(
`CVSS band` = cvss_band,
`Edge or appliance vendor` = if_else(edge == 1L, "Yes", "No"),
`P(ever listed after publication), per 10,000 not listed at publication` = paste0(round(pe * 1e4, 1), " (", round(pe_lo * 1e4, 1), " to ", round(pe_hi * 1e4, 1), ")"),
`Median days to listing, if ever listed` = paste0(round(med), " (", round(med_lo), " to ", round(med_hi), ")")
) |>
gt() |>
tab_header(
title = md("**Cure model with severity and product class (log-normal latency)**"),
subtitle = "Estimate (95% interval); CVEs not listed at NVD publication"
) |>
cols_align(align = "left", columns = 1:2) |>
gt_house()
```
**How to read the table.** Each row is one severity band, split by whether the CVE comes from an edge or network-appliance vendor. The table covers only CVEs not yet listed on the day they were published. The third column is the model's estimate of how many of every 10,000 such CVEs will ever be listed, and the last column is the typical (median) number of days it takes for those that are. Brackets give the 95% interval.
**What the table tells you.** Within every severity band, edge-vendor CVEs are about `r round(cure2_get("Critical", 1L)$pe / cure2_get("Critical", 0L)$pe)` times as likely to be listed eventually, and they are listed in roughly half the time. For Critical CVEs the chance is `r round(cure2_get("Critical", 1L)$pe * 1e4, 0)` per 10,000 for edge vendors against `r round(cure2_get("Critical", 0L)$pe * 1e4, 0)` for others, with a median of `r round(cure2_get("Critical", 1L)$med)` days against `r round(cure2_get("Critical", 0L)$med)`. These are model estimates that reach beyond the period observed, and rows with few listings, such as Low-band edge vendors, have wide intervals.
Product class matters about as much as severity. Medium-band edge-vendor CVEs reach `r round(inc_grid$inc[inc_grid$cvss_band == "Medium" & inc_grid$edge == 1], 0)` listings per 10,000 by day 365 and High-band ones `r round(inc_grid$inc[inc_grid$cvss_band == "High" & inc_grid$edge == 1], 0)`, comparable to the `r round(crit_edge$inc[crit_edge$edge == 0], 0)` of Critical CVEs from other vendors. Severity moves the chance of eventual listing across two orders of magnitude (from `r round(cure2_get("Low", 0L)$pe * 1e4, 0)` to `r round(cure2_get("Critical", 1L)$pe * 1e4, 0)` per 10,000), and the edge flag also shortens latency. The data show that the flag marks risk, not why, because it measures vendor and not exposure. Both signals leave absolute risk low.
In short, severity ranks CVEs, product class concentrates listings, and neither makes listing likely for an individual CVE: even Critical edge-vendor CVEs are listed in fewer than one case in ten by day 365 (`r fmt_pct(crit_edge$inc[crit_edge$edge == 1] / 1e4, 1)`). A deadline that treats every Critical CVE alike therefore spends most of its effort on CVEs that attackers do not pursue, and a tier that adds product class spends it where listings concentrate.
## How Fast Listing Happens {#speed}
About a quarter of listed CVEs (`r fmt_pct(hm$pct_zero_among_events, 1)`) are listed on or before NVD publication, and the share is stable across clocks (`r fmt_n(cveorg_check$n_zero_cveorg)` of `r fmt_n(cveorg_check$n)` against CVE.org's publication date). Microsoft supplies `r fmt_pct(zd_summary$ms_pre, 1)` of them against `r fmt_pct(zd_summary$ms_post, 1)` of later listings, and `r fmt_pct(zd_summary$pt_pre, 1)` fall on a Patch Tuesday against `r fmt_pct(zd_summary$pt_post, 1)` (Fisher p `r if_else(pt_test$p.value < 1e-4, "< 0.0001", sprintf("= %.4f", pt_test$p.value))`). That fits vendor-disclosed exploitation at release. Vendor advisory flags were not collected, so it remains a hypothesis. NVD publication trails CVE.org's for `r cveorg_check$n_nvd_later` of the listed CVEs, by at most `r cveorg_check$max_nvd_lag` days, so the NVD clock is not what produces this group.
Microsoft leads the vendors with listings on or before NVD publication, and the last column shows how much of each vendor's listing happens early.
```{r vendor-table}
zd_vendor |>
transmute(Vendor = vendor_show, `Listed on or before NVD pub.` = pre, `Listed after NVD pub.` = post,
`Share of the vendor's listings on or before` = pre_share_of_vendor) |>
gt() |>
tab_header(
title = md("**Vendors with the most listings on or before NVD publication**"),
subtitle = "CISA vendorProject, listed CVEs in the cohort"
) |>
fmt_percent(columns = 4, decimals = 0) |>
cols_align(align = "left", columns = Vendor) |>
gt_house()
```
**How to read the table.** Each row is a vendor, ordered by how many of its CVEs were listed in KEV on or before the day NVD published them. The next column counts the vendor's CVEs listed later, and the last column is the share of the vendor's listings that came early.
**What the table tells you.** `r zd_vendor$vendor_show[1]` stands out, with `r zd_vendor$pre[1]` early listings and `r fmt_pct(zd_vendor$pre_share_of_vendor[1], 1)` of all its listings arriving on or before publication. That pattern fits vendors announcing "exploited at release" in their own advisories, but the advisories were not checked here, so it remains a hypothesis. For CVEs like these no scheduled deadline helps, and what matters is how quickly the organization acts once the listing appears.
Listing times among already-listed CVEs are right-truncated: a CVE published 60 days ago can appear only if it was listed within 60. The analysis therefore uses a mature cohort, every CVE at least H = `r H_main` days old, conditional on listing within H.
```{r plot-velocity}
#| fig-cap: "Share of KEV-listed CVEs listed by day t after NVD publication, mature cohort with H = 365, by attack vector. Day 0 includes pre-disclosure listings."
vel_counts <- vel |>
summarise(n = n(), .by = vec3) |>
mutate(label = paste0(vec3, " (n = ", fmt_n(n), ")"))
vel_labels <- set_names(vel_counts$label, vel_counts$vec3)
p2 <- ggplot(vel, aes(x = t_all, color = vec3)) +
stat_ecdf(geom = "step", linewidth = 1.1, pad = FALSE) +
geom_vline(xintercept = c(14, 30, 60), linetype = "dashed", color = "gray55", linewidth = 0.5) +
annotate("text", x = c(14, 30, 60), y = 0.1, label = c("14d", "30d", "60d"),
angle = 90, vjust = -0.5, size = 3.2, color = "gray30") +
scale_x_continuous(breaks = seq(0, 90, by = 15)) +
scale_y_continuous(labels = percent_format(accuracy = 1), breaks = seq(0, 1, by = 0.2)) +
scale_color_manual(values = vec_pal, labels = vel_labels) +
coord_cartesian(xlim = c(0, 90)) +
labs(
x = "Days Since NVD Publication",
y = "Share of KEV-listed CVEs listed by day t",
color = NULL
) +
guides(color = guide_legend(nrow = 1))
p2
```
**How to read the plot.** The plot covers CVEs that were listed in KEV within a year of publication. The horizontal axis counts days since publication, the vertical axis shows what share of those CVEs had been listed by that day, and each colored line is one attack vector, with its number of CVEs in the legend. The dashed grey lines mark 14, 30 and 60 days, common patch deadlines, and a line that starts above zero shows CVEs listed on or before publication.
**What the plot tells you.** Listing is front-loaded: `r fmt_pct(vs$p14, 1)` of these CVEs were listed by day 14 and `r fmt_pct(vs$p30, 1)` by day 30. Leaving out the ones listed at or before publication, `r fmt_pct(vs$p14_post, 1)` were listed by day 14 and `r fmt_pct(vs$p30_post, 1)` by day 30, with a median of `r vs$median_post` days (interval `r med_ci[[1]]` to `r med_ci[[2]]`). A 30-day deadline therefore arrives after about half of the post-disclosure listings have already happened. LOCAL CVEs are listed faster than NETWORK CVEs.
```{r velocity-table}
vel_sens |>
transmute(
`Horizon H (days)` = H,
`Mature CVEs` = fmt_n(n_mature),
`Listed within H` = fmt_n(n_events),
`By day 14, incl. day 0` = fmt_ci(p14, p14_lo, p14_hi),
`By day 30, incl. day 0` = fmt_ci(p30, p30_lo, p30_hi),
`By day 14, post-disclosure only` = fmt_ci(p14_post, p14_post_lo, p14_post_hi),
`By day 30, post-disclosure only` = fmt_ci(p30_post, p30_post_lo, p30_post_hi),
`Median lag, post-disclosure (days)` = median_post,
`By day 14, KM F(14)/F(H)` = fmt_pct(p14_km, 1),
`By day 30, KM F(30)/F(H)` = fmt_pct(p30_km, 1)
) |>
gt() |>
tab_header(
title = md("**Share of KEV-listed CVEs listed by day 14 and day 30, by horizon**"),
subtitle = "Mature cohort per horizon, conditional on listing within H. The KM columns use the full cohort and cover day 0 too."
) |>
cols_align(align = "left", columns = 1) |>
gt_house() |>
tab_source_note(paste0("Vendor-cluster bootstrap 95% interval for the day-14 share at H = ", H_main, ": ", fmt_pct(cl_ci$p14[[1]], 1), " to ", fmt_pct(cl_ci$p14[[2]], 1), ". Without the ", nrow(batch_dates), " batch dates (ten or more additions) the day-14 share is ", fmt_pct(mean(vel_nb$t_all <= 14), 1), "."))
```
**How to read the table.** Each row uses a different follow-up window H, covering CVEs published at least H days before the cutoff and listed within H days. The middle columns give the share listed by day 14 and day 30, with and without listings at or before publication (95% intervals in brackets), then the median days to listing. The last two columns re-estimate the shares from the whole cohort as a cross-check.
**What the table tells you.** The answer depends on the window. Leaving out early listings, the day-14 share falls from `r fmt_pct(vel_sens$p14_post[vel_sens$H == 180], 1)` with a 180-day window to `r fmt_pct(vel_sens$p14_post[vel_sens$H == 730], 1)` with a 730-day window, and the median rises from `r vel_sens$median_post[vel_sens$H == 180]` to `r vel_sens$median_post[vel_sens$H == 730]` days, because longer windows take in more slow listings. Quote any "listed within N days" figure with its window. The cross-check columns agree within a few points, and the note below shows wider intervals when whole vendors are resampled.
For an SLA, the speed result has two parts. The pre-disclosure group is out of reach of any scheduled deadline, so the response to a listing is the lever there. For the rest, listing is neither immediate nor slow: the median of a few weeks sits between a 14-day and a 30-day deadline, which is why the tier and the overlay matter more than the exact deadline. Resampling vendors instead of CVEs widens the day-14 interval from `r fmt_pct(vs$p14_lo, 1)` to `r fmt_pct(vs$p14_hi, 1)` into `r fmt_pct(cl_ci$p14[[1]], 1)` to `r fmt_pct(cl_ci$p14[[2]], 1)`, because Microsoft supplies `r ms_n` of the `r nrow(vel_v)` listings in this cohort. Without Microsoft the day-14 share is `r fmt_pct(mean(no_ms$t_all <= 14), 1)`. Using the first public Exploit-DB exploit as an earlier signal lowers the day-14 share only slightly (`r fmt_pct(edb_row[[5]], 1)` against `r fmt_pct(kev_row[[5]], 1)`), because just `r kev_edb_overlap$n_with_edb` of `r kev_edb_overlap$n_kev` listed CVEs have an Exploit-DB entry ([Technical Appendix A3](technical-appendix.qmd#a3-exploit-db)).
The 25-day empirical median and the `r round(median_ttk$med[median_ttk$vec3 == "NETWORK"])`- to `r round(cure2_get("Critical", 0L)$med)`-day cure-model medians differ by conditioning: listed within a year versus eventually listed. Use the empirical figure ([Technical Appendix A4](technical-appendix.qmd#a4-three-medians)).
## Does the Ranking Hold Up? {#ranking}
A model that fits the full period can still fail on tomorrow's CVEs, and the edge list was built from one period, so this test asks whether each signal generalizes. Seven logistic models, from CVSS alone to CVSS metrics with the edge flag, weakness classes and EPSS, train on CVEs published through 2023 and test on CVEs published from 2024 onward with at least 180 days of follow-up. The outcome is listing within 180 days, and every model uses the same `r fmt_pct(epss_cover$with_epss / epss_cover$all, 1)` of CVEs that have an EPSS score at publication.
```{r oot-table}
oot_tbl |>
transmute(
Model,
`Train AUC` = train_auc,
`Test AUC (95% bootstrap CI)` = sprintf("%.3f (%.3f to %.3f)", test_auc, lo, hi),
`Test AUC, post-disclosure listings only` = sprintf("%.3f (%.3f to %.3f)", post_auc, post_lo, post_hi)
) |>
gt() |>
tab_header(
title = md("**Out-of-time discrimination**"),
subtitle = paste0("Train: published through ", train_end, " (n = ", fmt_n(nrow(train)), "). Test: published ", train_end + 1, " to ", snap - H_val, " (n = ", fmt_n(nrow(test)), "). Outcome: KEV-listed within ", H_val, " days.")
) |>
fmt_number(columns = `Train AUC`, decimals = 3) |>
cols_align(align = "left", columns = Model) |>
gt_house()
```
**How to read the table.** Each row is a model that ranks CVEs by risk. Each model was built on CVEs published through `r format(train_end, "%Y")` and then tested on CVEs published later. AUC is the chance that a randomly chosen listed CVE gets a higher risk score than a randomly chosen unlisted one: 0.5 is a coin toss and 1.0 is perfect. The test columns, with 95% intervals, are the honest measure, and the last column leaves out CVEs listed on or before publication.
**What the table tells you.** CVSS ranks the later CVEs well (test AUC `r sprintf("%.2f", auc_get("CVSS base score alone")$test_auc)`), so the severity result is not an accident of one period. The edge-vendor flag, fixed before the test period, adds a small but reliable `r sprintf("%+.3f", d_edge_est)` (interval `r sprintf("%+.3f", d_edge_ci[[1]])` to `r sprintf("%+.3f", d_edge_ci[[2]])`). EPSS at publication adds `r sprintf("%+.3f", d_epss_est)` to CVSS, but only `r sprintf("%+.3f", d_epss_post_est)` once CVEs listed at or before publication are left out; alone, its score drops from `r sprintf("%.2f", auc_get("EPSS percentile at publication alone")$test_auc)` to `r sprintf("%.2f", auc_get("EPSS percentile at publication alone")$post_auc)` on that subset.
Part of its edge therefore reflects exploitation already known at publication. Weakness classes lift the test AUC to `r sprintf("%.2f", auc_get("CVSS metrics + edge + weakness classes")$test_auc)`, but they were chosen after inspecting the data, so that gain is not a clean out-of-time result. The ranking is steadier than the levels: the Critical-only tier delivers `r fmt_pct(gain_early, 1)` of a uniform 14-day SLA's coverage gain over a uniform 30-day SLA in the earlier disclosure window and `r fmt_pct(gain_late, 1)` in the later one. Test AUC exceeds train AUC for every model, which suggests the 2021 and 2022 listings, including the catalog backfill, are harder to predict from severity. That explanation was not tested.
```{r operating-table}
op_tbl |>
mutate(flag = paste0("Top ", percent(flag, 1))) |>
transmute(
Model, `CVEs flagged` = flag, `Listed CVEs caught` = caught,
`Recall (share of listings caught)` = recall,
`Precision (share of flagged CVEs listed)` = precision
) |>
gt(groupname_col = "Model") |>
tab_header(
title = md("**Recall and precision at fixed flag rates (test period)**"),
subtitle = paste0(fmt_n(nrow(test)), " test CVEs; ", fmt_n(sum(test$y)), " listed within ", H_val, " days (base rate ", fmt_pct(base_rate_test, 0.01), ")")
) |>
fmt_percent(columns = c(`Recall (share of listings caught)`, `Precision (share of flagged CVEs listed)`), decimals = 1) |>
fmt_number(columns = `Listed CVEs caught`, decimals = 0) |>
gt_house()
```
**How to read the table.** Each block is one model. Within it, each row flags the riskiest 5%, 10% or 20% of CVEs from the test period and counts how many of the CVEs later listed in KEV fell inside the flagged group. Recall is the share of all listings that were flagged, and precision is the share of flagged CVEs that were actually listed.
**What the table tells you.** Widening the flagged group catches more listings at a steep cost in workload: for CVSS plus the edge flag, recall rises from `r fmt_pct(op_get("CVSS metrics + edge flag", 0.05)$recall, 1)` at 5% to `r fmt_pct(op_get("CVSS metrics + edge flag", 0.20)$recall, 1)` at 20%, while precision stays near `r fmt_pct(op_get("CVSS metrics + edge flag", 0.10)$precision, 0.1)`. Because so few CVEs are ever listed, most of any flagged group will never be listed whichever model is used. A ranking can decide where patching effort goes first, but it cannot replace a fast response once a CVE is actually listed.
Flagging the top 10% of test CVEs by CVSS plus the edge flag catches `r fmt_pct(op_get("CVSS metrics + edge flag", 0.10)$recall, 1)` of listings at `r fmt_pct(op_get("CVSS metrics + edge flag", 0.10)$precision, 0.1)` precision, against a base rate of `r fmt_pct(base_rate_test, 0.01)`. Precision is low because listing is rare, not because the ranking is poor: the base rate is a few CVEs in a thousand, so even a ranking that concentrates listings about fourfold flags mostly unlisted CVEs. Adding EPSS to the CVSS score catches `r fmt_pct(op_get("CVSS base score + EPSS", 0.10)$recall, 1)` at the 10% rate, but part of that comes from CVEs already known to be exploited at publication. Calibration is `r sprintf("%.2f", cal_overall)` overall, though the model under-predicts Critical CVEs (predicted/observed `r sprintf("%.2f", cal_group$ratio[cal_group$group == "CVSS band: Critical"])`) and edge-vendor CVEs (`r sprintf("%.2f", cal_group$ratio[cal_group$group == "Edge or appliance vendor"])`) ([Technical Appendix A5](technical-appendix.qmd#a5-calibration)).
## Recommendations {#recommendations}
Judgments, not test results, and each assumes the limits in [Limitations](#limitations).
1. **Tier by severity and product class.** `r if_else(edge_validated, "The frozen edge flag adds discrimination out of time, so tier by product class as well as CVSS band.", "The edge flag did not add discrimination out of time, so treat it as a hypothesis.")` EPSS at publication is a candidate second input, though its gain is small once early listings are excluded. Use CVSS band, not attack vector, as the first tier. A tier concentrates effort without identifying CVEs: most flagged CVEs are never listed ([Does the Ranking Hold Up?](#ranking)).
2. **Add a KEV overlay to every tier.** Even a 14-day overlay roughly halves a uniform 30-day SLA's exposure after listing (to `r round(pol_get("Uniform 30d, KEV overlay 14d")$exposure_after, 1)` days), and the 3-day overlay in the [Project Overview](#project-overview) table does better still. Set the overlay from what your emergency-change process can sustain. The overlay is the cheapest control because it applies only to CVEs already confirmed exploited, so its emergency workload equals the listing rate.
3. **Start from `r rec_code` and report its residual, not only compliance.** Its days to remediation roughly double if programs take twice the SLA (to `r sub(".*/ ", "", comp_get(rec$policy, "Median 2.0x, spread 0.5"))`). Report exposure-days after listing to the board. Re-run the comparison with your own patch lag and compliance. To scale to your assets and incident losses, see [SLA Policy](policy.qmd#executive-translation).
4. **Treat the pre-disclosure group as possibly patchable, and test the hypothesis.** Collect vendor-advisory exploitation flags first. If vendor advisories confirm that Microsoft's early listings are "exploited at release" notices, a 72-hour rule for that flag addresses part of the quarter of listings that precede NVD publication. Until checked, this is a hypothesis, and segmentation and detection remain the controls for the rest.
5. **Add internet exposure from your own asset data, and avoid a flat emergency track.** Attack vector measures network reachability, not exposure, so an exposure-based SLA needs your inventory. A flat emergency track is wasteful because most Critical CVEs are never listed ([Where Listings Concentrate](#concentration)).
## Limitations {#limitations}
- **The event is listing.** KEV lags exploitation and omits unlisted exploitation, so timing is an upper bound, incidence a floor, and exposure after listing understates the window.
- **The NVD clock is not the SLA clock.** Patch dates and real compliance are not observed, so the lag and compliance tables are assumptions.
- **EPSS and CVSS timing.** EPSS at publication may reflect exploitation known then, and NVD scores may be assigned late. The CNA check covers part of the cohort.
- **Strata and definitions.** The edge flag uses the first CPE vendor and a judgment-based list, weakness classes were chosen after inspecting the data, and ADJACENT and PHYSICAL are too sparse to read.
- **Selection and clustering.** Only CVEs with CVSS v3 data are included, a vendor is known for `r fmt_pct(mean(!is.na(survival_cohort$vendor_id)), 0.1)` of CVEs, and results apply mainly to enterprise-vendor software.
- **Levels drift.** Listings within 730 days of publication were `r round(early_p$rate, 1)` per 10,000 CVEs in the earlier window and `r round(late_p$rate, 1)` in the later one, so refresh incidence regularly.
- **Policy evaluation is in-sample.** It uses an NVD clock and assumes the CVE affects your assets. The incident-probability scaling in the appendix is a placeholder.
**Three results that would change the advice** (all seven are in [Technical Appendix A6](technical-appendix.qmd#a6-what-would-change-our-mind)):
- CVSS out-of-time AUC at or below 0.65 (now `r sprintf("%.2f", auc_get("CVSS base score alone")$test_auc)`).
- The edge-flag AUC interval including zero on a new test window (now `r sprintf("%+.3f", d_edge_ci[[1]])` to `r sprintf("%+.3f", d_edge_ci[[2]])`).
- A broader exploitation label showing much faster timing than KEV (Exploit-DB or KEV: `r fmt_pct(edb_row[[5]], 1)` by day 14, KEV alone `r fmt_pct(kev_row[[5]], 1)`).
```{css, echo = FALSE}
/* CSS - Styles for the main-table container, title, and subtitle */
.react_table {
padding-top: 5px;
padding-bottom: 5px;
padding-left:5px;
padding-right: 5px;
max-height:600px;
}
.react-title {
font-size: 1.25rem;
font-weight: 600;
}
body { /* default css for document body: includes table if column fontSize not selected */
font-size: 14px;
font-weight: 400;
}
/* Normalize callout notes to match standard body text */
.callout,
.callout-body,
.callout p {
font-size: 0.83rem !important; /* or 15px */
line-height: 1.5 !important;
}
/* Ensure callout titles are proportional and not oversized */
.callout-header,
.callout-title {
font-size: 0.83rem !important;
font-weight: 600 !important;
}
/* css web colors red: #ff0000 blue: #0000ff green: #008000 white: #ffffff
gray: #808080 Black: #000000 yellow: #ffff00 navy: #000080
Gainsboro: #dcdcdc, MediumSeaGreen: #3cb371, Orange: #ffa500, Tomato: #ff6347,
LightGray: #d3d3d3 */
```