Security Analysis Overview

Based on Khronos design, Khronos checks that the following two conditions hold for the remaining sampled offsets:

Time-samples that are at most w away from UTC are considered “good”, whereas other samples are considered “malicious”. Two scenarios are considered:

  1. Less than 2/3 of the queried servers are under the attacker’s control.
  2. The attacker controls more than 2/3 of the queried servers.

The first scenario, where there are more than 1/3 good samples, consists of two cases:



In the first of these two cases (at least one good sample in the set of samples that was not eliminated by Khronos), the other remaining samples, including those provided by the attacker, must be close to a good sample (otherwise, the first condition of Khronos is violated, and a new set of servers is chosen). This implies that the average of the remaining samples must be close to UTC.

Scenario 1 Case 1 - at least one of the remaining samples is good.


In the second sub-case (where there are no good samples in the set of remaining samples), since more than a third of the initial samples were good, both the (discarded) third lowest-value samples and the (discarded) third highest-value samples must each contain a good sample. Hence, all the remaining samples are bounded from both above and below by good samples, and so is their average value, implying that this value is close to UTC.

Scenario 1 Case 2 - non of the remaining samples is good.


In the second scenario, where the attacker controls more than 2/3 of the queried servers, the worst possibility for the client is that all remaining samples are malicious (i.e., more than w away from UTC). However, as proved in Preventing (Network) Time Travel with Khronos, the probability of this scenario is extremely low even if the attacker controls a large fraction (e.g., 1/4) of the n servers in the local Khronos pool. Therefore, the probability that the attacker repeatedly reaches this scenario decreases exponentially, rendering the probability of a significant time shift negligible. We can express the improvement ratio of Khronos over NTPv4 by the ratios of their single shift probabilities.

Case 2 - all surviving samples are malicious.