[Paper Review] Verity: Blockchains to Detect Insider Attacks in DBMS
Verity is a novel blockchain-based framework that detects insider attacks in SQL database management systems by storing cryptographic fingerprints of database tuples on a blockchain, enabling real-time integrity verification of query results without data migration. It ensures tamper detection through lightweight, per-tuple blockchain checks that scale linearly with query complexity.
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.
Motivation & Objective
- To address the growing threat of insider attacks in database management systems, where privileged users tamper with data and logs undetected.
- To provide a solution that detects data tampering in real time, even when attackers have administrative privileges.
- To enable integration of any SQL DBMS with any blockchain network without requiring data migration or changing the SQL query interface.
- To maintain data privacy by storing only metadata (fingerprints) in the blockchain, not actual data.
- To ensure non-repudiation and traceability of data modifications through blockchain immutability.
Proposed method
- Verity intercepts SQL queries and their results using a middleware layer that parses the query and identifies affected tuples.
- It computes cryptographic fingerprints (e.g., SHA-256) of the tuples involved in each query, especially for SELECT, UPDATE, DELETE, and INSERT operations.
- These fingerprints are stored on a permissioned blockchain (Hyperledger Fabric) during system bootstrapping and updated upon data modifications.
- For each query result, Verity verifies the current fingerprint against the stored one on the blockchain to detect any unauthorized changes.
- The framework supports complex SQL operations, including nested subqueries and joins, by analyzing the query tree and extracting relevant tuple references.
- It uses the Composer REST API to expose blockchain interactions and enables integration with existing DBMSs via standard SQL interfaces.
Experimental results
Research questions
- RQ1Can a blockchain-based system detect insider tampering in a DBMS even when the attacker has administrative privileges and can modify logs?
- RQ2How can a system verify the integrity of query results without storing the actual data on the blockchain?
- RQ3What is the performance overhead of integrity checking using blockchain for varying SQL query complexity and database sizes?
- RQ4Can the solution be integrated with any existing SQL DBMS without requiring data migration or changes to the query language?
- RQ5How does the system handle updates, deletions, and complex joins while maintaining consistency and traceability?
Key findings
- Verity achieves constant overhead per tuple in integrity checking, regardless of query complexity, with total overhead scaling linearly with the number of tuples in the result set.
- The system successfully detects data tampering in real time when modified tuples are accessed in subsequent queries, even after attackers alter logs and audit trails.
- Experiments using TPC-H benchmark data and diverse SQL queries confirm that the framework maintains low and predictable performance overhead suitable for critical applications.
- The framework supports complex SQL operations, including nested SELECTs and multi-table joins, without requiring changes to the underlying DBMS or query language.
- Verity preserves data privacy by storing only cryptographic fingerprints on the blockchain, not the actual data or metadata.
- The solution is deployable in real-world systems like academic grade management, where data integrity is critical and moderate latency is acceptable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.