Back to the blog
Your own AITechnical detail

Why your security dashboard cannot tell you whether to turn blocking on

Corpilus TeamNovember 18, 20268 min read

Ten blocks a week. Is that good?

Every security product shows you what it refused. Ten blocked requests this week, forty last month, a chart that goes up and down. Now answer a simple question: should you turn enforcement on for the rest of your traffic?

You cannot, and the reason is arithmetic. Ten refusals out of ten thousand requests is a protection system doing quiet, useful work. Ten refusals out of twelve is a system that is about to cost you customers. The chart looks identical in both cases, because the chart only counts the numerator.

Why the denominator goes missing

It is not an oversight. Storing a row for every refusal is cheap — refusals are rare. Storing a row for every decision means a row for every request, and most engineering instincts recoil from that: it is the hottest path in the system, the volume is orders of magnitude larger, and the rows are, individually, boring. So the allow case gets a counter at best, and usually nothing at all.

The consequence shows up years later, as an organisational habit rather than a technical fault. Teams leave protection in monitoring mode indefinitely, because switching it on means accepting an unknown quantity of false refusals. Nobody signs off on an unknown quantity. The feature stays off, the risk it was bought for stays unmitigated, and everyone involved behaves rationally.

The second missing number

A denominator alone still does not settle it. Suppose you learn that 150,000 decisions were made and 600 were refused. You now know the refusal rate under the rules as configured. What you wanted to know is the refusal rate under the rules as you would configure them — because the question was whether to turn enforcement on, and today it is off.

Those are different numbers, and only one of them is observable. The other has to be recorded deliberately: at the moment of each decision, the system has to note not only what it did, but what it would have done under enforcement. Monitoring mode already computes that second value in order to decide it will not act on it. The only question is whether anybody writes it down.

What becomes decidable

With both numbers, in the same record, over a month of real traffic, the conversation changes shape. Instead of “should we risk turning this on”, it becomes “enforcement would have refused 1.2% of sign-ins, concentrated in these four rules, and two of those rules account for almost all of it”. Now you can turn on the two that are clean, leave the two that are noisy, and revisit them with the rule authors.

That is the actual mechanism by which protection improves. Not a cleverer detector — a decision that an operator is finally in a position to make.

Two cautions worth more than the numbers

First, an impact estimate built this way is a lower bound. Where a record cannot distinguish “enforcement would have done the same thing” from “we do not know”, the honest reading is the smaller one. A tool that rounds that ambiguity in the flattering direction is worse than no tool.

Second, be suspicious of a rate whose population is not written down next to it. Real systems exclude things: calls that asked for nothing to be stored, calls where the check never ran, decisions with no subject to attribute them to. Each exclusion is defensible and each one changes the denominator. A percentage with no stated population is a number that looks more precise than it is, and the decision you make from it inherits the error without inheriting the doubt.