Algorithmresearch
Faceted execution
Also called faceted values.
Runs one program on values with a secret and a public facet, so that each observer sees the result computed from what it may know. This gives termination-insensitive noninterference.
- Time
- O((a + b) n) worst
- Space
- O(n) extra
- Where
- a = the number of steps of the plain run on the true inputs; b = the number of steps of the plain run on the public view; n = the number of nodes of the syntax tree of the program
- Model
- Word RAM
- Properties
- not completedeterministiconlineiterativesound
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Thomas H. Austin, Cormac Flanagan, 2012
Faceted execution runs a program once, on values that can have two facets: a value shows to an observer who may see secrets and to an observer who may not. A secret input starts as , with a fixed default value . Most of the program runs once for both observers. Only where the two facets of a condition differ does the run split, and each observer's view takes its own branch. Austin and Flanagan (2012) proved the projection theorem: the view of each observer is exactly the plain run of the program on the inputs that observer may see. This gives termination-insensitive noninterference (TINI) without the stops of no-sensitive-upgrade.
In plain words
Think of each variable as a pair of values. One is for people who may know the secret, and the other is for everyone else. At the start, a secret variable holds the real secret on the first side and a fake value, such as 0, on the second side. Public variables hold the same value on both sides. The program then runs on these pairs. Adding two pairs adds each side. When the program must choose a branch and both sides agree, it takes that branch once. When they disagree, it runs each branch for one side only, and an assignment there changes only that side. At the end, the public side is what the program would give with the fake secret. So it cannot depend on the real secret.
The problem
The input is a program in a small while language, a set of secret variables (level ) and public variables (level ), an initial store and a default value . The output is a final faceted store . The observer at sees the facet of every variable, and the observer at sees the facet .
The goal is the projection property: is the plain result , and is the plain result , where is with each secret input replaced by . Since depends only on the public inputs, so does the view of the public observer. The program may be any program, secure or not.
The algorithm
The run uses an explicit stack of pairs (command, program counter). The program counter is none outside a split, in a branch that only the view takes, and in a branch that only the view takes. Here is a plain value when , and the faceted value of an expression is the pair of its values in the two views.
FACETED-RUN(c, σ) ▷ the final faceted store- 1
S ← a stack that holds the pair (c, none) - 2
while S is not empty do - 3
(d, p) ← pop(S) - 4
if d = (x := e) then v ← the faceted value of e in σ - 5
if p = none then σ(x) ← v - 6
if p = H then σ(x) ← ⟨H view of v : L view of σ(x)⟩ - 7
if p = L then σ(x) ← ⟨H view of σ(x) : L view of v⟩ - 8
if d = (d1; d2) then push (d2, p), then (d1, p) - 9
if d is an if or a while on e then (bH, bL) ← the truth of e in each view - 10
if p = none and bH ≠ bL then - 11
A ← [(L, bL), (H, bH)] ▷ split: each view takes its own arm - 12
else A ← [(p, b)], with b = bL if p = L and b = bH otherwise - 13
for each (q, b) in A, if d = (if e then d1 else d2): push (d1 if b else d2, q) - 14
for each (q, b) in A, if d = (while e do d1) and b: push (d, q), then (d1, q) - 15
return σ
Lines L6 and L7 are the faceted form of an assignment in a secret context: the write changes only the view that takes the branch, and the other view keeps the old value. This is how faceted execution handles the implicit flows of a branch that one view does not take: that view simply never sees the write. Line L10 splits the run only when the two views disagree on a condition. Inside a split (line L12), each view follows its own condition, and there is no second split, because there are only two views. A program that does not branch on secrets never splits and costs about as much as the plain run.
Example
Take Fenton's program, with secret, and public, and the default value :
With the start store is . The steps for the sequences are left out, and the two first assignments give , the same in both views.
| step | popped | action | ||
|---|---|---|---|---|
| 1 | (if ..., none) | , : split, push , then | 1 | 1 |
| 2 | change the view only (L6) | 1 | ||
| 3 | nothing | 1 | ||
| 4 | (if ..., none) | , : split, push , then | 1 | |
| 5 | nothing | 1 | ||
| 6 | change the view only (L7) |
The final store is , , . The view is the plain run with . The view is the plain run with . With the two views agree everywhere, no split happens, and the run ends with , . So the public observer sees in both runs, while the plain program gives when . No-sensitive-upgrade stops the run with at step 2.
Correctness
Theorem 1 (projection, Austin and Flanagan 2012). Hypotheses: a deterministic while language and two levels; any program and any faceted start store . Statement: the faceted run ends if and only if the plain runs from and from both end, and then of the final store is the result of the plain run from , for and .
The proof below shows that each step of the faceted run is a step of the plain run of one view or of both, and changes nothing in the other view. Lines L6 and L7 keep the other view, and line L11 gives each view the arm that its own condition chooses.
Theorem 2 (TINI). Hypotheses: two start stores that agree on the public inputs, each secret input given as . Statement: if both faceted runs end, the observer at sees the same final store. Both views start from the same store , so by Theorem 1 both are .
The view is the plain run on the true inputs. When the program is TINI and the faceted run ends, the view also gives the true values of the public variables, so faceted execution changes nothing that the public observer should see.
Proof: The projection theorem for faceted execution, and termination-insensitive noninterferencefull
We use the language and the pseudocode of the page, with the two levels . A faceted value is a plain value, which both views see, or a pair with , whose view is and whose view is . We write also when , and then mean the plain value . For a faceted store and a view , is the plain store of the views. The faceted value of an expression is , so its view is the plain value of in .
The plain machine. The plain run of from a store is this machine. Its state is a stack of commands and a store, and it starts with the stack . A step pops the top command . For skip it does nothing. For it sets to the value of . For it pushes and then . For "if then else " it pushes if is true and otherwise. For "while do " it pushes the loop and then if is true, and nothing otherwise. The run ends when the stack is empty; is the final store, or if the run does not end. This machine gives the usual semantics of the language.
Projection of a configuration. A configuration of the faceted run is a stack of pairs with , and a faceted store . For a view , let be the stack of the commands of the pairs of with or , in the same order. A pair with belongs only to the view, a pair with only to the view, and a pair with to both.
Lemma (one step). Let a step of the faceted run go from to , and let be the popped pair. For each view : if or , the plain machine goes in one step from to ; otherwise and .
Proof. If or , then is in , and it is the top of because it is the top of and keeps the order. So the plain machine also pops . We go through the cases.
- skip. Nothing changes.
- (lines L4 to L7). Let be the faceted value of . If , line L5 sets , whose view is the plain value of in , as in the plain machine. If , line L6 sets the view of to the view of and keeps its view. So follows the plain step, and ; the pair is not in , so . Line L7 is the same with and exchanged.
- (line L8). Both new pairs get the label . So they are in exactly when the popped pair was in , and then follows the plain step.
- if or while on (lines L9 to L14). Let and be the truth of in the two views. If and , line L11 pushes the arm for with the label and then the arm for with the label . For an if, this is the branch chosen by and the branch chosen by . For a while, it is the loop and its body, for each view whose condition is true. The pairs with the label are the ones the plain step of the view pushes, with the condition , and the other pairs are not in . Otherwise, line L12 makes one arm with the label and the truth value , where if and if . If , then . In each case, for each view with or , , so the pushed pairs are the ones the plain step pushes, and they are in . For the other view, nothing changes.
Theorem 1 (projection). Let be a faceted store. The faceted run of from ends if and only if the plain runs from and from both end. If it ends in , then and . The number of steps of the faceted run is at most the sum of the numbers of steps of the two plain runs.
Proof. The start configuration projects to the start configuration of the plain run of each view. By the lemma and induction on the number of steps, after each step of the faceted run, the projection on each view is a configuration of the plain run of , reached after as many plain steps as there were faceted steps whose pair belongs to . Each pair belongs to at least one view, so after faceted steps the two plain runs together have made at least steps.
If the faceted run ends, its stack is empty, so both projected stacks are empty: both plain runs have ended, with the final stores and . Their numbers of steps add up to at least the number of faceted steps. If both plain runs end, after and steps, the faceted run cannot make more than steps, since each of its steps is a step of one of the plain runs, and a plain run that has ended has no more steps; so the stack of the faceted run is empty after at most steps, and the run ends.
Theorem 2 (TINI). Let and be plain stores that agree on the public variables. Let be the initial faceted store, as in the function initial_store of the code: each secret variable gets for a fixed default value , and each public variable gets . If both faceted runs end, in and , then of the two final stores are equal. So the observer at , who sees the view, sees the same final store in both runs.
Proof. and both map each secret variable to and each public variable to its common value, so they are equal; call this store . By Theorem 1, the views of both final stores are .
Transparency. By Theorem 1, the view of the final store is the result of the plain run on the true inputs, , because . If is termination-insensitive noninterferent and the faceted run ends, the plain runs from and from both end. Since and agree on the public variables, the view gives the same public values as the plain run on the true inputs.
Only termination-insensitive. The faceted run does not end when the view does not end. For "while do skip; ", the run with does not end and the run with ends with , so the observer at learns whether from termination. The theorems compare only runs that end, and the code, with its bound on the steps, returns no result in the same cases or more.
Complexity
The model is the word-RAM. Let and be the numbers of steps of the plain runs on the and views, and the number of nodes of the syntax tree. Each step of the faceted run is a step of at least one plain run (Theorem 1), so there are at most steps. A step evaluates at most one expression in both views, in time . So the time is , and when the run never splits, since then and each step serves both views. Each variable holds at most two values, and the stack holds the pending parts of the program for the two views, entries. The extra space is .
With more levels there are more views, and a value can have one facet for each view. In the worst case, when all views differ, the faceted run does the work of one plain run per view, as secure multi-execution does.
Properties
- Sound for TINI. The public view of the final store depends only on the public inputs (Theorem 2).
- Not termination-sensitive. The single run does not end when the view does not end. For "while do skip; ", the public observer sees no result exactly when . Secure multi-execution gives TSNI here.
- No stops. Faceted execution never stops a run for security. Where no-sensitive-upgrade stops, it splits instead.
- Transparent for TINI programs. If the program is TINI and the faceted run ends, the public observer sees the true public results.
- Not complete. A TINI program whose run on the public view does not end, such as "while do skip; " with and , gives no result, although the plain run ends.
- Shared work. The parts of the run that do not depend on secrets run once for both views.
Variants and improvements
- Many levels. Austin and Flanagan label each facet with a principal and write . Facets nest, and the program counter is a set of branches, each "" or "not ". A value then has a view for each set of principals, and the projection theorem holds for each view.
- Secure multi-execution. Secure multi-execution runs one plain copy per level instead of one faceted run. It shares no work, but its public copy does not wait for the secret one, so it is TSNI. Bielova and Rezk (2016) compare the two methods and show that, in their original forms, secure multi-execution gives the stronger guarantee.
- No-sensitive-upgrade. No-sensitive-upgrade is the one-view form: it keeps a label instead of a second value and stops where faceted execution would split.
- Faceted values for policies. Faceted values have also been used to enforce privacy policies in languages where a value shows different data to different users; this page does not cover those languages.
When to use it
Use faceted execution when the program is known only at run time, stops for security are not acceptable, and most of the program does not depend on secrets, so that the shared run saves work over secure multi-execution. Use secure multi-execution when the termination channel matters. Use no-sensitive-upgrade when a stop is acceptable and you want the smallest cost. Use the security type system when the program is known in advance. Like the others, faceted execution does not protect against the running time of the program; see covert channels.
Pitfalls
- Both views at line L6. Writing "" under the program counter changes the view too. For "if then else skip" and , the public view of becomes 1, and with it keeps its old value, so it copies a bit of . The right line L6 keeps the view of the old value, as line L7 keeps the view.
- No split at line L10. Choosing the branch by the view alone and running it with the program counter none makes each assignment in it change both views, which is the plain run with its leaks. The right line L10 splits when , and line L11 gives each view its own arm.
- The wrong view at line L12. Inside a split with the program counter , the condition must be read in the view. Reading there makes the view follow the branches of the public view, and is then not the plain run on the true inputs. The right line L12 uses when and when .
- A default value from the secret. The value of the public facet of a secret input must be fixed in advance. A value computed from the secret makes the public view depend on it.
- Expecting TSNI. The run does not end if either view does not end, so the public observer can learn about the secret from termination.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/faceted-execution/. The authors are listed in prov/5EDZCZ.jsonl.
"""Faceted execution of a small while language with two levels, L and H.
Programs are nested tuples:
expression: an int (a constant), a str (a variable), or (op, e1, e2)
with op one of "+", "-", "*", "<", "=="
command: ("skip",)
("assign", x, e)
("seq", c1, c2)
("if", e, c1, c2)
("while", e, c)
Values are integers modulo MOD. A nonzero value is true. A faceted value
<V_H : V_L> is the pair Facet(high, low): an observer at H sees V_H and an
observer at L sees V_L. A plain int is a value that both observers see.
The program counter is None (no secret branch), "H" (a branch only the H
view takes) or "L" (a branch only the L view takes).
"""
from typing import NamedTuple, Optional, Union
Expr = Union[int, str, tuple]
Cmd = tuple
MOD = 256
class Facet(NamedTuple):
high: int
low: int
Value = Union[int, Facet]
FStore = dict[str, Value]
def make(high: int, low: int) -> Value:
"""Return <high : low>, or the plain int when the two views agree. Cost: O(1)."""
return high if high == low else Facet(high, low)
def view(v: Value, side: str) -> int:
"""Return what the observer at side ("H" or "L") sees of v. Cost: O(1)."""
if isinstance(v, Facet):
return v.high if side == "H" else v.low
return v
def project(store: FStore, side: str) -> dict[str, int]:
"""Return the plain store that the observer at side sees. Cost: O(size of store)."""
return {x: view(v, side) for x, v in store.items()}
def _plain_eval(e: Expr, store: FStore, side: str) -> int:
values: list[int] = []
work: list[tuple[bool, Expr]] = [(False, e)]
while work:
done, f = work.pop()
if done:
b = values.pop()
a = values.pop()
op = f[0]
if op == "+":
values.append((a + b) % MOD)
elif op == "-":
values.append((a - b) % MOD)
elif op == "*":
values.append((a * b) % MOD)
elif op == "<":
values.append(int(a < b))
elif op == "==":
values.append(int(a == b))
else:
raise ValueError(f"unknown operator {op!r}")
elif isinstance(f, int):
values.append(f % MOD)
elif isinstance(f, str):
values.append(view(store[f], side))
else:
work.append((True, f))
work.append((False, f[2]))
work.append((False, f[1]))
return values[0]
def evaluate(e: Expr, store: FStore) -> Value:
"""Return the faceted value of e: its value in each view, joined by make.
Precondition: every variable of e is a key of store.
Cost: O(size of e). Uses an explicit stack, no recursion.
"""
return make(_plain_eval(e, store, "H"), _plain_eval(e, store, "L"))
def initial_store(s: dict[str, int], high: set[str], default: int = 0) -> FStore:
"""Give each variable in high the value <s(x) : default>. Cost: O(size of s)."""
return {x: (make(v % MOD, default % MOD) if x in high else v % MOD) for x, v in s.items()}
def faceted_run(c: Cmd, store: FStore, fuel: int = 10_000) -> Optional[FStore]:
"""Run c once on a faceted store. Return the final store, or None after fuel steps.
A branch on a value whose two views differ runs the taken arm of each
view under the program counter of that view. An assignment under pc
"H" changes only the H view of the target, and under "L" only the L
view.
Precondition: every variable of c is a key of store.
Cost: at most fuel steps; a step costs O(1) plus two plain evaluations
of its expression. The run takes at most the steps of the H view plus
the steps of the L view.
"""
sigma = dict(store)
stack: list[tuple[Cmd, Optional[str]]] = [(c, None)] # @line L1
while stack: # @line L2
fuel -= 1
if fuel < 0:
return None
d, pc = stack.pop() # @line L3
tag = d[0]
if tag == "skip":
continue
if tag == "assign": # @line L4
v = evaluate(d[2], sigma)
old = sigma[d[1]]
if pc is None:
sigma[d[1]] = v # @line L5
elif pc == "H":
sigma[d[1]] = make(view(v, "H"), view(old, "L")) # @line L6
else:
sigma[d[1]] = make(view(old, "H"), view(v, "L")) # @line L7
elif tag == "seq": # @line L8
stack.append((d[2], pc))
stack.append((d[1], pc))
elif tag in ("if", "while"): # @line L9
v = evaluate(d[1], sigma)
th, tl = view(v, "H") != 0, view(v, "L") != 0
if pc is None and th != tl: # @line L10
arms = [("L", tl), ("H", th)] # @line L11
else:
arms = [(pc, tl if pc == "L" else th)] # @line L12
for p, taken in arms:
if tag == "if": # @line L13
stack.append((d[2] if taken else d[3], p))
elif taken: # @line L14
stack.append((d, p))
stack.append((d[2], p))
else:
raise ValueError(f"unknown command {tag!r}")
return sigma # @line L15
test_faceted_execution.py 235 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/faceted-execution/. The authors are listed in prov/5EDZCZ.jsonl.
import itertools
import random
from faceted_execution import (MOD, Facet, evaluate, faceted_run,
initial_store, make, project, view)
VARS = ["h", "l", "m"]
HIGH = {"h"}
DOMAIN = [0, 1, 2]
FUEL = 200
# Independent oracle: a recursive plain interpreter.
class OutOfFuel(Exception):
pass
def o_eval(e, s):
if isinstance(e, int):
return e % MOD
if isinstance(e, str):
return s[e]
a, b = o_eval(e[1], s), o_eval(e[2], s)
return {"+": (a + b) % MOD, "-": (a - b) % MOD, "*": (a * b) % MOD,
"<": int(a < b), "==": int(a == b)}[e[0]]
def o_exec(c, s, fuel):
fuel[0] -= 1
if fuel[0] < 0:
raise OutOfFuel
tag = c[0]
if tag == "assign":
s[c[1]] = o_eval(c[2], s)
elif tag == "seq":
o_exec(c[1], s, fuel)
o_exec(c[2], s, fuel)
elif tag == "if":
o_exec(c[2] if o_eval(c[1], s) else c[3], s, fuel)
elif tag == "while":
if o_eval(c[1], s):
o_exec(c[2], s, fuel)
o_exec(c, s, fuel)
def o_run_steps(c, s, fuel=FUEL):
s = dict(s)
left = [fuel]
try:
o_exec(c, s, left)
except OutOfFuel:
return None, fuel
return s, fuel - left[0]
def o_run(c, s, fuel=FUEL):
return o_run_steps(c, s, fuel)[0]
def stores():
for vals in itertools.product(DOMAIN, repeat=len(VARS)):
yield dict(zip(VARS, vals))
def defaulted(s):
return {x: (0 if x in HIGH else v) for x, v in s.items()}
def low(s):
return tuple(s[x] for x in VARS if x not in HIGH)
def fac(c, s, fuel=2 * FUEL):
return faceted_run(c, initial_store(s, HIGH), fuel)
def faceted_is_tini(c):
seen = {}
for s in stores():
t = fac(c, s)
if t is None:
continue
out = low(project(t, "L"))
if seen.setdefault(low(s), out) != out:
return False
return True
def is_tini_plain(c):
seen = {}
for s in stores():
t = o_run(c, s)
if t is None:
continue
if seen.setdefault(low(s), low(t)) != low(t):
return False
return True
def rand_expr(rng, depth=0):
r = rng.random()
if depth >= 2 or r < 0.35:
return rng.choice(VARS)
if r < 0.5:
return rng.randrange(3)
return (rng.choice(["+", "-", "*", "<", "=="]),
rand_expr(rng, depth + 1), rand_expr(rng, depth + 1))
def rand_cmd(rng, budget):
if budget <= 1:
return ("assign", rng.choice(VARS), rand_expr(rng)), 1
r = rng.random()
if r < 0.35:
return ("assign", rng.choice(VARS), rand_expr(rng)), 1
if r < 0.4:
return ("skip",), 1
if r < 0.65:
c1, n1 = rand_cmd(rng, budget // 2)
c2, n2 = rand_cmd(rng, budget - n1)
return ("seq", c1, c2), n1 + n2
if r < 0.88:
c1, n1 = rand_cmd(rng, (budget - 1) // 2)
c2, n2 = rand_cmd(rng, max(1, budget - 1 - n1))
return ("if", rand_expr(rng), c1, c2), 1 + n1 + n2
c1, n1 = rand_cmd(rng, budget - 1)
return ("while", rand_expr(rng), c1), 1 + n1
def seq(*cs):
out = cs[-1]
for c in reversed(cs[:-1]):
out = ("seq", c, out)
return out
FENTON = seq(("assign", "l", 1), ("assign", "m", 1),
("if", "h", ("assign", "m", 0), ("skip",)),
("if", "m", ("assign", "l", 0), ("skip",)))
def test_worked_example():
t = fac(FENTON, {"h": 1, "l": 5, "m": 5})
assert t == {"h": Facet(1, 0), "l": Facet(1, 0), "m": Facet(0, 1)}
assert project(t, "L") == {"h": 0, "l": 0, "m": 1}
assert project(t, "H") == {"h": 1, "l": 1, "m": 0}
# With h = 0 the two views agree and no facet is made.
assert fac(FENTON, {"h": 0, "l": 5, "m": 5}) == {"h": 0, "l": 0, "m": 1}
assert faceted_is_tini(FENTON)
assert not is_tini_plain(FENTON)
def test_make_view_evaluate():
assert make(3, 3) == 3
assert make(3, 4) == Facet(3, 4)
assert view(Facet(3, 4), "H") == 3 and view(Facet(3, 4), "L") == 4
assert view(7, "L") == 7
assert evaluate(("+", "h", "l"), {"h": Facet(2, 0), "l": 1}) == Facet(3, 1)
assert evaluate(("*", "h", 0), {"h": Facet(2, 0)}) == 0
assert evaluate(("-", 0, 1), {}) == MOD - 1
def test_explicit_flow():
t = fac(("assign", "l", "h"), {"h": 2, "l": 1, "m": 0})
assert t["l"] == Facet(2, 0)
def test_high_loop():
# A loop on h runs only in the H view; the L view sees h = 0.
prog = seq(("assign", "m", 0),
("while", "h", seq(("assign", "h", ("-", "h", 1)),
("assign", "m", ("+", "m", 1)))),
("assign", "l", ("+", "l", 1)))
t = fac(prog, {"h": 2, "l": 4, "m": 9})
assert t == {"h": 0, "l": 5, "m": Facet(2, 0)}
def test_high_divergence_hides_low_view():
# If the H view does not end, the single run does not end, so the
# result is TINI only.
prog = seq(("while", ("==", "h", 1), ("skip",)), ("assign", "l", 1))
assert fac(prog, {"h": 1, "l": 0, "m": 0}) is None
assert fac(prog, {"h": 0, "l": 0, "m": 0}) == {"h": 0, "l": 1, "m": 0}
assert faceted_is_tini(prog)
def test_inputs_unchanged_and_no_high():
store = {"a": 1, "b": 2}
t = faceted_run(("assign", "a", ("+", "a", "b")), store)
assert t == {"a": 3, "b": 2} and store == {"a": 1, "b": 2}
def test_deep_program_no_recursion():
prog = ("assign", "l", 0)
for _ in range(3000):
prog = ("seq", ("assign", "l", ("+", "l", "h")), prog)
t = fac(prog, {"h": 1, "l": 0, "m": 0}, fuel=100_000)
assert t["l"] == 0
def test_random_projection_tini_transparency():
rng = random.Random(2012)
tini_programs = 0
for _ in range(500):
prog, _n = rand_cmd(rng, rng.randint(1, 10))
plain = {}
for s in stores():
plain[tuple(s.values())] = o_run_steps(prog, s, 2 * FUEL)
seen = {}
tini = True
for s in stores():
th, _k = plain[tuple(s.values())]
if th is not None and seen.setdefault(low(s), low(th)) != low(th):
tini = False
tini_programs += tini
seen = {}
for s in stores():
th, kh = plain[tuple(s.values())]
tl, kl = plain[tuple(defaulted(s).values())]
t = fac(prog, s)
if t is None:
# The single run takes at most the steps of both views.
assert th is None or tl is None or kh + kl > 2 * FUEL
continue
assert project(t, "H") == th, (prog, s)
assert project(t, "L") == tl, (prog, s)
out = low(project(t, "L"))
assert seen.setdefault(low(s), out) == out, (prog, s)
if tini:
assert out == low(th), (prog, s)
assert tini_programs >= 100
History
Austin and Flanagan (2009) had shown that the purely dynamic no-sensitive-upgrade monitor gives TINI, at the price of stops on secure programs. Devriese and Piessens (2010) avoided the stops with secure multi-execution, at the price of one run per level. Austin and Flanagan (2012) combined the two ideas: faceted values simulate the runs of all levels in one run and split only where the runs differ, and the projection theorem shows that each view is a plain run. Bielova and Rezk (2016) compared faceted execution and secure multi-execution in detail.
References
- Thomas H. Austin and Cormac Flanagan, Multiple facets for dynamic information flow, Proceedings of the 39th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL 2012), pp. 165 to 178, faceted values, the semantics of branches and assignments under a program counter of branches, the projection theorem and termination-insensitive noninterference
- Nataliia Bielova and Tamara Rezk, Spot the difference, secure multi-execution and multiple facets, ESORICS 2016, LNCS 9878, pp. 501 to 519, the comparison of faceted execution with secure multi-execution
- Dominique Devriese and Frank Piessens, Noninterference through secure multi-execution, Proceedings of the 2010 IEEE Symposium on Security and Privacy, pp. 109 to 124, the method that faceted execution simulates in one run
- Thomas H. Austin and Cormac Flanagan, Efficient purely-dynamic information flow analysis, Proceedings of the 4th ACM SIGPLAN Workshop on Programming Languages and Analysis for Security (PLAS 2009), pp. 113 to 124, the no-sensitive-upgrade monitor that faceted execution makes more permissive
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 | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 5EDZCZ Edit this page History Report an error Markdown