---
title: "SLA Policy"
subtitle: "Comparing patch SLA designs on exposure and workload"
---
```{r load}
#| include: false
source("R/00_setup.R")
source("R/01_data.R")
source("R/02_core.R")
```
This page compares SLA designs and supports the recommendations in [the main analysis](index.qmd). Terms such as exposure-days after listing, expedited and KEV overlay are defined in [Why This Question](index.qmd#why-this-question) on the main page.
## Policies compared {#policies-compared}
Policies are scored on CVEs listed within `r H_pol` days of publication, assuming remediation exactly on schedule, with exposure capped at 365 days. Exposure after listing counts only the time a CVE is both listed and unpatched. Days to remediation also counts the time before listing, when attackers may already have been active. An overlay caps the first measure, and only a proactive tier shortens the second. The selection rule picks the policy with the fewest days to remediation among those with at most `r budget_expedited` expedited CVEs per 1,000 and a KEV overlay of at most 7 days. The ceiling is roughly the workload of a Critical-only tier, and the overlay limit reflects the practice of treating KEV listings as emergency changes. It picks `r rec_code`: `r rec$policy`. The table compares uniform SLAs (U), tiers on CVSS (C, H), vector (V), edge-or-Critical (E) and the EPSS top decile (P), each with and without a KEV overlay (K), and a reactive baseline with no proactive tier (R90).
```{r policy-table}
policy_tbl |>
transmute(
Policy = policy_code[policy],
ea = sprintf("%.1f (%.1f to %.1f)", exposure_after, after_lo, after_hi),
exposure_total, coverage, expedited, emergency, mean_sla
) |>
gt() |>
tab_header(
title = md("**SLA policies compared**"),
subtitle = paste0(fmt_n(n_mp), " CVEs published at least ", H_pol, " days before ", snap, "; ", fmt_n(n_listed_pol), " listed within ", H_pol, " days. Per listed CVE, capped at ", cap_exp, " days.")
) |>
cols_label(
Policy = md("**Policy**"),
ea = md("**Exposure-days after listing (95% CI)**"),
exposure_total = md("**Days to remediation**"),
coverage = md("**Remediated before listing**"),
expedited = md("**Expedited per 1,000**"),
emergency = md("**Emergency per 1,000**"),
mean_sla = md("**Mean SLA (days)**")
) |>
fmt_number(columns = c(exposure_total, expedited, emergency, mean_sla), decimals = 1) |>
fmt_percent(columns = coverage, decimals = 1) |>
cols_align(align = "left", columns = Policy) |>
tab_source_note(code_key) |>
gt_house() |>
tab_style(style = cell_text(weight = "bold"), locations = cells_body(rows = Policy == rec_code))
```
**How to read the table.** Each row is one patching policy, by short code (key below the table); the recommended one is in bold. For CVEs later listed in KEV, the columns give days unpatched after listing (with 95% interval), days from publication to patch, and the share patched before listing. The last three columns are workload: CVEs per 1,000 needing a patch within 14 days or within 3 days, and the average deadline.
**What the table tells you.** The KEV deadline does most of the work: a `r rec_overlay`-day KEV deadline cuts a uniform 30-day policy's exposure after listing from `r round(u30$exposure_after, 1)` to `r round(u30_ov$exposure_after, 1)` days. The recommended tier, `r rec_code`, then trims the time from publication to patch from `r round(u30_ov$exposure_total, 1)` to `r round(rec$exposure_total, 1)` days, for `r round(rec$expedited)` expedited CVEs per 1,000. Wider tiers patch sooner still, but expedite more CVEs.
At the same 3-day overlay, tiering on Critical gives `r round(rec$exposure_total, 1)` days to remediation and tiering on the EPSS top decile `r round(pol_get("EPSS top decile 14d / otherwise 30d, KEV overlay 3d")$exposure_total, 1)`, so severity is the better proactive criterion here. Adding the edge flag (E7/30+K3) lowers the window to `r round(pol_get("Edge or Critical 7d / otherwise 30d, KEV overlay 3d")$exposure_total, 1)` days but needs `r round(pol_get("Edge or Critical 7d / otherwise 30d, KEV overlay 3d")$expedited)` expedited CVEs per 1,000, above the budget of `r budget_expedited`; a larger budget would select it. Tiering on vector alone (V7/90) barely improves on a uniform 30-day SLA (`r round(pol_get("Vector tiered: NETWORK 7d, otherwise 90d")$exposure_total, 1)` against `r round(u30$exposure_total, 1)` days) while expediting `r round(pol_get("Vector tiered: NETWORK 7d, otherwise 90d")$expedited)` CVEs per 1,000. The recommended policy leaves `r round(rec$exposure_after, 1)` exposure-days after listing per listed CVE, or `r round(rec$exposure_after_10k)` per 10,000 CVEs published; [the executive translation below](#executive-translation) scales this to an asset count.
## The tier frontier {#tier-frontier}
A tier that is too narrow leaves more of the window open, and one that is too wide recreates the uniform 14-day workload.
```{r sla-frontier}
#| fig-cap: "Days from publication to remediation for listed CVEs against expedited CVEs per 1,000, as each tier threshold is tightened. Crosses mark reference policies."
sweep <- function(flag_fun, thresholds, short, overlay, label) {
map_dfr(thresholds, \(thr) {
sla <- if_else(flag_fun(thr), short, 30)
policy_metrics(sla, overlay) |> mutate(rule = label, threshold = thr)
})
}
frontier <- bind_rows(
sweep(\(thr) mature_pol$base_score >= thr, seq(5, 10, by = 0.5), 14, 14, "CVSS score >= threshold (14d tier, KEV 14d)"),
sweep(\(thr) edge_m | mature_pol$base_score >= thr, seq(5, 10, by = 0.5), 7, 7, "Edge or CVSS score >= threshold (7d tier, KEV 7d)"),
sweep(\(q) !is.na(epss_rank) & epss_rank <= q, c(0.02, 0.05, 0.10, 0.15, 0.20), 14, 14, "EPSS top share (14d tier, KEV 14d)")
)
named_pts <- policy_tbl |>
filter(policy %in% c("Uniform 14 days", "Uniform 30 days", "Uniform 90 days",
"KEV-reactive: 90d routine, 14d after listing", rec$policy)) |>
mutate(label = case_when(
str_starts(policy, "KEV-reactive") ~ "KEV-reactive (90d)",
policy == rec$policy ~ "Recommended",
TRUE ~ str_remove(policy, "Uniform ")
))
p_front <- ggplot(frontier, aes(x = expedited, y = exposure_total, color = rule)) +
geom_line(linewidth = 1) +
geom_point(size = 1.5) +
geom_point(data = named_pts, aes(x = expedited, y = exposure_total), inherit.aes = FALSE, shape = 4, size = 3, stroke = 1.2) +
geom_text(data = named_pts, aes(x = expedited, y = exposure_total, label = label),
inherit.aes = FALSE, hjust = -0.1, vjust = -0.6, size = 3) +
scale_x_continuous(labels = comma_format(), expand = expansion(mult = c(0.03, 0.12))) +
scale_color_manual(values = c("#E69F00", "#0072B2", "#009E73")) +
guides(color = guide_legend(nrow = 3)) +
labs(
x = "Expedited CVEs (SLA of 14 days or less) per 1,000 published",
y = "Days from publication to remediation, per listed CVE",
color = NULL
)
p_front
```
**How to read the plot.** Each colored line is one rule for choosing which CVEs get a short deadline, traced as its threshold is loosened. The horizontal axis is workload: CVEs per 1,000 placed on a deadline of 14 days or less. The vertical axis is the average days from publication to patch for CVEs later listed in KEV, so lower is better. Black crosses mark fixed reference policies, including the recommended one.
**What the plot tells you.** Every line falls steeply at first and then flattens, so the first couple of hundred expedited CVEs per 1,000 buy most of the gain. The blue edge-or-CVSS line sits lowest, partly because it also uses shorter 7-day deadlines. EPSS (green) does no better than CVSS (orange). The recommended policy matches a uniform 14-day deadline's speed with `r fmt_pct(rec$expedited / u14$expedited, 1)` of its workload.
A purely reactive posture (R90+K3) leaves `r round(pol_get("KEV-reactive: 90d routine, 3d after listing")$exposure_total, 1)` days to remediation, `r round(pol_get("KEV-reactive: 90d routine, 3d after listing")$exposure_total - rec$exposure_total, 1)` more than the recommended policy, because nothing happens before listing. Moving from `r round(rec$expedited)` to `r round(pol_get("Edge or Critical 7d / otherwise 30d, KEV overlay 3d")$expedited)` expedited CVEs per 1,000 saves a further `r round(rec$exposure_total - pol_get("Edge or Critical 7d / otherwise 30d, KEV overlay 3d")$exposure_total, 1)` days, so the budget choice should follow your change capacity.
## Compliance, patch lag and how to apply the comparison {#compliance}
A patch lag above `r L_star - 1` days drops a uniform 14-day SLA's coverage below `r fmt_pct(cov_floor, 1)`. All policies assume the CVE applies to your assets and that remediation completes at the deadline unless a table says otherwise.
To apply the comparison, set the expedited budget from your change capacity, and set the overlay from what your emergency-change process can do in practice, since a 3-day overlay is only worth `r round(pol_get("Uniform 30d, KEV overlay 14d")$exposure_total - u30_ov$exposure_total, 1)` fewer days to remediation than a 14-day overlay if you can really meet it. Then measure your own patch lag and compliance, reread the compliance and lag tables with those values, and report both measures to the board, so the residual is stated as exposure and not as a share of CVEs fixed on time.
```{r compliance-table}
comp_grid |>
gt() |>
tab_header(
title = md("**Compliance sensitivity: exposure-days after listing / days from publication to remediation**"),
subtitle = "Per listed CVE, capped at 365 days; remediation time = SLA x lognormal multiplier"
) |>
cols_align(align = "left", columns = policy) |>
gt_house()
```
**How to read the table.** Each row is a policy and each column a compliance scenario. Each cell holds two numbers for a CVE later listed in KEV: days unpatched after listing / days from publication to patch. "Exact compliance" assumes every deadline is met; the other columns let patch times vary at random around 1, 1.5 or 2 times the deadline, mimicking real programs that run late.
**What the table tells you.** The ranking holds as compliance slips. If patching takes twice the deadline, the recommended policy's days to patch rise from `r round(rec$exposure_total, 1)` to `r sub(".*/ ", "", comp_get(rec$policy, "Median 2.0x, spread 0.5"))`, still well below a uniform 30-day policy (`r sub(".*/ ", "", comp_get("Uniform 30 days", "Median 2.0x, spread 0.5"))`), and its exposure after listing stays at `r sub(" /.*", "", comp_get(rec$policy, "Median 2.0x, spread 0.5"))` days. Slower programs widen every gap, so measured patch times matter more than the written policy.
## SLA-clock sensitivity and stability across periods {#clock-and-periods}
Remediation SLAs usually start when a patch is available, not at NVD publication.
```{r sla-clock-table}
lag_grid |>
mutate(cell = sprintf("%.1f / %.1f", after, total), L = paste0("L = ", L, " days")) |>
select(policy, L, cell) |>
pivot_wider(names_from = L, values_from = cell) |>
gt() |>
tab_header(
title = md("**SLA-clock sensitivity: exposure-days after listing / days from publication to remediation**"),
subtitle = "SLA clock starts L days after NVD publication; exact compliance"
) |>
cols_align(align = "left", columns = policy) |>
gt_house()
```
**How to read the table.** Each row is a policy. Each column delays the start of the deadline clock by L days after publication, as happens when a vendor's patch arrives later than the CVE. Each cell holds two numbers for a CVE later listed in KEV: days unpatched after listing / days from publication to patch, assuming every deadline is met once the clock starts.
**What the table tells you.** A late clock hurts every policy. With a 14-day delay, the recommended policy's exposure after listing rises from `r round(lag_grid$after[lag_grid$policy == rec$policy & lag_grid$L == 0], 1)` to `r round(lag_grid$after[lag_grid$policy == rec$policy & lag_grid$L == 14], 1)` days, against `r round(lag_grid$after[lag_grid$policy == "Uniform 30 days" & lag_grid$L == 14], 1)` for a uniform 30-day policy. At a 30-day delay, every tiered policy with a KEV deadline converges near `r round(lag_grid$after[lag_grid$policy == rec$policy & lag_grid$L == 30])` days, because nothing can be patched before the patch exists.
### Stability across disclosure periods
The pooled figures combine two disclosure windows. The table repeats the base-rate, speed and policy metrics separately, because the later window is the regime a buyer operates in now.
```{r policy-periods}
bind_rows(
tibble(Window = "Pooled", n = n_mp, rate = n_listed_pol / n_mp * 1e4,
p14 = mean(t_list <= 14), pol = list(rec), u30 = list(u30)),
tibble(Window = paste0("Published before ", late_start), n = early_p$n, rate = early_p$rate, p14 = early_p$p14,
pol = list(rec_early), u30 = list(pol_get("Uniform 30 days", policy_tbl_early))),
tibble(Window = paste0("Published from ", late_start), n = late_p$n, rate = late_p$rate, p14 = late_p$p14,
pol = list(rec_late), u30 = list(pol_get("Uniform 30 days", policy_tbl_late)))
) |>
mutate(
rec_after = map_dbl(pol, "exposure_after"), rec_total = map_dbl(pol, "exposure_total"),
rec_exp = map_dbl(pol, "expedited"), u30_total = map_dbl(u30, "exposure_total")
) |>
transmute(
Window, CVEs = n, `Listed within 730 days, per 10,000` = rate, `Listed by day 14, among listed` = p14,
`Recommended: exposure after listing` = rec_after, `Recommended: days to remediation` = rec_total,
`Uniform 30d: days to remediation` = u30_total, `Recommended: expedited per 1,000` = rec_exp
) |>
gt() |>
tab_header(
title = md("**Recommended policy by disclosure window**"),
subtitle = paste0("Recommended policy: ", rec$policy)
) |>
fmt_number(columns = CVEs, decimals = 0) |>
fmt_number(columns = c(`Listed within 730 days, per 10,000`, starts_with("Recommended"), starts_with("Uniform")), decimals = 1) |>
fmt_percent(columns = `Listed by day 14, among listed`, decimals = 1) |>
cols_align(align = "left", columns = Window) |>
gt_house()
```
**How to read the table.** The first row pools all CVEs; the next two split them by publication date, before and from `r late_start`. Columns give the number of CVEs, listings within 730 days per 10,000, and the share of listed CVEs listed by day 14. The rest show the recommended policy's exposure after listing, days to patch and workload, with a uniform 30-day policy's days to patch for comparison.
**What the table tells you.** The later window has slightly fewer listings (`r round(late_p$rate, 1)` per 10,000 against `r round(early_p$rate, 1)`) but faster ones (`r fmt_pct(late_p$p14, 1)` by day 14 against `r fmt_pct(early_p$p14, 1)`). The recommended policy patches in `r round(rec_late$exposure_total, 1)` days in the later window and `r round(rec_early$exposure_total, 1)` in the earlier one, against `r round(u30$exposure_total)` for a uniform 30-day deadline in both. Rates drift, so refresh them, but the policy ranking is stable.
Exposure after listing under the recommended policy is `r round(rec_late$exposure_after, 1)` days in the later window against `r round(rec_early$exposure_after, 1)` earlier. The Critical-only tier delivers `r fmt_pct(gain_early, 1)` of the uniform-14-day coverage gain over a uniform 30-day SLA in the earlier window and `r fmt_pct(gain_late, 1)` in the later one.
## Executive translation: exposure to known-exploited vulnerabilities {#executive-translation}
Exposure-days per CVE instance become exposure-days per asset once the number of applicable CVEs per asset is known, and the data cannot supply that number. The tables below therefore assume a range of values, which are placeholders to replace with the organization's scan and incident data. Enterprise asset mixes also over-represent Microsoft, edge and Critical CVEs relative to the NVD population, so per-1,000 workloads computed on all CVEs understate an enterprise's real expedited share.
```{r exec-exposure}
exec_policies <- unique(c("Uniform 14 days", "Uniform 30 days",
"Critical 14d / otherwise 30d, KEV overlay 14d", rec$policy,
"KEV-reactive: 90d routine, 14d after listing"))
k_vals <- c(10, 25, 100)
h_vals <- c(1e-5, 1e-4, 1e-3)
k_ref <- 25
exec_base <- policy_tbl |>
filter(policy %in% exec_policies) |>
arrange(match(policy, exec_policies)) |>
select(policy, exposure_after_10k)
exec_base |>
mutate(
`10 CVE instances per asset-year` = exposure_after_10k * 10,
`25 CVE instances per asset-year` = exposure_after_10k * 25,
`100 CVE instances per asset-year` = exposure_after_10k * 100
) |>
select(-exposure_after_10k) |>
gt() |>
tab_header(
title = md("**Exposure-days after listing per 10,000 assets per year**"),
subtitle = "Per-CVE exposure scaled by an assumed number of applicable CVE instances per asset per year"
) |>
fmt_number(columns = -1, decimals = 0, use_seps = TRUE) |>
cols_align(align = "left", columns = policy) |>
gt_house()
ex_get <- \(p) filter(exec_base, policy == p)$exposure_after_10k * k_ref
```
**How to read the table.** Each row is a policy. Each column assumes a different number of known vulnerabilities (CVE instances) that apply to a typical asset each year: 10, 25 or 100. Each cell is the total number of days, across 10,000 assets over a year, that a vulnerability already listed in KEV sits unpatched. The counts per asset are assumptions, to be replaced with your own scan data.
**What the table tells you.** Exposure scales directly with the number of applicable CVEs, so the size changes across columns but the ranking of policies never does. The recommended policy leaves about `r round(u30$exposure_after / rec$exposure_after)` times less exposure than a uniform 30-day deadline in every column. Choose the column that matches your own scan counts, and read the figures as exposure, not losses.
```{r exec-incidents}
exec_base |>
mutate(
across(.cols = exposure_after_10k, .fns = \(x) x * k_ref, .names = "ed"),
`h = 0.001%` = ed * h_vals[1], `h = 0.01%` = ed * h_vals[2], `h = 0.1%` = ed * h_vals[3]
) |>
select(policy, starts_with("h =")) |>
gt() |>
tab_header(
title = md("**Expected incidents per 10,000 assets per year (illustrative)**"),
subtitle = paste0(k_ref, " CVE instances per asset-year; h = assumed probability per exposure-day that an exposed known-exploited instance leads to an incident")
) |>
fmt_number(columns = -1, decimals = 2) |>
cols_align(align = "left", columns = policy) |>
gt_house()
```
**How to read the table.** Each row is a policy, assuming `r k_ref` applicable CVE instances per asset per year. Each column assumes a different chance that one day of exposure to a known-exploited, unpatched vulnerability leads to an incident: 0.001%, 0.01% or 0.1%. Each cell is the expected number of incidents per 10,000 assets per year. These chances are placeholders, not estimates from the data.
**What the table tells you.** The absolute numbers move a hundredfold with the assumed chance, so they are only as good as that assumption. The comparison between policies holds whatever the chance: because incidents are proportional to exposure, the recommended policy expects about `r round(u30$exposure_after / rec$exposure_after)` times fewer incidents than a uniform 30-day deadline. Replace the placeholder with your own incident history before quoting these figures.
Under the middle assumption of `r k_ref` applicable CVE instances per asset per year, a uniform 30-day SLA leaves `r format(round(ex_get("Uniform 30 days")), big.mark = ",")` exposure-days after listing per 10,000 assets per year, a uniform 14-day SLA `r format(round(ex_get("Uniform 14 days")), big.mark = ",")`, a KEV-reactive posture (90-day routine cycle, 14 days after listing) `r format(round(ex_get("KEV-reactive: 90d routine, 14d after listing")), big.mark = ",")`, and the recommended policy `r format(round(ex_get(rec$policy)), big.mark = ",")`. They carry the limits of the policy evaluation: an NVD-publication clock, KEV listing as the only marker of known exploitation, and in-sample estimation.
```{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 */
```