Definitionadvanced
Termination-insensitive noninterference
Also called TINI.
Noninterference that only compares runs that both terminate, so a program may leak secrets through whether it halts.
Termination-insensitive noninterference (TINI) is the form of noninterference that compares only runs that both stop. If two runs start with the same public inputs and both stop, they must end with the same public outputs. A run that does not stop is not compared with anything, so the secret may decide whether the program stops. This is the guarantee of the security type system of Volpano, Irvine and Smith, of the no-sensitive-upgrade monitor and of faceted execution, and of the languages Jif and FlowCaml. Askarov, Hunt, Sabelfeld and Sands (2008) showed that the leak it allows can be the whole secret, but only in time exponential in the size of the secret.
Definition
Setting. A deterministic program runs over variables with labels in a security lattice; take the two-point lattice . Two stores are low-equivalent, , if they agree on every variable with label . is the final store of the run from , or if the run does not stop.
TINI. is TINI if for all with and , we have . This is the base definition of the page noninterference.
TSNI. is termination-sensitive noninterferent (TSNI) if it is TINI and, for all , exactly when . Each TSNI program is TINI. Neither definition says anything about running time.
Programs with output. Askarov et al. call the definition above batch-job TINI (their Definition 1). For a program that writes public outputs while it runs, the observer sees a sequence of outputs and may see that the program diverges. Their Definition 5 says, in terms of the knowledge of the observer, that an observer who has seen the outputs and then one more output learns nothing from the value of that output, only from the fact that there is one. For deterministic programs this is equivalent (their Proposition 1) to: for each public input, the output sequences of the runs on all secrets form a chain under the prefix order. Two runs may differ only in where one of them stops producing output. Batch-job TINI is the case of programs with at most one output, at the end.
Examples and non-examples
Take high and low.
| program | TINI | TSNI | why |
|---|---|---|---|
l := h |
no | no | copies |
if h then l := 1 else l := 0 |
no | no | an implicit flow |
if h then l := 0 else l := 0 |
yes | yes | after each run |
while h = 0 do skip; l := 1 |
yes | no | each run that stops ends with , but the run stops only when |
while h > 0 do skip |
yes | no | the same channel, with no public output at all |
if l then (while true do skip) |
yes | yes | termination depends only on |
- The whole secret through termination. Askarov et al. give this program, for a secret in : "for to : output ; if then loop forever". It is TINI and is accepted by a Denning-style type system with output (their Theorem 1). The last output before the program hangs is . But to reveal the observer must wait for outputs.
- Not TINI with output. "output ; div 2", repeated times, reveals the low binary digits of in outputs. Two secrets that differ in the last digit give two output sequences that are not prefixes of each other.
Theorem (Askarov, Hunt, Sabelfeld and Sands 2008). Hypotheses: a deterministic program with public output that is TINI in the sense of Definition 5; a secret in ; an observer who chooses the public input, sees the outputs of one run up to outputs, and sees divergence.
- (Theorem 2.) If the observer learns exactly for every (the program leaks reliably), then . So a TINI program does not leak reliably within any running time polynomial in .
- (Theorem 3.) If is uniform, the probability that the observer guesses after the run is at most . So the advantage is at most , which is negligible when is polynomial in .
The proof: for a TINI program, at each output step all runs that go on make the same output, so the tree of observations is a comb with at most one non-divergent branch at each node. It has at most leaves, and each leaf gives one guess. The proof uses determinism, and the theorem says nothing about an observer who also measures time.
Related definitions
- Noninterference. TINI is the termination-insensitive form fixed there. The page shows that it is a 2-safety property and that the termination-sensitive form is not.
- Hyperproperty. Both forms are hyperproperties, sets of sets of traces. TINI is 2-safety: each violation is shown by two finite runs. A TSNI violation can need a run that does not stop.
- Self-composition. TINI of holds exactly when the program , with a renamed copy of , satisfies the safety property "if the low parts agree at the start, they agree at the end", for runs that stop. Constant-time verification uses the same construction for a different observation, the sequence of branches and addresses.
- Enforcement. The security type system, no-sensitive-upgrade and faceted execution give TINI. Secure multi-execution gives TSNI. A type system that allows only public loop conditions outside secret branches also gives TSNI.
- Covert channels. Termination is one covert channel and time is another. TINI closes neither, and TSNI closes only the first.
- Quantitative information flow measures how much a program leaks. The theorem above bounds the leak of a TINI program per unit of running time: after outputs, the observer can tell apart at most classes of secrets.
References
- Aslan Askarov, Sebastian Hunt, Andrei Sabelfeld and David Sands, Termination-insensitive noninterference leaks more than just a bit, ESORICS 2008, LNCS 5283, pp. 333 to 348; Section 2 (Definition 1, batch-job TINI; Definitions 4 and 5, termination-sensitive and termination-insensitive noninterference for programs with output; Proposition 1), Section 3 (Theorem 1), Section 4 (Theorem 2), Section 5 (Theorem 3)
- Dennis Volpano, Cynthia Irvine and Geoffrey Smith, A sound type system for secure flow analysis, Journal of Computer Security 4(2-3), 1996, pp. 167 to 187, the soundness theorem, which is termination-insensitive
- Andrei Sabelfeld and Andrew C. Myers, Language-based information-flow security, IEEE Journal on Selected Areas in Communications 21(1), 2003, pp. 5 to 19, the termination channel and the termination-sensitive and termination-insensitive definitions
- Tachio Terauchi and Alex Aiken, Secure information flow as a safety problem, Proceedings of SAS 2005, LNCS 3672, pp. 352 to 367, 2-safety and the reduction of termination-insensitive noninterference to a safety property by self-composition
Where this leads
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 7HS2XM Edit this page History Report an error Markdown