Skip to main content
QUICK REVIEW

[论文解读] Verity: Blockchains to Detect Insider Attacks in DBMS

Shubham Sahai, Medha Atre|arXiv (Cornell University)|Jan 2, 2019
Security and Verification in ComputingComputer Science参考文献 28被引用 3
一句话总结

Verity 是一种基于区块链的新型框架,通过在区块链上存储数据库元组的加密指纹,检测关系型数据库管理系统中的内部攻击,实现实时查询结果完整性验证,且无需数据迁移。它通过轻量级、基于元组的区块链检查实现防篡改检测,检测开销与查询复杂度呈线性关系。

ABSTRACT

Integrity and security of the data in database systems are typically maintained with access control policies and firewalls. However, insider attacks -- where someone with an intimate knowledge of the system and administrative privileges tampers with the data -- pose a unique challenge. Measures like append only logging prove to be insufficient because an attacker with administrative privileges can alter logs and login records to eliminate the trace of attack, thus making insider attacks hard to detect. In this paper, we propose Verity -- first of a kind system to the best of our knowledge. Verity serves as a dataless framework by which any blockchain network can be used to store fixed-length metadata about tuples from any SQL database, without complete migration of the database. Verity uses a formalism for parsing SQL queries and query results to check the respective tuples' integrity using blockchains to detect insider attacks. We have implemented our technique using Hyperledger Fabric, Composer REST API, and SQLite database. Using TPC-H data and SQL queries of varying complexity and types, our experiments demonstrate that any overhead of integrity checking remains constant per tuple in a query's results, and scales linearly.

研究动机与目标

  • 为应对数据库管理系统中日益增长的内部攻击威胁,即特权用户在未被察觉的情况下篡改数据和日志。
  • 提供一种实时检测数据篡改的解决方案,即使攻击者拥有管理权限也能有效检测。
  • 实现任何 SQL 数据库管理系统与任何区块链网络的集成,无需数据迁移或修改 SQL 查询接口。
  • 通过仅在区块链中存储元数据(指纹)而非实际数据,保障数据隐私。
  • 通过区块链的不可篡改性,确保数据修改的不可否认性和可追溯性。

提出的方法

  • Verity 通过中间件层拦截 SQL 查询及其结果,该层解析查询并识别受影响的元组。
  • 对每个查询涉及的元组计算加密指纹(例如 SHA-256),尤其针对 SELECT、UPDATE、DELETE 和 INSERT 操作。
  • 在系统启动时将这些指纹存储在许可制区块链(Hyperledger Fabric)上,并在数据修改时更新。
  • 对于每个查询结果,Verity 将当前指纹与区块链上存储的指纹进行比对,以检测任何未经授权的更改。
  • 通过分析查询树并提取相关元组引用,支持复杂 SQL 操作,包括嵌套子查询和连接操作。
  • 使用 Composer REST API 暴露区块链交互功能,并通过标准 SQL 接口实现与现有 DBMS 的集成。

实验结果

研究问题

  • RQ1即使攻击者拥有管理权限并能修改日志,基于区块链的系统是否仍能检测 DBMS 中的内部篡改?
  • RQ2系统如何在不将实际数据存储于区块链的情况下验证查询结果的完整性?
  • RQ3使用区块链进行完整性检查时,不同 SQL 查询复杂度和数据库规模下的性能开销如何?
  • RQ4该解决方案是否可与任何现有 SQL DBMS 集成,而无需数据迁移或修改查询语言?
  • RQ5系统在处理更新、删除和复杂连接操作时,如何保持一致性与可追溯性?

主要发现

  • Verity 在完整性检查中对每个元组的开销恒定,与查询复杂度无关,总开销随结果集中元组数量线性增长。
  • 当攻击者修改日志和审计轨迹后,系统仍能实时检测到被篡改元组在后续查询中被访问时的数据篡改。
  • 使用 TPC-H 基准数据和多样化 SQL 查询的实验表明,该框架保持了低且可预测的性能开销,适用于关键应用。
  • 该框架支持复杂 SQL 操作,包括嵌套 SELECT 和多表连接,且无需修改底层 DBMS 或查询语言。
  • Verity 通过仅在区块链上存储加密指纹而非实际数据或元数据,保障了数据隐私。
  • 该解决方案可部署于现实世界系统(如学术成绩管理),在数据完整性至关重要的场景中适用,且可接受适度延迟。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。