360 likes | 496 Views
Belief in Information Flow. Michael Clarkson, Andrew Myers, Fred B. Schneider Cornell University 18 th IEEE Computer Security Foundations Workshop June 20, 2005. Password Checker. Some programs require leakage of information. PWC: if p = g then a := 1 else a := 0.
E N D
Belief in Information Flow Michael Clarkson, Andrew Myers, Fred B. Schneider Cornell University 18th IEEE Computer Security Foundations Workshop June 20, 2005
Password Checker Some programs require leakage of information PWC: if p = g then a := 1 else a := 0 p: stored password g: guessed passworda: authentication flag Clarkson et al.: Belief in Information Flow
Password Checker PWC: if p = g then a := 1 else a := 0 a depends on p:Noninterference is too strong But intuitively secure because PWCleaks little information about p… Clarkson et al.: Belief in Information Flow
Quantitative Information Flow • Quantitative security policies: • Expected rate of flow is at most k bits per second • At most k bits leak in any execution • Enforcing these requires a model for quantitative information flow (QIF) • This work: A model for QIF Clarkson et al.: Belief in Information Flow
Traditional Model for QIF probability distributions Hin Hout S Lin Lout • Flow = Uncertainty(Hin) – Uncertainty(Hin| Lout) • Uncertainty measured with some variant of entropy[Denning 82; McIver and Morgan 03; Clark, Hunt, and Malacaria 05] Information flows when uncertainty is decreased Clarkson et al.: Belief in Information Flow
Adding Beliefs to Model • Model attacker’s uncertainty about H inputs as a probability distribution • We call this distribution a belief Hin Hout S Lin Lout Clarkson et al.: Belief in Information Flow
Analyzing PWC Attacker believes: p = A 0.98 B 0.01 C 0.01 After observing a = 0, attacker believes: p = A 0 B 0.5 C 0.5 PWC: if p = g then a := 1 else a := 0 Attacker guessesA: g = A (Password is really C) Clarkson et al.: Belief in Information Flow
Analyzing PWC p = A 0.98 B 0.01 C 0.01 p = A 0 B 0.5 C 0.5 a little uncertainty more uncertainty Information flows when uncertainty is decreased Prebelief Postbelief Uncertainty = closeness to uniform distribution Traditional metric: Clarkson et al.: Belief in Information Flow
Why Uncertainty Fails Uncertainty-based approach addresses objective probabilities on system but not subjective probabilities of attacker Clarkson et al.: Belief in Information Flow
Metric for Belief d2 d1 p = A 0 B 0 C 1 reality p = A 0 B 0.5 C 0.5 postbelief p = A 0.98 B 0.01 C 0.01 prebelief d1 > d2: postbelief closer to reality because of observation of program Clarkson et al.: Belief in Information Flow
Accuracy Certainty p = A 0.98 B 0.01 C 0.01 p = A 0 B 0.5 C 0.5 prebelief postbelief Accuracy Accuracy: Distance from a belief to reality Accuracy is the correct metric for QIF Clarkson et al.: Belief in Information Flow
Belief in Information Flow • Experiment protocol Describes how attackers revise beliefs from observation of program execution • Accuracy metric How change in accuracy of belief can be used to measure the amount of information flow • Extensions Repeated experiments, other metrics, and misinformation Clarkson et al.: Belief in Information Flow
Experiments p = A 0.98 B 0.01 C 0.01 p = A 0 B 0.5 C 0.5 Experiment: How an attacker revises his belief Prebelief Postbelief Clarkson et al.: Belief in Information Flow
Experiment Protocol Hin Hout S Lin Lout preB postB Clarkson et al.: Belief in Information Flow
Experiment Protocol Hin Hout • Attacker chooses prebelief S Lin Lout preB postB preB Clarkson et al.: Belief in Information Flow
Experiment Protocol Hin Hout • Attacker chooses prebelief • System and attacker choose inputs Hin, Lin S Lin Lout preB postB preB Clarkson et al.: Belief in Information Flow
Experiment Protocol Hin Hout • Attacker chooses prebelief • System and attacker choose inputs Hin, Lin • System executes S and produces observation Execution modeled as a distribution transformer semantics: «S¬ : Dist!Dist S Lin Lout observation preB postB preB Clarkson et al.: Belief in Information Flow
Experiment Protocol Hin Hout • Attacker chooses prebelief • System and attacker choose inputs Hin, Lin • System executes S and produces observation • Attacker conducts thought-experiment to obtain prediction S Lin Lin Lout observation preB postB preB Clarkson et al.: Belief in Information Flow
Experiment Protocol H’out L’out Hin preB Hin • Attacker conducts thought-experiment to obtain prediction S prediction Lin Clarkson et al.: Belief in Information Flow
Experiment Protocol | = prediction observation postB • Attacker chooses prebelief • System and attacker choose inputs Hin, Lin • System executes S and produces observation • Attacker conducts thought-experiment to obtain prediction • Attacker infers postbelief: preB Hin S prediction S Lin observation Lin preB Bayesian inference postB preB Clarkson et al.: Belief in Information Flow
Belief Revision in PWC = preB p,a = A,0 0 A,1 0.98B,0 0.01 B,1 0C,0 0.01C,1 0 | prediction observation p = A 0.98 B 0.01 C 0.01 = | a = 0 p = A 0 B 0.5 C 0.5 ´ = postB Clarkson et al.: Belief in Information Flow
Accuracy Metric Amount of flow Q is improvement in accuracy of belief i.e. (initial error) – (final error) D(postB ! Hin) D(preB ! Hin) preB postB Hin Q = D(preB ! Hin) –D(postB ! Hin) Clarkson et al.: Belief in Information Flow
Belief Distance Unit is (information theoretic) bits Relative entropy: When D is defined as relative entropy, Q is the amount of information that the attacker’s observation contains about the high input. Clarkson et al.: Belief in Information Flow
Amount of Flow from PWC Max leakage of lg 3 bits implies uniform prebelief: .6 bits 5 bits 1.6 bits p = A,B,C 1/3 each .98, .01, .01 1/3, 1/3, 1/3 0, 0, 1 0, .5, .5 Q = D(.98, .01, .01!0, 0, 1) – D(0, .5, .5!0, 0, 1) = 5.6 bits Information is in the eye of the beholder Clarkson et al.: Belief in Information Flow
Repeated Experiments Information flow is also compositional The amount of information flow over a series of experiments is equal to the sum of the amount of information flow in each individual experiment. Experiment protocol is compositional Exp Exp B B’ B’’ Clarkson et al.: Belief in Information Flow
Extensions of Metric • So far: exact flow for a single execution • Extend to: {Expected, maximum} amount of information flow {for a given experiment, over all experiments} • Language for quantitative flow policies Clarkson et al.: Belief in Information Flow
Misinformation Certainty ? Accuracy FPWC: if p = g then a := 1 else a := 0; if random() < .1 then a := !a Non-probabilistic programs cannot create misinformation. Clarkson et al.: Belief in Information Flow
Summary • Attackers have beliefs • Quantifying information flow with beliefs requires accuracy • Traditional uncertainty model is inappropriate • Presented more expressive, fine-grained model of quantitative information flow • Compositional experiment protocol • Probabilistic language semantics • Accuracy-based metric Clarkson et al.: Belief in Information Flow
Related Work • Information theory in information flow • [Denning 82], [Millen 87], [Wittbold, Johnson 90], [Gray 91] • Quantitative information flow • Using uncertainty: [Lowe 02], [McIver, Morgan 03], [Clark, Hunt, Malacaria 01 - 05] • Using sampling theory: [Di Pierro, Hankin, Wiklicky 00 - 05] • Database privacy • Using relative entropy: [Evfimievski, Gehrke, Srikant 03] Clarkson et al.: Belief in Information Flow
Future Work • Extended programming language • Lattice of security levels • Static analysis • Quantitative security policies Clarkson et al.: Belief in Information Flow
Belief in Information Flow Michael Clarkson, Andrew Myers, Fred B. Schneider Cornell University 18th IEEE Computer Security Foundations Workshop June 20, 2005
Extra Slides Clarkson et al.: Belief in Information Flow
Beliefs as Distributions • Other choices: Dempster-Shafer belief functions, plausibility measures, etc. • Probability distributions are: • Quantitative • Axiomatically justifiable • Straightforward • Familiar • Abstract operations • Product: combine disjoint beliefs • Update: condition belief to include new information • Distance: quantification of difference between two beliefs Clarkson et al.: Belief in Information Flow
Program Semantics Clarkson et al.: Belief in Information Flow
Postbeliefs are Bayesian • Standard techniques for inference in applied statistics • Bayesian inference • Sampling/frequentist theory • Bayesian inference: • Formalization of scientific method • Consistent with principles of rationality in a betting game • May be subjective but is not arbitrary Clarkson et al.: Belief in Information Flow
Interpreting Flow Quantities • Uncertainty (entropy) interpreted as: • Improvement of expected codeword length • Accuracy (relative entropy) interpreted as: • Improvement in efficiency of optimal code Clarkson et al.: Belief in Information Flow