arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1811.08234cs.CR
收藏

数据库支持应用程序中的上下文和粒度策略实施

Contextual and Granular Policy Enforcement in Database-backed Applications

Abhishek Bichhawat, Matt Fredrikson, Jean Yang, Akash Trehan

摘要:

由于传统的数据库访问控制机制无法执行复杂的策略,因此数据库支持的应用程序依赖于内联策略检查以符合策略的方式处理用户的私有和机密数据。然而,由于错过检查而导致的应用程序错误在此类应用程序中很常见,这会导致数据泄露。虽然将策略与代码分离是一种自然的解决方案,但许多数据保护策略根据访问数据的上下文以及如何使用数据来指定限制。自动实施这些限制带来了巨大的挑战,因为确定上下文所需的信息要求策略实施和应用程序实现之间的紧密耦合。我们提出Estrela,一个框架,用于执行上下文和粒度数据访问策略。在大多数数据库支持的应用程序中,API端点可以与显着的上下文信息相关联,Estrela允许开发人员指定对数据访问和使用的API特定限制。Estrela提供了策略规范和应用程序实现之间的清晰分离,这有助于更轻松地审核和维护策略。Estrela中的策略由预评估和后评估条件组成,分别提供了在查询发出之前调整数据库访问的手段,以及在查询评估之后对信息发布施加更细粒度的约束。我们构建了一个Estrela的原型,并将其应用于改造几个现实世界的应用程序(从1000- 80 k位),以执行不同的上下文策略。我们的评估表明,Estrela可以以最小的开销执行策略。

英文摘要:

Database-backed applications rely on inlined policy checks to process users' private and confidential data in a policy-compliant manner as traditional database access control mechanisms cannot enforce complex policies. However, application bugs due to missed checks are common in such applications, which result in data breaches. While separating policy from code is a natural solution, many data protection policies specify restrictions based on the context in which data is accessed and how the data is used. Enforcing these restrictions automatically presents significant challenges, as the information needed to determine context requires a tight coupling between policy enforcement and an application's implementation. We present Estrela, a framework for enforcing contextual and granular data access policies. Working from the observation that API endpoints can be associated with salient contextual information in most database-backed applications, Estrela allows developers to specify API-specific restrictions on data access and use. Estrela provides a clean separation between policy specification and the application's implementation, which facilitates easier auditing and maintenance of policies. Policies in Estrela consist of pre-evaluation and post-evaluation conditions, which provide the means to modulate database access before a query is issued, and to impose finer-grained constraints on information release after the evaluation of query, respectively. We build a prototype of Estrela and apply it to retrofit several real world applications (from 1000-80k LOC) to enforce different contextual policies. Our evaluation shows that Estrela can enforce policies with minimal overheads.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑