Glossary
New
This glossary gives short definitions. The How ALVIE Works page explains how the terms fit together.
The tool
Section titled “The tool”- ALVIE: The framework. It learns models of a system and compares them to find information leaks.
- ALVIE/Sancus: The plugin of ALVIE for the Sancus processor.
- alvie-ui: A graphical interface for ALVIE. It is a separate project.
- ALVIE in the browser: ALVIE compiled to WebAssembly, with the simulators of Sancus, in VS Code for the Web: tutorials and a session with the files of the experiments, with nothing to install. See ALVIE in Your Browser.
- System under learning (SUL): The system that ALVIE tests. In ALVIE/Sancus, it is a simulation of the Sancus processor.
- ALVIE/Core: The part of ALVIE that does not depend on a platform: learning, input generation, comparison, and the spec language.
- Plugin: What connects ALVIE/Core to a platform: YAML files that declare the platform’s sections, atoms, observations, phase rules and attacker view, and a backend that runs inputs on it. See the Plugin Files Reference.
- Atom class: The set of atoms that the inputs of a section can be, for example the attacker’s actions or the enclave’s instructions.
- Attacker view: What the attacker sees of each observation, declared in the plugin’s
view.yaml. - Backend: The part of a plugin that runs the inputs on the platform and reports what it observes. A native backend is OCaml, linked with Core; an external one is a program that speaks the protocol of Core.
- Tiny: The reference platform of ALVIE/Core (
plugins/tiny): a small processor with two planted timing leaks, whose models learn in a fraction of a second.plugins/tiny-pyis the same platform as an external plugin in Python. - Variant: A version of the system that a backend can run instead, declared in the manifest:
no-interruptsis the baseline without interrupts. - Conformance: Whether a backend keeps the contract of Core (determinism, reset, restore, clone, and the rest), checked on random tests of a spec by the
conformancecommand. - Fixture: A spec of a plugin with the verdict of noninterference it must give: a planted leak, a safe spec, or a known attack. The
fixturescommand checks them.
Learning
Section titled “Learning”- Mealy machine: A state machine with an input and an output on every transition. ALVIE writes each learned model as a Mealy machine.
- L#: The learning algorithm that ALVIE uses. It builds a Mealy machine with queries.
- Output query: A question that sends one sequence of inputs to the SUL and records the outputs.
- Equivalence query: A question to the oracle: “Does the model match the SUL?” The oracle answers “yes” or gives an input where they differ.
- Oracle: The part that answers equivalence queries.
ALVIE has the oracles
randomwalk,pac, andexhaustive. - Random walk: An oracle that follows random paths, up to
--step-limitsteps. - PAC: Probably Approximately Correct. An oracle that samples many random paths and gives a probability bound.
- ε (epsilon): The error bound of the PAC oracle (
--epsilon). A smaller value gives a more accurate model. - δ (delta): The confidence bound of the PAC oracle (
--delta). A smaller value gives a lower chance that the bound fails. - Exhaustive oracle: An oracle that tries all input sequences, level by level.
- Observation tree: The data that the learner collects from the SUL. L# builds the model from it.
- Namespace: The name of an output directory.
The wrapper scripts use it in
results/,logs/,tmp/, andcounterexamples/.
Specifications
Section titled “Specifications”- TestDL: The language of the specification files. It describes sets of actions with sequence, choice, and repetition.
- Attacker specification (
.atdl): A file with the sectionsisr,prepare, andcleanup. It describes what the attacker can do. - Enclave specification (
.etdl): A file with the sectionenclave. It describes what the victim program can do. - Action: One element of a specification.
Examples:
create,jin enc_s,timer_enable 3,ifz. - Input: An action that ALVIE sends to the SUL.
- Secret: The value that the enclave must protect.
The enclave specification writes it as
?. The option--secretsets it. - Fast specification: A version of an attacker specification in
spec-lib/fast/. It uses one timer value, so learning is faster.
Sancus and the processor
Section titled “Sancus and the processor”- Sancus: A security architecture for small devices. It protects code and data in enclaves.
- openMSP430: The open-source processor core that Sancus extends.
- Enclave: A protected region of code and data. Code outside the enclave cannot read it.
- Protected mode (PM): The processor state while it runs enclave code.
- Unprotected mode (UM): The processor state while it runs code outside the enclave.
- Interrupt: A signal that stops the current code so that a handler can run. Here, a timer causes it.
- Interrupt service routine (ISR): The attacker code that runs when an interrupt occurs.
reti: The instruction that returns from an interrupt.GIE: The global interrupt enable bit. Interrupts are possible only when it is set.timer_enable n: An attacker action that sets a timer interrupt afternticks.- Timer A: The hardware timer that the attacker can read.
The output field
timerA_countershows its value. - Commit: A version of the Sancus processor.
The option
--commitselects it. The Attack Catalogue lists the important ones.
Security terms
Section titled “Security terms”- Side channel: A way to learn a secret from public effects, for example the execution time.
- Noninterference: The property that the attacker sees no difference when only the secret changes.
- Basic attacker: An attacker that creates and starts the enclave and observes the result, but does not use interrupts.
- Interrupt attacker: An attacker that also uses timer interrupts. It is stronger than the basic attacker.
- Interrupt-enabled model (
int): A model that is learned with interrupts as the specification allows. - No-interrupt model (
nint): A model that is learned with--ignore-interrupts. It is the baseline for the comparison. - Witness: A graph of traces that give different outputs for the two secrets.
- FA violation: One distinguishing trace that
fa.exefinds. The comparison reports the number of them. “FA” means flow analysis. - Implementation-model mismatch: A case where the real processor behaves in another way than its formal model. B1 to B7 are mismatches.
Output fields
Section titled “Output fields”k: The number of clock cycles of a step.gie: The state of the global interrupt enable bit after the step.umem_val: The value of the observed unprotected memory cell.reg_val: The value of registerr4, reduced to 3 bits.timerA_counter: The value of Timer A.mode:PMorUMat the end of the step.
The symbols in the live output (t, o, i, †, •, and others) are in the Log and Output Reference.
learn.exe: Learns one model.fa.exe: Compares learned models and writes a witness.exec.exe: Replays one input sequence.pbt.exe: Runs a random test for reset behavior. It does not learn a model.- mCRL2: The model checker that
alvie property formulauses. ALVIE used it to compare models too;ALVIE_MCRL2=1still does. - Graphviz (
dot): The tool that draws.dotfiles as PDF or image files.