TL;DR
This paper introduces a novel framework for implementing dynamic Information Flow Control (IFC) in programming languages. By treating IFC as a coarse-grained, multi-task system, they provide a theoretical foundation that can be applied to existing languages without modifying their core semantics, enabling secure integration of untrusted components.
What Problem Does This Paper Address?
In modern software development, especially in web applications, there's a growing need to integrate code from various sources, including browser extensions, third-party libraries, and mashups. This creates significant security challenges, particularly in preventing sensitive data from leaking to untrusted components. Existing fine-grained IFC approaches often require deep modifications to language semantics and engines, which is impractical for web environments. The paper addresses this by proposing a coarse-grained dynamic IFC approach that can be retrofitted onto existing languages, offering a more practical solution for securing complex systems.
Methods
The core of the paper is a formal framework for coarse-grained dynamic IFC. This framework is built around the concept of "tasks," which are isolated computational units, each with its own security label. Communication between these tasks is monitored and controlled based on their labels. The authors formalize this using a lambda calculus with mutable references and recursion, and then demonstrate how to embed this IFC language into a target language. Key techniques include:
- Multi-task Isolation: The system is designed as a collection of isolated tasks, each with its own state and label. This isolation is the primary mechanism for enforcing security.
- Coarse-Grained Labeling: Instead of labeling individual data items, entire tasks are assigned labels. This simplifies the system and reduces overhead.
- Language Embedding: The IFC language is formally embedded into a target language (like a lambda calculus representing JavaScript). This embedding defines how IFC primitives interact with the target language's constructs.
- Operational Semantics: The paper uses operational semantics to define the behavior of the combined IFC and target language, allowing for formal proofs of security properties.
- Isomorphism and Restrictions: To bridge the gap between the abstract formal model and more efficient concrete implementations (e.g., using a single heap), the paper introduces the concept of isomorphisms and restricted IFC languages. This allows for optimizations while preserving security guarantees.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- Coarse-grained IFC as a Retrofit: The paper's central insight is that coarse-grained IFC, implemented through task isolation, is a practical way to retrofit existing languages without altering their core semantics. This is crucial for environments like web browsers where language modification is difficult.
- Task Isolation as the Foundation: By treating tasks as the primary units of isolation and security, the system can achieve non-interference guarantees without needing to track individual data flows.
- Isomorphism for Efficiency: The concept of isomorphism between abstract and concrete semantics is a powerful tool for reasoning about the security of optimized implementations. It allows for the use of more efficient structures (like a single heap) while still proving that the system behaves like the more secure, but less efficient, abstract model.
- Formalizing Security Guarantees: The paper provides formal definitions for non-interference (Termination Sensitive Non-Interference - TSNI and Termination Insensitive Non-Interference - TINI) and proves that their system satisfies these properties under specific scheduling policies.
Key Results
- The paper presents a formal framework for coarse-grained dynamic IFC that can be applied to various programming languages.
- They prove that their IFC language, when combined with a round-robin scheduler, satisfies Termination Sensitive Non-Interference (TSNI).
- They also show that with a sequential scheduler, the system satisfies Termination Insensitive Non-Interference (TINI).
- The paper outlines how this framework can be applied to real-world languages like JavaScript (for both Node.js and client-side) and C, and how it has influenced an existing IFC system for Haskell.
Limitations and Future Work
- External Effects: The paper acknowledges that modeling external effects (like network requests or DOM manipulation) is a significant challenge. While they discuss how these can be handled (e.g., through trusted intermediaries or labeled communication), a fully general formalization is left as future work.
- Privileges: The paper mentions that extending IFC with privileges for declassification is an open research problem, though their Node.js and COWL implementations do provide this functionality.
- C Implementation: While the paper proposes an IFC system for C using hardware isolation, a full implementation is left for future work.
- Resource Limits: The authors suggest that extending their framework to handle resource limits is a possible future direction.
Summary updated