Defence in depth P(pass all) = prod_i (1 - e_i) (independent layers)
Breach rate lambda_b = lambda_probe * P(pass all) per year; N_year ~ Poisson(lambda_b)
Detection clock T ~ LogNormal(ln t_med, 1.0); P(T <= 72 h) = Phi( (ln 72 - ln t_med) / sigma )
Loss per breach R = N_rec * m * exp(sigma_R Z) (cap N_rec), m = 2 %, sigma_R = 1.2
direct = R c (1 - 0.2 e_4); interruption = 48 h (1 - e_3) * turnover/8760 * 0.25
late notice (T > 72 h): fine = 0.2 * max(20 M, 4 % turnover) * min(1, R/(5 % N_rec))
Gordon-Loeb S(z) = v / (a z + 1)^b, z* = [ (v a b L)^(1/(b+1)) - 1 ] / a <= v L / e
The 72 hours are the GDPR Art. 33 breach-notification window and the fine ceiling (the larger of EUR 20 M or 4 % of turnover) is the Art. 83(5) maximum; NIS2, DORA and PCI DSS drive the other layers, but the model only uses them as names for what a layer does. The year is simulated 4000 times in your browser; the loss-exceedance curve (bottom left) is the standard way risk is shown to a board, and the Gordon-Loeb curve (bottom right) shows why it is irrational to spend more than about 37 % of the expected loss on protection.
Honest simplifications: this is a defender-side risk model, no attack technique is represented, the red probes are abstract. Layer effectiveness values, the exposure share, unit cost, interruption cost and enforcement severity are assumed illustrative numbers, not statistics; layers are treated as independent (real controls are correlated, which makes the true breach rate higher); the Gordon-Loeb parameters a = 0.0002 / EUR and b = 1 are assumed. Not legal or compliance advice.
Not run yet.