Algorithm Search⌘K

Modeladvanced

Decentralized label model

Also called DLM, Myers-Liskov label model.

Labels data with policies of several owners, each naming its allowed readers, so that each owner can declassify only its own policy.

The decentralized label model (DLM), from Andrew Myers and Barbara Liskov (1997), labels each value with the privacy policies of several owners. Each policy names an owner and the readers that this owner allows, and a reader must be allowed by every policy. Labels are ordered so that a relabeling is allowed only when it keeps or tightens every policy, and the join of two labels is their union. An owner can relax its own policy, a declassification, but not the policy of anyone else. The model keeps the lattice model of flows, so a security type system can check it statically; the language Jif does this.

The machine

Principals. There is a set of principals: users, groups and roles. The acts-for relation p⪰qp \succeq q, "pp acts for qq", says that pp may use all the authority of qq. It is reflexive and transitive, and it is called the principal hierarchy. It can change at run time.

Policies and labels. A policy II has an owner o(I)o(I) and a set of readers r(I)r(I), written o:r1,…,rko: r_1, \dots, r_k. A label is a finite set of policies, for example

{alice:alice,hr; bob:bob,hr}.\{\mathit{alice}: \mathit{alice}, \mathit{hr};\ \mathit{bob}: \mathit{bob}, \mathit{hr}\}.

The effective readers of a policy are the principals that act for one of its readers:

R(I)={p:p⪰p′ for some p′∈r(I)}.R(I) = \{p : p \succeq p' \text{ for some } p' \in r(I)\}.

A principal may read a value only if it is in R(I)R(I) for every policy II of the label. An owner that is not in the label puts no limit. In the semantics of the journal paper, an owner is not a reader of its own policy unless it is listed.

Transitions. A program moves values from one labeled variable or channel to another, and it computes new values. These are the transitions.

  • Relabeling. A value may move from label L1L_1 to label L2L_2 if L1⊑L2L_1 \sqsubseteq L_2. For two policies, I⊑JI \sqsubseteq J if o(J)⪰o(I)o(J) \succeq o(I) and R(J)⊆R(I)R(J) \subseteq R(I): the new policy has the same owner or one that acts for it, and allows no new readers. For labels,
L1⊑L2  ⟺  for each I∈L1 there is a J∈L2 with I⊑J.L_1 \sqsubseteq L_2 \iff \text{for each } I \in L_1 \text{ there is a } J \in L_2 \text{ with } I \sqsubseteq J.
  • Computation. A value computed from values with labels L1L_1 and L2L_2 gets the join L1⊔L2=L1∪L2L_1 \sqcup L_2 = L_1 \cup L_2: it keeps the policies of both. Implicit flows are handled with a label for the program counter, as in the security type system.
  • Declassification. A process that runs with the authority of a set AA of principals may relabel a value from L1L_1 to L2L_2 if
L1⊑L2⊔LA,LA={p: ∣p∈A},L_1 \sqsubseteq L_2 \sqcup L_A, \qquad L_A = \{p : \ \mid p \in A\},

where "p:p :" is the policy of owner pp with no readers. Each policy of L1L_1 owned by a principal in AA is matched by LAL_A, so it may be weakened or removed; every other policy must still be matched in L2L_2.

Integrity. Section 4 of the journal paper adds integrity labels, whose policies name the principals that trust the data. They use the dual order: a value becomes less trusted when it is combined with untrusted data.

What it counts

The model decides whether a flow is allowed: whether L1⊑L2L_1 \sqsubseteq L_2, whether a principal may read a value, and whether a process with authority AA may declassify. Let nn be the number of policies in a label, kk the number of readers in a policy and ss the number of principals.

  • With the acts-for relation stored as its transitive closure, an s×ss \times s table of O(s2)O(s^2) space, each test p⪰qp \succeq q takes O(1)O(1) time in the word-RAM.
  • R(J)⊆R(I)R(J) \subseteq R(I) holds if and only if each listed reader of JJ acts for some listed reader of II, by transitivity. So I⊑JI \sqsubseteq J takes O(k2)O(k^2) time.
  • L1⊑L2L_1 \sqsubseteq L_2 takes O(n2k2)O(n^2 k^2) time, the join takes O(nk)O(n k) time, and a declassification check costs the same as a relabeling.

Worked example. Principals alice, bob, eve and hr, with bob ⪰\succeq hr. Let L={alice:alice,hr}L = \{\mathit{alice}: \mathit{alice}, \mathit{hr}\}, so R={alice,hr,bob}R = \{\mathit{alice}, \mathit{hr}, \mathit{bob}\}.

question check result
L⊑{alice:alice}L \sqsubseteq \{\mathit{alice}: \mathit{alice}\}? same owner, {alice}⊆R\{\mathit{alice}\} \subseteq R yes (a reader removed)
L⊑{alice:alice,bob}L \sqsubseteq \{\mathit{alice}: \mathit{alice}, \mathit{bob}\}? bob acts for hr, so {alice,bob}⊆R\{\mathit{alice}, \mathit{bob}\} \subseteq R yes (a reader that acts for a reader added)
L⊑{alice:alice,eve}L \sqsubseteq \{\mathit{alice}: \mathit{alice}, \mathit{eve}\}? eve is not in RR no
readers of L⊔{hr:hr,bob}L \sqcup \{\mathit{hr}: \mathit{hr}, \mathit{bob}\} R∩{hr,bob}R \cap \{\mathit{hr}, \mathit{bob}\} hr and bob
alice declassifies {alice:alice}\{\mathit{alice}: \mathit{alice}\} to {alice:alice,eve}\{\mathit{alice}: \mathit{alice}, \mathit{eve}\}? the policy is matched by "alice :" in LAL_A yes
bob declassifies the same? bob does not act for alice no

Relation to other models

  • Lattice model. The relation ⊑\sqsubseteq is a preorder on labels. Two labels are equivalent if each is below the other, and the classes of equivalent labels form a lattice with the union as join, a join-semilattice with a least element (the empty label). So the DLM is an instance of Denning's model with a large, structured lattice.
  • Declassification. Declassification is the general question of which releases are allowed. The DLM answers its who dimension: the owner of a policy, or a principal that acts for it, may release the data that the policy protects. It says nothing about what is released or when.
  • Discretionary access control. As in DAC, each owner decides about its data. Unlike DAC, the policy follows the information into each copy and each computed value, so a reader cannot pass the data on to a principal the owner did not allow.
  • Mandatory access control. MAC has one central policy and one authority. The DLM has many owners who do not trust each other, and no central authority.
  • Trust management. The acts-for relation is a delegation relation, like the delegation of rights in trust management systems.
  • Biba. The integrity labels of Section 4 play the role of Biba levels, with several owners.

Known results in the model

  • Soundness and completeness of relabeling. Myers and Liskov (1998) give a formal meaning to a label as the set of flows it allows, and prove that the rule L1⊑L2L_1 \sqsubseteq L_2 above is sound (each allowed relabeling keeps every policy) and complete (each relabeling that keeps every policy is allowed by the rule).
  • Incremental rules. Each allowed relabeling is a sequence of four safe steps (journal paper, Section 3.3): remove a reader, add a policy, add a reader that acts for an existing reader, and replace an owner by a principal that acts for it.
  • Join. The join of two labels is their union (Section 3.5), and it is the least upper bound in the order ⊑\sqsubseteq.
  • Declassification rule. The rule L1⊑L2⊔LAL_1 \sqsubseteq L_2 \sqcup L_A lets a process weaken only the policies of the principals it acts for (Section 3.6).
  • Static checking. Jif (formerly JFlow) checks the labels of a Java-like program at compile time, with label inference inside methods. Its rules extend the program counter rules of the security type system. The papers cited here do not prove noninterference for the whole of Jif; the proofs are for the label model and for small core languages.

References

  1. Andrew C. Myers and Barbara Liskov, A decentralized model for information flow control, Proceedings of the 16th ACM Symposium on Operating Systems Principles (SOSP 1997), pp. 129 to 142, the first presentation of the model and of its static checking
  2. Andrew C. Myers and Barbara Liskov, Protecting privacy using the decentralized label model, ACM Transactions on Software Engineering and Methodology 9(4), 2000, pp. 410 to 442; Section 3.1 (principals and acts-for), 3.2 (labels and their readers), 3.3 (safe incremental relabelings), 3.4 (the complete relabeling rule), 3.5 (the join of labels), 3.6 (declassification), Section 4 (integrity labels)
  3. Andrew C. Myers and Barbara Liskov, Complete, safe information flow with decentralized labels, Proceedings of the 1998 IEEE Symposium on Security and Privacy, pp. 186 to 197, the formal semantics of labels and the proof that the relabeling rule is sound and complete
  4. 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 decentralized label model and Jif in the survey

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