Modeladvanced
Authorization logic
Also called ABLP logic, speaks-for calculus.
A modal logic of principals, says and speaks for, used to reason about who authorized a request in a distributed system.
An authorization logic is a logic for reasoning about which principal stated or authorized a request in a distributed system. Its two main operators are says, for what a principal states, and speaks for, for the delegation of authority from one principal to another. A file server can then state its rule as "grant read on if Alice says read ", and prove from signed messages, certificates and its own beliefs that a request on a network channel comes from Alice. The standard form, the speaks-for calculus, comes from Lampson, Abadi, Burrows and Wobber (1992) and from Abadi, Burrows, Lampson and Plotkin (1993), who built it for the Taos operating system at DEC. Later logics of the same kind give it other semantics or a Datalog core.
The machine
Principals. Atomic principals are users, machines, keys, channels and roles. Compound principals are built with two operators.
- , " and ": a principal that says only what both and say. It models joint authority.
- , " quoting ": the principal that says that says something. It models a request that passes on for , without proof that made it.
The papers also define as (Alice in a role ) and for (delegation) from these two operators and special principals.
Formulas. Formulas are built from atomic statements, such as "read ", with the connectives of propositional logic, with , and with , " speaks for ".
Axioms. The logic has all propositional tautologies and modus ponens, and:
- ;
- if is a theorem, then is a theorem;
- ;
- ;
- ;
- ;
- handoff: .
Here is associative, commutative and idempotent, and is associative and distributes over on both sides. Axioms 1 and 2 make each " says" a normal modal operator. Axiom 7 says that a principal may hand its own authority to another.
Semantics. A model is a set of worlds, as in a Kripke structure, with a binary relation on worlds for each principal. Then holds at if holds at every with . The operators are and , the composition, and holds when . The papers treat the handoff axiom apart from these basic rules.
From messages to formulas. The connection to the system is by assumptions that the implementation must make true. A message that verifies under a public key with a digital signature scheme gives . A message that arrives on a secure channel gives . A certificate is a signed statement .
Cost. In the word RAM model, a proof is a list of formulas, each an axiom instance or the result of a rule applied to earlier lines. With formulas stored as syntax trees, checking that each line is an axiom instance or follows by a rule costs time polynomial in the total size of the proof, and linear when the principals are kept in a normal form for the laws of and . The signature checks for the messages it uses come on top.
What it counts
The logic decides whether the beliefs of a server, together with the statements it has received, prove that a principal on its access list authorized a request. An access list entry "Alice may read " becomes the rule "if a principal that speaks for Alice says read , grant it".
Adversary. The adversary controls the network: it reads, replays, delays and injects messages, and it has keys and channels of its own. It cannot forge signatures under keys it does not hold. Under this assumption a formula that the server derives from a signature check is true. The soundness statement of the logic is then: if every premise is true, every derived formula is true, so a derived "Alice says read " means that Alice, or a principal she chose to let speak for her, made the request. Replays of an old signed request are outside the logic; the papers handle them with timestamps and nonces in the statements.
Example. A file server holds the access list entry "Alice may read ". Its premises are:
- (the server knows the key of the certification authority);
- (the server trusts CA on the keys of users);
- (a certificate that verifies under );
- (a request that verifies under the key of Alice's workstation);
- (Alice's key delegates to the workstation key).
From 1 and 3 by axiom 6, CA says , so by 2, . By handoff on 5, . Two uses of axiom 6 on 4 give and then , and the access list grants the request. Without 5, nothing links to Alice, and the server refuses. A statement under the adversary's key does not help it: handoff needs Alice, or a principal that speaks for her, to say it.
Relation to other models
- Access control lists. The logic explains what an access control list entry means when the requester is a key or a channel and not a local user: the request is granted if its source speaks for a principal on the list.
- Trust management. Trust management systems answer the same question, whether credentials and policy authorize a request, with a checker instead of a logic. Many later logics of this kind, such as Binder and SecPAL, are close to Datalog and so are also trust management languages.
- Logics of authentication. The logic of Burrows, Abadi and Needham (1989) reasons about beliefs in authentication protocols such as Kerberos and the Needham-Schroeder protocol. The speaks-for calculus reasons about the authority of principals once the channels are known.
- Modal logic. Each " says" is a box operator of a normal modal logic, with one accessibility relation per principal, as in multi-agent epistemic logic.
- Proofs as objects. In proof-carrying authorization (Appel and Felten 1999), the requester sends a proof in the logic and the server only checks it. The proofs are terms in the style of the Curry-Howard correspondence, which several later constructive authorization logics use.
Known results in the model
- The calculus of principals is undecidable (Abadi, Burrows, Lampson and Plotkin 1993; theorem). With the equations for and , the set of valid formulas of the calculus of principals is not recursive. The same paper gives decision procedures for the restricted questions that access control asks, where the access list and the premises have a simple form.
- Embedding into S4 (Garg and Abadi 2008; theorem). Several access control logics, among them constructive ones with says and speaks for, translate into the modal logic S4 in a way that is sound and complete. Known decision procedures for S4 then give decidability results for those logics.
- Datalog cores have polynomial data complexity (theorem). When the logic is a Datalog program with says as an extra argument of each predicate, as in Binder, the derivable facts for a fixed policy can be computed in time polynomial in the number of credentials, by the least fixpoint of Datalog.
- Proof checking is cheap (theorem). Checking a given proof takes time polynomial in its size, plus the signature checks, as above. This is why proof-carrying authorization moves the search for a proof to the requester, where the search may be hard, and leaves only the check to the server.
- Practice. The Taos operating system used the speaks-for calculus to authenticate requests across machines, channels and delegations (Lampson, Abadi, Burrows and Wobber 1992). The rules there are the same as above, with channels, timeouts and group membership added.
References
- Martin Abadi, Michael Burrows, Butler Lampson and Gordon Plotkin, A calculus for access control in distributed systems, ACM Transactions on Programming Languages and Systems 15(4), 1993, pages 706 to 734, the calculus of principals (and, quoting, roles, delegation), the axioms for says and speaks for, the Kripke semantics, the undecidability of the calculus of principals and the decidable access control cases
- Butler Lampson, Martin Abadi, Michael Burrows and Edward Wobber, Authentication in distributed systems: theory and practice, ACM Transactions on Computer Systems 10(4), 1992, pages 265 to 310, the speaks-for relation, channels, certificates, the handoff rule, delegation and their use in the Taos operating system
- Deepak Garg and Martin Abadi, A modal deconstruction of access control logics, Foundations of Software Science and Computation Structures (FoSSaCS) 2008, LNCS, pages 216 to 230, the translation of access control logics into the modal logic S4 and the decidability results derived from it
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 PGCFA7 Edit this page History Report an error Markdown