Algorithm Search⌘K

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 cc runs over variables with labels in a security lattice; take the two-point lattice L≤HL \le H. Two stores are low-equivalent, s1=Ls2s_1 =_L s_2, if they agree on every variable with label LL. [ ⁣[c] ⁣](s)[\![c]\!](s) is the final store of the run from ss, or ⊥\bot if the run does not stop.

TINI. cc is TINI if for all s1=Ls2s_1 =_L s_2 with [ ⁣[c] ⁣](s1)≠⊥[\![c]\!](s_1) \ne \bot and [ ⁣[c] ⁣](s2)≠⊥[\![c]\!](s_2) \ne \bot, we have [ ⁣[c] ⁣](s1)=L[ ⁣[c] ⁣](s2)[\![c]\!](s_1) =_L [\![c]\!](s_2). This is the base definition of the page noninterference.

TSNI. cc is termination-sensitive noninterferent (TSNI) if it is TINI and, for all s1=Ls2s_1 =_L s_2, [ ⁣[c] ⁣](s1)=⊥[\![c]\!](s_1) = \bot exactly when [ ⁣[c] ⁣](s2)=⊥[\![c]\!](s_2) = \bot. 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 o⃗\vec{o} 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 hh high and ll low.

program TINI TSNI why
l := h no no ll copies hh
if h then l := 1 else l := 0 no no an implicit flow
if h then l := 0 else l := 0 yes yes l=0l = 0 after each run
while h = 0 do skip; l := 1 yes no each run that stops ends with l=1l = 1, but the run stops only when h≠0h \ne 0
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 ll
  • The whole secret through termination. Askarov et al. give this program, for a secret hh in {0,…,2N−1}\{0, \dots, 2^N - 1\}: "for i=0i = 0 to 2N−12^N - 1: output ii; if i=hi = h 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 hh. But to reveal h=2N−1h = 2^N - 1 the observer must wait for 2N2^N outputs.
  • Not TINI with output. "output h mod 2h \bmod 2; h:=hh := h div 2", repeated NN times, reveals the NN low binary digits of hh in NN 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 hh in {0,…,2N−1}\{0, \dots, 2^N - 1\}; an observer who chooses the public input, sees the outputs of one run up to tNt_N outputs, and sees divergence.

  1. (Theorem 2.) If the observer learns hh exactly for every hh (the program leaks reliably), then tN≥2N−1t_N \ge 2^N - 1. So a TINI program does not leak reliably within any running time polynomial in NN.
  2. (Theorem 3.) If hh is uniform, the probability GNG_N that the observer guesses hh after the run is at most (tN+1)/2N(t_N + 1)/2^N. So the advantage GN−1/2NG_N - 1/2^N is at most tN/2Nt_N / 2^N, which is negligible when tNt_N is polynomial in NN.

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 tN+1t_N + 1 leaves, and each leaf gives one guess. The proof uses determinism, and the theorem says nothing about an observer who also measures time.

  • 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 cc holds exactly when the program c;c′c; c', with c′c' a renamed copy of cc, 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 tt outputs, the observer can tell apart at most t+1t + 1 classes of secrets.

References

  1. 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)
  2. 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
  3. 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
  4. 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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/7HS2XM/text.yaml