[Paper Review] Translation Validation for Security Properties
This paper proposes Secure Translation Validation (STV), a runtime method to verify that a compiler preserves security properties—specifically robustly safe compilation (RSC)—by statically analyzing the behavior of compiled programs in potentially malicious contexts. Using history expressions to over-approximate program traces, STV checks whether every observable trace of the compiled program has a corresponding trace in the source program, ensuring security properties like confidentiality are preserved even under adversarial contexts.
Secure compilation aims to build compilation chains that preserve security properties when translating programs from a source to a target language. Recent research led to the definition of secure compilation principles that, if met, guarantee that the compilation chain in hand never violates specific families of security properties. Still, to the best of our knowledge, no effective procedure is available to check if a compilation chain meets such requirements. Here, we outline our ongoing research inspired by translation validation, to effectively check one of those principles.
Motivation & Objective
- To address the lack of effective runtime verification for secure compilation properties.
- To enable automatic validation of whether a compiler preserves security properties like confidentiality and integrity.
- To provide a practical, scalable method for checking secure compilation that operates at load time rather than requiring full static proofs.
- To extend translation validation techniques to hyperproperties relevant to security, particularly robustly safe compilation (RSC).
Proposed method
- Uses history expressions—finite-state processes from basic process algebra—to over-approximate the observable behavior of compiled programs.
- Applies static analysis at load time to compute history expressions for the compiled program in a given context.
- Compares the set of prefixes of traces from the compiled program (HT) with those from source-level contexts (HS) to verify RSC.
- Employs a decidable equational theory over history expressions to check trace inclusion and equivalence.
- Validates security by checking if every trace prefix in the compiled program has a corresponding trace prefix in a source-level context.
- Handles both secure compilation and program optimizations by preserving trace semantics under transformation.
Experimental results
Research questions
- RQ1Can we automatically verify that a compiler preserves security properties like confidentiality when executing in an adversarial context?
- RQ2How can we effectively check robustly safe compilation (RSC) for a single program at load time without universal quantification over all programs and contexts?
- RQ3To what extent can history expressions over-approximate program behavior while still enabling sound and decidable verification of security properties?
- RQ4Can STV be extended to verify safety hyperproperties beyond RSC in a scalable and practical way?
- RQ5How does STV handle program optimizations that restructure control flow while preserving observable I/O behavior?
Key findings
- STV successfully detects when a compiler violates security properties, such as when a program sends data over the network in an evil context, by identifying unmatched trace prefixes.
- The method correctly preserves security for benign contexts, as demonstrated when a non-evil context results in trace prefixes that have counterparts in the source program.
- History expressions allow for decidable verification of trace inclusion, enabling effective and automated checking of RSC at load time.
- The approach handles compiler optimizations correctly, such as factoring out common I/O actions, by preserving trace semantics in the history expression representation.
- False negatives may occur due to over-approximation, but the method remains sound and practical for real-world compilation chains.
- The framework is extensible and can be adapted to verify other families of security hyperproperties beyond RSC.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.