Spending to the Frontier

Testing Bayesian Optimization on a Cyber Control Budget: Overview

Author

Patrick Lefler

Published

December 3, 2026

All money is in US dollars and all values are illustrative. The firm is synthetic.

Introduction

“We have $3M a year for new cyber controls. Where should it go, and how much protection does each extra dollar buy?”

Boards are asked to approve cyber budgets with little sense of what the money buys. This project works through the question for a synthetic financial services firm with $2.00B of revenue. The firm faces four loss scenarios: ransomware, business email compromise, data breach and third-party compromise. 7 control levers compete for the budget, each with diminishing returns and an evidence grade. The analysis was revised after an external review, which corrected the ransomware frequency and the tail model, moved the optimizer onto the board’s tail measure and brought identity and MFA into the main search.

Approach. A Monte Carlo simulator turns any allocation into a distribution of annual losses, with every input drawn from a graded assumptions register (Model). Bayesian optimization, greedy allocation, an exact optimizer and a full grid search the splits (Optimization). 200 random parameter draws and stress tests then check whether the answer survives what we do not know (Robustness). The board’s tail measure is TVaR95, the average loss in the worst 1-in-20 years.

Headline results.

  1. The appetite is a premise, not a finding. The board’s $10M appetite on TVaR95 is a design choice, first set against an earlier calibration. Under the corrected calibration, zero-spend TVaR95 is $7.51M, already inside the appetite on base-case values. But it is inside the appetite in only 52% of parameter draws.
  2. Recommended split. The recommended $3.0M split leans on configuration hardening (23%), logging, monitoring and SOC (21%) and privileged access management (21%) and brings TVaR95 to $3.76M. Many nearby splits do almost as well, so it is shown as a range below.
  3. What spend buys in confidence. Keeping TVaR95 inside the appetite in 80% of parameter draws first needs $1.75M of spend. At $3M the share is 91%.
  4. The money case rests on how the board prices tail risk. At a 10% cost of capital on unexpected loss, the recommendation breaks even against no spending only if that charge is 79% or more.
  5. How much matters more than how. The best split beats an equal split by only 3.5% of TVaR95.
ImportantRead the results as a method, not a forecast

The firm, its losses and its control effects are synthetic. Every frequency input and most control-effect inputs are graded weak, expert judgment or gap. The numbers show how the method works and what it would say given these inputs. They are not estimates for any real firm.

What did not go as expected

The study set out to show that Bayesian optimization can find the best split of a cyber budget. Several of the original expectations did not hold, and the results are more useful read with that in mind.

  • Bayesian optimization was not needed. One simulation takes about 0.16 seconds, so the full grid of 33,390 splits was affordable, and expected loss can be optimized exactly. Greedy allocation and the exact optimizer both came within 0.05% of the best split known, while Bayesian optimization ended 3.24% above it. The study is best read as a test of the method, which it does not pass on a problem this cheap.
  • The baseline is already inside the appetite. After the review corrected the ransomware frequency, zero-spend TVaR95 is $7.51M against a $10M appetite, so the expected story of spending to reach the appetite did not materialize on base-case values.
  • There was no trade-off to map at the fixed budget. The average-against-worst-year front has 1 point: the same split minimizes both.
  • The split barely matters. The best split beats an equal split by 3.5% of TVaR95, and many splits are near-equivalent.
  • The financial case for the spend is weak. The recommendation breaks even against no spending only if the cost of capital on bad years is 79% or more, and insurance cuts worst-year loss far more cheaply in this model.
  • The analysis is slow to rebuild. The single end-to-end run behind these results took about 11.5 hours of wall-clock time, so any change to the inputs means an overnight rebuild (Reproducibility).

What did hold up is the method around the optimizer: a graded register, common random numbers, verification checks, a full grid, exact and greedy benchmarks, and robustness tests strong enough to expose these limits.

Executive summary

Display code
if (is.null(fr)) missing_result("frontier") else
  plot_board_frontier(fr, app, band = if (is.null(rob)) NULL else data.frame(spend = rf$budget, lo = rf$p10, hi = rf$p90),
                      zero_tvar = cal$tvar)
A falling step line from the zero-spend TVaR95 at the left to the lowest worst-year loss at 5 million dollars, inside a wide gray band that narrows with spend. A dashed amber appetite line, three marked budget points and an amber diamond at the knee.
Figure 1: Board frontier: the lowest worst-year loss (TVaR95) the firm can buy at each level of annual control spend. The gray band shows the 10th to 90th percentile of the frontier allocation’s TVaR95 across parameter draws.

How to read the plot. The horizontal axis is annual spend on new controls and the vertical axis is the average loss in the worst 1-in-20 years. The navy line is the best result found at each spend level on base-case inputs. The gray band shows how far the frontier allocation’s result moves when the uncertain inputs are drawn at random. The dashed amber line is the board’s $10M appetite; circles mark three budgets and the diamond marks the knee.

What the plot tells you. The first dollars buy the most. Spending $1.5M takes worst-year loss from $7.51M to $4.71M, while going from $3.0M to $5.0M saves only $0.56M more. The band is wide and sits mostly above the line, because large losses dominate the draws. On base values the line starts below the appetite, but the band’s upper edge stays above it up to $2.75M of spend.

Display code
if (is.null(rg) || is.null(fin)) missing_result("region") else range_table(rg, fin$recommended_alloc, cfg)
Table 1: Recommended allocation of the fixed annual budget and the range across near-optimal allocations, rounded to $0.05M.
Lever Recommended
Near-optimal allocations
Lowest Median Highest
Configuration hardening $0.70M $0.50M $0.60M $0.80M
Privileged access management $0.65M $0.40M $0.60M $0.80M
EDR and managed response $0.15M $0.00M $0.20M $0.40M
Logging, monitoring and SOC $0.65M $0.40M $0.60M $0.80M
Patch velocity $0.45M $0.25M $0.40M $0.60M
Resilience: backups and IR $0.30M $0.15M $0.30M $0.50M
Identity and MFA $0.15M $0.10M $0.20M $0.40M

How to read the table. Each row is one control lever. Recommended is the confirmed recommendation’s annual amount, rounded to the nearest $0.05M. The three range columns cover every evaluated allocation whose TVaR95 is within 1% of the best: the lowest, median and highest amount on that lever. A wide range means the exact amount barely matters. No lever may take more than 40% of the budget.

What the table tells you. The recommendation funds every lever, with the most on configuration hardening (23%) and logging, monitoring and SOC (21%). The near-optimal ranges are wide, so the board can adjust amounts for practical reasons, such as vendor contracts or hiring, at little cost. The ranking is evidence-sensitive: halving weakly evidenced effects moves the top two levers to configuration hardening and patch velocity. Total spend matters more than the exact split.

The recommendation is stable: its TVaR95 was within 5% of the best allocation in 87% of 200 parameter draws (95% interval 82% to 91%), against 47% for an equal split (40% to 54%). Details and stress tests are on the Robustness page.

Display code
if (is.null(rt) || !is.data.frame(rt)) missing_result("frontier") else {
  gt_house(rt) |>
    gt::fmt_currency(c(spend, tvar, ratcor), decimals = 2, pattern = "{x}M") |>
    gt::fmt_currency(ale, decimals = 3, pattern = "{x}M") |>
    gt::fmt_percent(breakeven, decimals = 0) |>
    gt::sub_missing(missing_text = "") |>
    gt::cols_label(option = "Option", spend = "Annual spend", ale = "Expected loss", tvar = "TVaR95",
                   ratcor = sprintf("Risk-adjusted cost at %s", fmt_pct(k)), breakeven = "Break-even charge")
}
Table 2: Risk-adjusted total cost of risk: expected loss plus spend plus a cost-of-capital charge on unexpected loss, with the charge at which each option breaks even against no spending.
Option Annual spend Expected loss TVaR95 Risk-adjusted cost at 10% Break-even charge
No added spend $0.00M $0.380M $7.51M $1.09M
Recommendation $3.00M $0.188M $3.76M $3.55M 79%
Frontier at $1.5M $1.50M $0.237M $4.71M $2.18M 51%
Frontier at $3.0M $3.00M $0.188M $3.76M $3.54M 79%
Frontier at $5.0M $5.00M $0.160M $3.19M $5.46M 117%

How to read the table. Each row is one option. Risk-adjusted cost adds expected annual loss, the spend, and a 10% annual charge on unexpected loss (TVaR95 minus expected loss), a standard way to price capital held against bad years. The break-even charge is the rate at which the option’s risk-adjusted cost equals that of spending nothing; above it, spending pays. The 10% rate is a design assumption.

What the table tells you. At a 10% charge the cheapest option is no added spend. The recommendation needs a charge of 79% to break even, well above typical costs of capital, so on these inputs the spend is hard to justify on expected cost alone. The case for it rests on the board’s aversion to bad years, on uncertainty, or on insurance being unavailable (see Optimization).

Decisions for the board.

  1. How much to spend, and with what confidence. The frontier and the probability of meeting the appetite show what each budget buys. The knee sits at $0.50M.
  2. Whether $10M is the right appetite, and how tail risk should be priced. Both are design choices that drive the answer.
  3. Controls, insurance or both. In this model, risk transfer cuts worst-year loss far more cheaply than controls; real quotes would decide it.
  4. Whether to fund better evidence. Loss sizes and frequencies drive the risk level; several control effects are graded gap.

Where the evidence is weakest

Display code
gr <- gap_rows(reg)
gt_house(data.frame(ID = gr$param_id, Input = gr$parameter, Grade = gr$evidence_grade,
                    Base = mapply(fmt_value, gr$base, gr$unit),
                    Range = paste(mapply(fmt_value, gr$low, gr$unit), "to", mapply(fmt_value, gr$high, gr$unit)))) |>
  gt::cols_width(ID ~ gt::pct(18), Input ~ gt::pct(42))
Table 3: Active model inputs with no direct evidence (gap) or resting on expert judgment.
ID Input Grade Base Range
SEV_MED_RAN Lognormal median loss: ransomware expert $1.00M $300K to $3.00M
SEV_SIGMA_RAN Lognormal sigma (log scale): ransomware expert 1.8 1.2 to 2.5
PAM_FREQ_MAX Maximum frequency reduction: privileged access gap 30% 10% to 50%
PAM_SEV_MAX Maximum severity reduction: privileged access gap 20% 5% to 35%
LOG_FREQ_MAX Maximum frequency reduction: logging and SOC gap 10% 0% to 25%
LOG_SEV_MAX Maximum severity reduction: logging and SOC gap 30% 10% to 45%
RES_SEV_MAX_OTHER Maximum severity reduction: resilience, other scenarios expert 10% 0% to 20%
OVERLAP_EDR_LOG Overlap weight of EDR and logging severity effects expert 30% 10% to 50%
OVERLAP_HARD_PATCH Overlap weight of hardening and patching frequency effects expert 20% 5% to 40%

How to read the table. Each row is an input that enters the main model but has no direct evidence (gap) or rests on expert judgment (expert). Base is the value used and Range is the span tested in the robustness draws. Inputs graded gap are placeholders that should be replaced by structured expert elicitation or the firm’s own data before any real budget decision.

What the table tells you. 9 inputs fall in these two grades, 4 of them gaps. They include the effects of privileged access management and logging, the median ransomware loss and the common-shock probability. Several levers therefore compete for budget on effect sizes nobody has measured. The robustness tests carry this uncertainty through, but they cannot remove it. Replacing these rows with measured values is the most useful next step.