Theoremadvanced
Min-capacity bound on leakage
Also called min-capacity theorem.
The min-entropy leakage of a deterministic program is at most the log of its number of distinct outputs, with equality for a uniform prior.
The min-capacity theorem gives the worst-case min-entropy leakage of a channel in closed form. Over all priors, the leakage is at most the base-2 log of the sum of the column maxima of the channel matrix, and the uniform prior reaches this value. For a deterministic program, each output that can occur has column maximum 1, so the bound is the log of the number of distinct outputs. A program with possible outputs therefore leaks at most bits to a one-try attacker, whatever the prior. Smith (2009) proved the deterministic case under a uniform prior, and Braun, Chatzikokolakis and Palamidessi (2009) gave the general form.
Statement
Theorem. Let be a channel matrix from a finite set of secrets to a finite set of outputs, with . For every prior on ,
with equality when is uniform on . Hence the min-capacity is
If is the channel of a deterministic program , then , the log of the number of distinct outputs, and the uniform prior leaks exactly this amount.
In plain words
Before seeing anything, the attacker's best guess wins with probability , the largest prior probability. After seeing an output, the attacker's best guess for that output can do no better than if every secret had that largest probability. Summing over the outputs, the output multiplies the chance of a correct guess by at most the sum of the column maxima of the matrix. Under a uniform prior no secret starts ahead, so nothing is lost in that step and the bound is exact. For a program without randomness, each possible output contributes exactly 1 to the sum. So the program cannot raise the attacker's chance by more than a factor equal to its number of outputs. A password check has two outputs and leaks at most 1 bit.
Proof
Let . For every and , . Taking the maximum over and summing over ,
Divide by and take , which is increasing; this gives the inequality.
For the uniform prior, for every , so and . The ratio is , so equality holds. Since the bound holds for every prior and is reached at one, it is the supremum, which gives the formula for .
For a deterministic program, column of contains a 1 in row if and zeros elsewhere. So if and 0 otherwise, and . ∎
Consequences
Each item is a theorem unless marked otherwise.
- A bound on the attacker's success. For every prior, . The adversary is the one of min-entropy leakage: it knows and , sees one output and makes one guess. A deterministic program with outputs raises the chance of a correct guess by a factor of at most .
- Capacity without optimization. Computing takes one pass over the matrix, operations. The Shannon channel capacity is a maximum over priors with no closed form in general.
- Counting outputs bounds leakage. An analysis that proves that a program has at most outputs, or that an observable such as a running time takes at most values, proves a leakage bound of bits for that observable and that adversary. The bound says nothing about what an attacker gains from observables outside the model.
- Repeated observations. Let the attacker see the outputs of two channels and run on the same secret with independent randomness. The joint channel has entries , and . Summing gives . So independent runs of a channel leak at most bits.
- Every gain function. The Miracle theorem of Alvim et al. (2012) uses this bound to show that the g-leakage of , for every gain function and every prior, is at most . In particular, an attacker with tries does not see a larger capacity than a one-try attacker.
- Shannon capacity. Theorem 5.3 of Alvim et al. (2012) shows that the Shannon capacity of every channel is at most . So the min-capacity also bounds the mutual information of Shannon entropy for every prior.
Tightness
- The bound is exact as a supremum. The uniform prior reaches it for every channel, so no smaller function of bounds the leakage for all priors.
- It can be far from the leakage at a given prior. For the binary symmetric channel with crossover probability , bits, reached at the uniform prior. Under the prior , the best guess is 0 for both outputs and the leakage is 0. The bound is a worst case over priors, not an estimate for a known prior.
- Equality at other priors. For a deterministic program, the leakage under is of . It equals exactly when every set holds a secret of the largest prior probability. So the uniform prior is sufficient for equality, not necessary.
- Shannon capacity can be smaller. For the same binary symmetric channel, the Shannon capacity is bits, below the min-capacity of 0.848 bits. For a deterministic program the two capacities agree, both being (Theorem 2 of Smith 2009), but the Shannon capacity is reached at a prior that makes all outputs equally likely, which is typically not uniform on the secrets.
- The multiplicative form matters. The uniform prior does not maximize the additive leakage . For the channel with rows , and , the uniform prior gives an additive leakage of and the prior gives .
- Repeated runs. The bound for runs is not reached in general, because the min-entropy of the secret is finite: the leakage can never exceed , since .
History
Smith (2009) argued that Shannon leakage misjudges the threat of a one-try attacker and proposed min-entropy leakage. His Theorem 1 states that a deterministic program under a uniform prior leaks bits, where is its set of possible outputs, and his Theorem 2 notes that this equals the Shannon capacity of the program. In the same year, Braun, Chatzikokolakis and Palamidessi studied one-try attacks on probabilistic channels and showed that the multiplicative leakage is maximized by the uniform prior, which gives the closed form . Alvim, Chatzikokolakis, Palamidessi and Smith (2012) used the theorem as the base of the theory of g-leakage, with the Miracle theorem and the comparison with Shannon capacity. The book of Alvim et al. (2020) treats capacity for gain functions and priors in general.
References
- Geoffrey Smith, On the foundations of quantitative information flow, Proceedings of FoSSaCS 2009, LNCS 5504, pp. 288 to 302; Theorem 1 on p. 298 (a deterministic program under a uniform prior leaks log of its number of outputs) and Theorem 2 on p. 299 (this equals the Shannon capacity of the program)
- Christelle Braun, Konstantinos Chatzikokolakis and Catuscia Palamidessi, Quantitative notions of leakage for one-try attacks, Proceedings of MFPS 2009, Electronic Notes in Theoretical Computer Science 249, pp. 75 to 91, the min-capacity of a channel as the log of the sum of its column maxima, reached at the uniform prior
- Mario S. Alvim, Konstantinos Chatzikokolakis, Catuscia Palamidessi and Geoffrey Smith, Measuring information leakage using generalized gain functions, Proceedings of CSF 2012, pp. 265 to 279; Theorem 2.1 (the closed form of min-capacity), Theorem 5.1 (min-capacity bounds every g-capacity) and Theorem 5.3 (min-capacity is at least the Shannon capacity)
- Mario S. Alvim, Konstantinos Chatzikokolakis, Annabelle McIver, Carroll Morgan, Catuscia Palamidessi and Geoffrey Smith, The Science of Quantitative Information Flow, Springer, 2020, Chapter 7 (capacity)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag DTRZS8 Edit this page History Report an error Markdown