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 for the finite ones. A property is a set of traces. A system is modeled by the set of its traces, and satisfies the property if .
Hyperproperty. A hyperproperty is a set of sets of traces. A system satisfies if . Each property gives the hyperproperty , the set of all subsets of , and exactly when satisfies . So hyperproperties include all properties. The interesting ones are those that are not of the form .
Prefixes. For a finite set of finite traces and a set of traces, write if each trace of is a prefix of some trace of .
Hypersafety. is a hypersafety hyperproperty if for each there is a finite set of finite traces with such that no is in . The set is the "bad thing": a finite set of finite observations that no extension can repair.
k-safety. is -safety if it is hypersafety and the bad thing can always be chosen with . The 1-safety hyperproperties are the properties with a safety property. Terauchi and Aiken (2005) earlier named the 2-safety class for programs.
Hyperliveness. is a hyperliveness hyperproperty if for each finite set of finite traces there is a with : no finite observation is beyond repair.
Theorem (Clarkson and Schneider). Each hyperproperty is the intersection of a hypersafety hyperproperty and a hyperliveness hyperproperty. A -safety hyperproperty of a system is a safety property of the -fold self-composition of , whose traces are -tuples of traces of 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 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 and a public input and end with a public output. Noninterference says: two traces with the same have the same output. A violation is shown by two finite traces with the same and different outputs, so it is 2-safety. It is not a property: the system 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 ". This is the safety property , and the hyperproperty adds nothing to it. It is 1-safety.
Related definitions
- 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 -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
- 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
- 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
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5SWFTZ Edit this page History Report an error Markdown