Your Detection Didn’t Learn Kerberoasting, It Memorized Your Test Script

Somewhere right now a detection engineer is running the same PowerShell script for the fourteenth time, watching the rule fire for the fourteenth time, and writing “validated” in the ticket. That rule doesn’t detect Kerberos SPN fan-out. It detects one PowerShell script. You spent three sprints building a very expensive regex for your own homework.

This is calibration-script worship, and it’s the quietest way to ship a detection that looks great in the lab and does nothing once an actual adversary touches your estate. We know because we caught ourselves doing it.

The Confession

Our VolumetricDE research runs an Identity Fan-Out analytic: a principal asks for service tickets against an unusually wide set of distinct SPNs inside a time window. Kerberoasting prep, basically, described by its shape and not by a tool signature. The KQL skeleton groups by Principal, SourceHost, SourceIP and flags anything at or above MinDistinctTargets = 20 inside a 10-minute Window, with a 1-hour Lookback.

We validated it with two actors. One is PentAGI, running inside a Ludus range as a semi-autonomous agent, so its behavior actually varies from run to run. The other is Invoke-VoldeSpnFanout.ps1, a calibration script that produces the same fan-out every time: fixed target count, fixed timing, fixed requesting process.

Guess which one gets run when it’s 6pm and you just want to see green.

The analytic doc had exactly one line about this risk: “The analytic should not overfit to the calibration script.” One line. Nothing enforced it, no reviewer checked it, and nothing would have failed if it was ignored. That’s not a control, it’s a sticky note, and the rest of the industry is running on the same sticky note.

What Worship Looks Like (You’re Probably Doing At Least Two)

Nobody decides to overfit. It creeps in, one reasonable-sounding tune at a time:

  • The threshold that happens to sit just under the script’s target count. You didn’t derive MinDistinctTargets from what an attacker plausibly needs. You nudged it until the script tripped it. That’s a coincidence, not a design decision.
  • The window sized to the script’s runtime. Your script finishes in nine minutes, so your window is ten. A human or agent who takes forty minutes walks right past it.
  • The command-line fragment filter. Somebody “reduced noise” by matching on a process name or argument unique to the test harness instead of the telemetry the behavior produces whatever tool issues the requests: Event ID 4769, and lots of it.
  • “It fires on the script” as the whole evidence package. One structurally identical positive, run repeatedly, gets reported as repeatability. Running the same thing five times is still one test.

Atomic tests, purple-team scripts, emulation plans: same disease. They’re great for calibration and useless as your only proof. Your adversary didn’t read your test harness and won’t stick to its timing.

The Five Blind Spots Your Script Will Never Show You

A deterministic script only exercises the happy path. Here’s what it skips, made specific to Identity Fan-Out:

  • Slow-and-low. Three new SPNs every 15 minutes for six hours never crosses 20 distinct targets in any 10-minute bin. Breadth is identical and the alert count is zero.
  • Distributed source. Three coordinated principals on three hosts, 10 SPNs each. No single Principal, SourceHost, SourceIP group trips the threshold, even inside one window. The analytic only ever looks at one actor at a time.
  • NAT ambiguity. SourceIP is a grouping key. Behind NAT, a proxy, or a jump host it either fuses a hundred benign users into one fake fan-out cluster or splits one real attacker across rotating egress IPs. Did anyone check which IPs are shared egress before trusting that cardinality?
  • Shared accounts. “Five people used the deploy account today” and “one attacker used the deploy account to enumerate five times more than normal” look identical if you only group by identity. If the triage output presents a shared service account as one suspicious person, your L1 will spend an hour chasing a Jenkins job.
  • Poisoned baselines. A service principal that’s already compromised and slowly widens its scope over your 30-day training window raises its own ceiling and teaches your SelfBaselineDeviation that the attack is normal. Mean/stddev on a window that includes the incident gives you a threshold that protects the attacker.

Your calibration script exercises none of these. It will report success every time, regardless.

Turning a Sticky Note Into a Gate

We converted that one-line warning into something that can actually fail. The rule is now explicit: before an analytic that uses a fixed calibration script can go to Peer Review, it has to fire against at least one structurally different positive case, meaning different in at least two of tool/implementation, timing shape, target count, or requesting process. Rerunning the same script with a different -Count parameter is the same test wearing a hat, and it doesn’t count.

For Identity Fan-Out the different actor already exists: PentAGI in Ludus. The gap was never capability. The gap was that nothing required the organic variant to pass before the script variant was treated as enough. Calibration-script independence is now a required row in the VolumetricDE validation schema, next to evidence class.

Where HEFAISTOS Comes In: Review That Can Say No

None of this works if review is a vibe check. In HEFAISTOS, Peer Review is a thread-backed object rather than a status flip. The author submits, the Workbench moves to PEER REVIEW, comments land on the review request, and the reviewer has to finalize with formal feedback. Approve moves it to APPROVED, and an admin then has to approve deployment to get to DEPLOYED. Reject sends it back to IN RESEARCH. That governance is the backbone we’re designing the VolumetricDE Workbench type on top of. We’re deliberately not inventing a parallel review process just because time-series math gets us excited.

What we added for fan-out and cardinality analytics is a concrete yes/no checklist the reviewer works through before clicking Approve:

  • Slow-and-low variant run and recorded?
  • Distributed-source tested, or explicitly documented as an accepted gap?
  • NAT/proxy egress inventory checked before trusting SourceIP cardinality?
  • Flagged principals checked against the shared/service-account inventory, with triage output that says so?
  • Baseline training window stated, incident period excluded, drift check present?
  • Calibration-script independence shown?
  • Evidence class (A/B/C) stated honestly?

And the rejection has to name the gap. “Needs more validation” is not feedback, it’s a shrug with a timestamp. A real rejection reads like: “Evidence Class C on slow-and-low: only the calibration script’s burst variant was run. Add a long-window variant before resubmitting.” The author knows exactly what to go and do, the audit trail shows exactly why it bounced, and the next reviewer isn’t relying on folklore.

The Part Where We Admit It’s Not Done

We said we’d be honest, so: the Identity Fan-Out analytic hasn’t gone through Peer Review against this checklist yet. Right now items one to six are unverified, not failed, and that difference matters. The next step is running the checklist against our own analytic before its first submission, to find out whether we’re missing validation runs or just never wrote down evidence we already have. Distributed-source aggregation is still a documented gap rather than shipped KQL. And the checklist is shaped for fan-out. Sequence compression and periodicity analytics will each need their own pass, not a copy-paste and a prayer.

That’s still more honest than a “validated” label backed by fourteen runs of one script.

Stop Grading Your Own Homework

Reviewer trust doesn’t come from hiring more skeptical reviewers. It comes from every submission carrying evidence that can be checked against the specific ways the analytic can fail, so an approval means the same thing every time instead of “looked fine to me.” Your calibration script is a ruler. Measuring the ruler with itself doesn’t validate anything.

Run something that doesn’t already know the answer. Happy hunting.


Featured image generated using Artificial Intelligence (EU AI Act transparency notice).