Modelcore
Lattice model of information flow
Also called Denning lattice model, security class lattice.
Puts security classes in a lattice and allows information to flow from one class to another only when the first is below the second.
The lattice model of information flow, from Dorothy Denning (1976), gives each object of a system a security class and puts the classes in a lattice. Information may flow from class to class only when , and a value computed from several objects gets the join of their classes. A system is secure in the model if no sequence of its operations makes a flow that the order does not allow. The model is the base of the security type systems, of the dynamic monitors on the later pages, and of the modern definition of noninterference.
The machine
Classes. A security lattice is . The relation reads "information may flow from to ". The join is the least upper bound, the meet is the greatest lower bound. The least class is the class of public data and of constants. The order is a join-semilattice with a least element. A finite join-semilattice with a least element is a lattice: its greatest element is the join of all classes, and the meet of two classes is the join of the classes below both.
Flow model. Denning's flow model has five parts: a set of objects (variables, files, the program counter), a set of processes, the set of security classes, a class-combining operator (the join) and the flow relation (the order). Each object has a class . In the static form of the model the class of an object is fixed. In the dynamic form it can change during the run.
Why a lattice. Denning and Denning (1977, Section 2.1) give the argument. The flow relation is reflexive, since an object may flow to itself, and transitive, since a flow from to and from to is a flow from to . A value computed from objects must go to a class that is above each , and the least such class is the natural one to give it. So the classes need a least upper bound for each finite set, and a finite set of classes with such bounds and a least class is a lattice. A finite order without joins can be made into a lattice by adding classes.
Transitions. A transition is one operation of a process. An operation makes an explicit flow from each to , and it is allowed when . An operation that runs only when a condition on holds also makes an implicit flow from to (see implicit flow). In a program the second kind is written with the class of the program counter: an assignment under a program counter of class is allowed when .
Common lattices.
| lattice | classes | order | join |
|---|---|---|---|
| two-point | |||
| linear | unclassified, confidential, secret, top secret | the listed order | the larger level |
| subsets | all subsets of a set of categories | if | |
| military | pairs of a level and a set of categories | if dom |
The figures of Denning and Denning show the linear lattice (Fig. 1) and the lattice of subsets of three properties (Fig. 2). The military lattice is the one of Bell-LaPadula and of mandatory access control.
What it counts
The model decides two things.
- Is one flow allowed? For classes and this is the test . In the word-RAM with a subset lattice over categories, a class is one machine word, the test is and the join is , so both take time. For a general finite lattice of classes, a table of the order or of the join takes space and gives time per operation.
- Is a program or a system secure? A program is secure if each run makes only allowed flows, so that the final value of each object depends only on the initial values of objects with . The modern semantic form of this is noninterference.
A mechanism is sound if each program it accepts is secure, and precise if it accepts each secure program. Denning (1976) separates static mechanisms, which check a program before it runs, from run-time mechanisms, which check each operation.
Relation to other models
- Bell-LaPadula. BLP controls access: a subject may read objects at or below its level and write objects at or above it. The lattice model controls flows inside a program. A program that obeys BLP can still leak through its control flow, which the lattice model counts. Both use the same order, and BLP's levels form one lattice of the table above.
- Biba. Biba uses the same structure for integrity, with trusted data at the bottom: , so information may flow from trusted to untrusted data and not back. Biba's papers write the order the other way.
- Decentralized label model. Myers and Liskov keep the lattice, but a label is a set of policies of several owners, and each owner can relax its own policy.
- Taint analysis. Taint tracking is the two-point lattice with only explicit flows in most tools. It drops the program counter class, so it misses implicit flows.
- Covert channels. Flows through time, resource use or termination are outside the model unless the objects include them.
Known results in the model
- Lattice structure. Under the assumptions above, the classes form a finite lattice (Denning 1976; Denning and Denning 1977, Section 2.1).
- Exact security is undecidable. Whether a program makes a disallowed flow is undecidable. Denning and Denning (Section 2.3) use the program "if halts then ". The question is also an instance of Rice's theorem. So each sound static mechanism rejects some secure programs, for example "if then if then ".
- Certification theorem. Denning and Denning (Section 3) check each statement at compile time: for an assignment, the join of the source classes must be below the target class, and for an if or a while statement, the class of the condition must be below the meet of the classes of the targets in its body. Their theorem: a program is certified only if it is secure, by induction on the structure of the program. The check is linear in the size of the program.
- Soundness for noninterference. Volpano, Irvine and Smith (1996) recast the certification as a type system and proved that a typable program is termination-insensitive noninterferent (TINI). The proof does not cover leaks through termination or time.
- Run-time checks. Fenton's data mark machine (1974) showed that a run-time check that looks only at the branch that runs can leak through the branch that does not run. The no-sensitive-upgrade check, secure multi-execution and faceted execution are three ways to make a run-time mechanism sound.
References
- Dorothy E. Denning, A lattice model of secure information flow, Communications of the ACM 19(5), 1976, pp. 236 to 243, the flow model, the argument that the security classes form a lattice, and static and run-time mechanisms
- Dorothy E. Denning and Peter J. Denning, Certification of programs for secure information flow, Communications of the ACM 20(7), 1977, pp. 504 to 513; Section 2.1 (the lattice of classes, Figs. 1 and 2), Section 2.2 (explicit and implicit flows), Section 2.3 (exact security is undecidable), Section 3 (the certification mechanism and its theorem, Fig. 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 survey of the field that grew from the lattice model
- 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 certification of Denning and Denning as a type system, with a proof of noninterference
- J. S. Fenton, Memoryless subsystems, The Computer Journal 17(2), 1974, pp. 143 to 147, the data mark machine, a run-time check of flows
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 BGVEK1 Edit this page History Report an error Markdown