Measure each check
The calibrate command compares a clean capture and an attack capture with the baseline. It gives the failure rate of each check, without and with an interceptor.
Failure rate of each check
p₀: no interceptor. p₁: interceptor on the path.
The three checks
One site can fail one, two or three checks.
| Check | The sensor compares | A normal cause of change |
|---|---|---|
| A | Server fingerprint (JA4S) | New server software |
| B | Certificate key | Certificate renewal |
| D | Network path (TTL) | New route |
TLS 1.3 hides the certificate, so check B is not available on most sites.
Give each check a weight
The paper adds the same step for any change. We give each check its own weight from its two rates.
Weight of each check
Right: the check failed. Left: the check held.
The formula
Log-likelihood ratio of each check
failed: weight = ln(p₁ / p₀) held: weight = ln((1 − p₁) / (1 − p₀)) site step = sum of the weights of its checks
Example: one renewed certificate
TLS 1.2 site. Check B failed, checks A and D held.
Set a cap for each site
A cap limits the step of one site. A smaller cap gives fewer false alerts, but the sensor needs more sites to find an interceptor.
False alerts
Tests without an interceptor that end in an alert
Sites to an alert
Mean number of sites before the alert
All caps
| Fewest sites for a decision | Cap per site | False alerts | Detection | Sites to an alert |
|---|
The result
The tuned method gives far fewer false alerts. It finds an interceptor a little less often and needs more sites.