Algorithm Search⌘K

Definitionadvanced

Hyperproperty

Also called hypersafety.

A property of sets of execution traces rather than single traces, which can state noninterference and other policies that relate runs.

A hyperproperty is a set of sets of traces. A trace property, such as "each request gets an answer", says which single runs are allowed. A hyperproperty says which systems, as sets of runs, are allowed, so it can compare runs with each other. Clarkson and Schneider (2008) introduced the notion to give security policies such as noninterference the same theory that safety and liveness give trace properties. Noninterference is not a trace property, because no single run shows a leak; it is a hyperproperty, and more exactly a 2-safety hyperproperty.

Definition

Traces and properties. A state is a value of the system variables. A trace is a finite or infinite sequence of states; Clarkson and Schneider use infinite traces, and Ψfin\Psi_{\mathrm{fin}} for the finite ones. A property is a set of traces. A system is modeled by the set SS of its traces, and SS satisfies the property PP if S⊆PS \subseteq P.

Hyperproperty. A hyperproperty is a set H\mathbf{H} of sets of traces. A system SS satisfies H\mathbf{H} if S∈HS \in \mathbf{H}. Each property PP gives the hyperproperty [P]={S:S⊆P}[P] = \{S : S \subseteq P\}, the set of all subsets of PP, and S∈[P]S \in [P] exactly when SS satisfies PP. So hyperproperties include all properties. The interesting ones are those that are not of the form [P][P].

Prefixes. For a finite set MM of finite traces and a set TT of traces, write M≤TM \le T if each trace of MM is a prefix of some trace of TT.

Hypersafety. H\mathbf{H} is a hypersafety hyperproperty if for each T∉HT \notin \mathbf{H} there is a finite set MM of finite traces with M≤TM \le T such that no T′≥MT' \ge M is in H\mathbf{H}. The set MM is the "bad thing": a finite set of finite observations that no extension can repair.

k-safety. H\mathbf{H} is kk-safety if it is hypersafety and the bad thing can always be chosen with ∣M∣≤k|M| \le k. The 1-safety hyperproperties are the properties [P][P] with PP a safety property. Terauchi and Aiken (2005) earlier named the 2-safety class for programs.

Hyperliveness. H\mathbf{H} is a hyperliveness hyperproperty if for each finite set MM of finite traces there is a T∈HT \in \mathbf{H} with M≤TM \le T: no finite observation is beyond repair.

Theorem (Clarkson and Schneider). Each hyperproperty is the intersection of a hypersafety hyperproperty and a hyperliveness hyperproperty. A kk-safety hyperproperty of a system SS is a safety property of the kk-fold self-composition of SS, whose traces are kk-tuples of traces of SS run side by side. This reduction is the basis of self-composition.

Theorem (Schneider 2000). Hypotheses: an execution monitor sees one run of the system, one step at a time, and stops the run when the policy is about to be broken. Statement: each policy such a monitor can enforce is a safety property of single traces (the condition is necessary, not sufficient). A hyperproperty that is not of the form [P][P] is not a property at all, so an execution monitor cannot enforce it in general: no run that it watches is bad by itself. This is the reason the dynamic monitors for information flow change the run, as no-sensitive-upgrade does by stopping it on a possible leak, or run the program more than once, as secure multi-execution does. See the EM-enforceable policies theorem and security automata.

The alias "hypersafety" names the subclass above, not the general notion.

Examples and non-examples

  • Noninterference: 2-safety, not a property. Take a system whose traces start with a secret input hh and a public input ll and end with a public output. Noninterference says: two traces with the same ll have the same output. A violation is shown by two finite traces with the same ll and different outputs, so it is 2-safety. It is not a property: the system S={(h=0,l=0,out=0),(h=1,l=0,out=1)}S = \{(h{=}0, l{=}0, \mathit{out}{=}0), (h{=}1, l{=}0, \mathit{out}{=}1)\} leaks, but each of its traces also belongs to a system that does not leak, such as the system with only that trace. The page noninterference gives the proof.
  • TINI: 2-safety. Termination-insensitive noninterference compares only runs that stop. Its bad thing is a pair of finite runs.
  • Constant-time execution: 2-safety. Two runs with the same public inputs must have the same sequence of branches and memory addresses. This is the property that constant-time verification checks by self-composition.
  • Observational determinism: 2-safety. Each pair of traces with equal public inputs is equivalent on public state.
  • Generalized noninterference: hyperliveness. For each two traces there must be a third trace that has the secret inputs of the first and the public behaviour of the second. A finite set of observations can always be extended with such traces, so this is not hypersafety. Clarkson and Schneider classify it as hyperliveness.
  • Mean response time: neither k-safety nor a property. A bound on the average response time over all runs depends on the whole set of runs.
  • Non-example of a proper hyperproperty: "no state has x<0x < 0". This is the safety property PP, and the hyperproperty [P][P] adds nothing to it. It is 1-safety.
  • Safety and liveness are the trace-property classes that hypersafety and hyperliveness lift. The decomposition theorem lifts the theorem of Alpern and Schneider that each property is the intersection of a safety and a liveness property.
  • Noninterference is the main example. TINI is 2-safety. The termination-sensitive form needs to compare a run that stops with one that does not, which no finite set of finite traces can show; it is not 2-safety.
  • Self-composition turns a kk-safety hyperproperty into a safety property of a product program, so that ordinary tools such as Hoare logic and model checkers apply.
  • Logics. Linear temporal logic states properties of one trace. Logics such as HyperLTL quantify over several traces and state hyperproperties; this site has no page on them.
  • Reference monitors and security automata see one trace and enforce only safety properties, so they cannot enforce information flow policies directly.

References

  1. Michael R. Clarkson and Fred B. Schneider, Hyperproperties, Proceedings of the 21st IEEE Computer Security Foundations Symposium (CSF 2008), pp. 51 to 65, the definitions of hyperproperty, hypersafety, k-safety and hyperliveness, and the decomposition theorem
  2. Michael R. Clarkson and Fred B. Schneider, Hyperproperties, Journal of Computer Security 18(6), 2010, pp. 1157 to 1210, the journal version, with the proofs, the reduction of k-safety to safety by self-composition, and the classification of security policies
  3. Tachio Terauchi and Alex Aiken, Secure information flow as a safety problem, Proceedings of SAS 2005, LNCS 3672, pp. 352 to 367, 2-safety properties and noninterference as one of them
  4. Fred B. Schneider, Enforceable security policies, ACM Transactions on Information and System Security 3(1), 2000, pp. 30 to 50, security automata and the result that each policy an execution monitor can enforce is a safety property

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/5SWFTZ/text.yaml