- applications
- methodology
- scoring
Your Vulnerability Crossed a Service Boundary. Did Your Scanner?
The input arrives in one service and does its damage in another. Scan each one alone and both look clean. Here is what a fair test of that blind spot has to measure.
4 min read
A public route in your front service accepts a URL and passes it along to an internal service. The internal service fetches whatever it is given, because, as far as its own code can tell, the value came from a trusted neighbor. Scan the front service and you see a value being forwarded. Scan the internal service and you see a fetch of a value from another service. Two clean reports. One server-side request forgery.
This is not an exotic case. It is what most modern systems look like: several services, often in several languages, each doing something reasonable on its own. The weakness lives in the path between them, and the path is exactly what a one-repository, one-file view never sees.
Why single-file suites stop at the border
Single-file cases are the right tool for a lot of questions. Does the scanner know this sink? Does it see that this sanitizer fits this sink? One file, one label, one clean answer. BenchProctor’s standalone corpus is built exactly that way, and it should be.
But a single file cannot tell you whether a scanner follows input out of one program and into another. There is no other program. Whatever a tool scores on single files says nothing, in either direction, about the boundary.
What a fair cross-service test has to contain
We build BenchProctor’s application cases to a standard, and the standard is the useful part of this post, because you can hold any benchmark to it, including ours.
Two real services. Not a function that pretends to be a network call: two programs, each with its own entry points, its own dependencies and its own idioms, that actually call each other. Often in two languages, because that is where real boundaries are.
One flow that matters, surrounded by code that does not. A real repository is mostly safe code. So each application carries one primary flow from an entry point in one service to a sink in the other, and around it more labeled flows, vulnerable and safe, plus plain modules that do nothing dangerous at all. A tool has to find the flow that matters without flagging everything near it.
Controls on either side. The safe version of a chain often looks identical to the vulnerable one at the sink. The difference is a check several files upstream, sometimes in the other service and the other language. We wrote about that case in August: when the fix lives in another language. A tool that judges the sink alone gets those cases wrong in both directions.
A scanner that never crossed the boundary should not be able to look as if it did.
Three questions, three numbers
A cross-service case asks three different things, so it gets three different scores, reported side by side.
- Flow judgment. For each labeled flow, did the tool decide correctly whether it is exploitable? Scored with Youden’s J, so flagging every flow earns nothing.
- Weakness naming. For the flows it judged correctly, did it name the right CWE? Counted only on correct judgments, so a tool cannot farm points by naming every CWE everywhere.
- Path reconstruction. Did the tool connect the services into one ordered path, entry to sink? Two findings in two unrelated files are not a path. A single finding whose steps walk from one service into the other is.
We explained the arithmetic in detail in how BenchProctor scores a cross-language vulnerability chain. The rule that matters most is the simplest: the three numbers are never averaged. A tool that names CWEs well but never follows input across a boundary would look respectable on a blended score. Kept apart, the gap is visible at a glance, and the gap is the thing you are buying a scanner to close.
How to read a cross-service result
When a vendor shows you a cross-service result, three questions cut through it.
- Does any single finding name both ends? The entry point in one service and the sink in the other, in the same finding, with the steps between them. If every finding stays inside one service, the tool did not cross.
- Were safe chains in the set? If every chain in a demo is vulnerable, a tool that flags anything with a network call in it will look perfect. Ask how it did on the chains where a control holds.
- Is there one number or three? A single “multi-service score” can hide any of the three failures above.
You can run the first test on your own code this week. Pick two of your services, choose one input you know travels from one to the other, and check whether your scanner’s report ever names both ends of that path in one finding.
The blind spot is not going away; systems keep splitting into services. The measurement has to follow them across the boundary. Read more about how BenchProctor measures on benchproctor.com.