Enclave Database Statistics Visibility for Privacy-Aware Query Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional hardware-enabled encrypted database (H-EDB) systems face limitations in achieving fully hardware encrypted (F-HE) architectures due to trusted execution environment (TEE) memory constraints, leading to performance issues with input/output costs and data security vulnerabilities.

Innovation Solution

Implementing a fully hardware encrypted (F-HE) database system by residing the entire Database Management System (DBMS) within a Trusted Execution Environment (TEE), providing security and privacy through encryption and masking of database statistics, and controlling visibility based on user-defined security levels.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If a partially hardware encrypted (P-HE) architecture is used with enclave memory constraints, then the database system can operate with limited TEE resources, but I/O performance deteriorates significantly due to frequent encryption/decryption operations between enclave and DBMS

Engineering Contradiction:
ImproveTEE memory capacityVSAvoidI/O performance
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The database system is segmented into two parts: the DBMS layer outside the enclave that handles I/O operations and query processing, and the enclave layer that provides cryptographic functions. This segmentation allows the DBMS to operate with full I/O performance while the enclave only performs encrypted operations on data already in plaintext form, eliminating the I/O performance penalty of frequent encryption/decryption.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary mechanism where the DBMS maintains plaintext copies of data in its buffer pools and only sends encrypted data to the enclave when necessary. The enclave acts as an intermediary that verifies integrity and provides cryptographic operations without forcing the entire DBMS into the enclave, thus maintaining I/O performance while providing security.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If client-side cryptography is used to protect database statistics, then data security is improved, but system complexity increases due to additional cryptographic operations and key management

Engineering Contradiction:
Improvedata securityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the cryptographic complexity from the client-side and relocates it to the enclave. The DBMS and client applications can access statistics in plaintext without managing cryptographic keys, while the enclave independently manages encryption/decryption of statistics data. This extraction reduces system complexity at the client level while maintaining security through enclave-based cryptography.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If the entire DBMS is migrated into the TEE to achieve fully hardware encrypted (F-HE) architecture, then data security is enhanced by preventing data leaks in memory and processor, but TEE memory constraints prevent practical implementation

Engineering Contradiction:
Improvedata securityVSAvoidTEE memory capacity
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The architecture segments the DBMS into components that remain outside the enclave (I/O handlers, query optimizers, buffer pools) and components that interact with the enclave (statistics management, sensitive data processing). This segmentation allows the system to achieve F-HE security for critical data while keeping the bulk of the DBMS outside the enclave to avoid TEE memory constraints.

Inventive Principle:
Principle #1Segmentation

4Productivity

If database statistics are made visible for query optimization, then query performance is improved, but data privacy is compromised as statistics may leak sensitive information about database contents

Engineering Contradiction:
Improvequery performanceVSAvoiddata privacy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies local quality by implementing different visibility levels for different statistics. Frequently accessed statistics that are less sensitive to privacy leaks are made fully visible for query optimization, while statistics containing sensitive information are restricted to authorized users only. The enclave enforces these local quality differences through fine-grained access control, allowing query optimization where safe while protecting privacy where needed.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS12488128B2Statistics visibility control in enclave database
Publication Date: 2025.12.02 DOUYIN VISION CO LTD
  • US12488128B2 patent drawing
  • US12488128B2 patent drawing
  • US12488128B2 patent drawing

AI summary

A database management system provided in a trusted execution environment controls the visibility of a requested statistic for a database table column based on the source of the request. The visibility control is based on a visibility level of the database table column to the source of the request. The visibility of the provided statistic can further be based on a security level of the database table column even if the source of the request is not a permitted viewer. The statistic can include frequency or histogram data for the database table column.