LWeb:面向多层Web应用的信息流安全
LWeb: Information Flow Security for Multi-tier Web Applications
摘要:
本文介绍了LWeb,一个框架,用于执行基于标签的,信息流的数据库使用Web应用程序的政策。简而言之,LWeb将LIO Haskell IFC执行库与Yesod Web编程框架结合在一起。该实施包括两个部分。首先,我们提取LIO的核心到一个单子Transformer(LMonad),然后将其应用到Yesod的核心单子。其次,我们扩展了Yesod的表定义DSL和查询功能,以允许在表上定义和执行基于标签的策略,并在查询处理过程中执行这些策略。LWeb的策略语言是表达性的,允许动态的逐表和逐行策略。我们在$λ_{LWeb}$演算中形式化了LWeb的本质,并在Liquid Haskell中机械化了非干涉性的证明。这种机械化构成了Liquid Haskell中进行的第一个元理论证明。我们还使用LWeb构建了一个大型网站,举办Build it,Break it,Fix it面向安全的编程竞赛。该网站涉及40个数据表和复杂的政策。与手动检查安全策略相比,LWeb的运行时开销在2%到21%之间。它将整个应用程序的可信代码库减少到仅占应用程序代码的1%,占整个代码的21%(也包括LWeb)。
英文摘要:
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).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。