Affiliation:
1. University of Maryland, USA
2. IMDEA Software Institute, Spain
Abstract
This paper presents LWeb, a framework for enforcing label-based, information flow policies in database-using web applications. In a nutshell, LWeb marries the LIO Haskell IFC enforcement library with the Yesod web programming framework. The implementation has two parts. First, we extract the core of LIO into a monad transformer (LMonad) and then apply it to Yesod’s core monad. Second, we extend Yesod’s table definition DSL and query functionality to permit defining and enforcing label-based policies on tables and enforcing them during query processing. LWeb’s policy language is expressive, permitting dynamic per-table and per-row policies. We formalize the essence of LWeb in the λ
LWeb
calculus and mechanize the proof of noninterference in Liquid Haskell. This mechanization constitutes the first metatheoretic proof carried out in Liquid Haskell. We also used LWeb to build a substantial web site hosting the Build it, Break it, Fix it security-oriented programming contest. The site involves 40 data tables and sophisticated policies. Compared to manually checking security policies, LWeb imposes a modest runtime overhead of between 2% to 21%. It reduces the trusted code base from the whole application to just 1% of the application code, and 21% of the code overall (when counting LWeb too).
Funder
Defense Advanced Research Projects Agency
National Science Foundation
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Cited by
23 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Majority voting of doctors improves appropriateness of AI reliance in pathology;International Journal of Human-Computer Studies;2024-10
2. Mechanizing Refinement Types;Proceedings of the ACM on Programming Languages;2024-01-05
3. A Qualitative Study of REST API Design and Specification Practices;2023 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC);2023-10-03
4. The Effects of Inaccurate Decision-Support Systems on Structured Shared Decision-Making for Human-Robot Teams;2023 32nd IEEE International Conference on Robot and Human Interactive Communication (RO-MAN);2023-08-28
5. Towards a Science of Human-AI Decision Making: An Overview of Design Space in Empirical Human-Subject Studies;2023 ACM Conference on Fairness, Accountability, and Transparency;2023-06-12