Secret Exposure Window: Detection-to-Rotation Race (2D)

A live commit stream flows through a CI/CD pipeline. Each commit is scored by Shannon entropy; commits above the flag threshold are treated as potential leaked secrets. From the moment a real secret lands in the repository, an attacker-discovery clock and an automated rotation clock race each other — both modeled as independent exponential (Poisson) processes — and whichever fires first decides whether the credential is safely rotated or actually breached. Switch to Monte Carlo mode to run thousands of independent trials at once and see the empirical exploitation-probability distribution, compared against the closed-form race formula, as you tighten detection and rotation SLAs.