Enclave Database Logical Logging Under TEE Memory Limits

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 enclave memory constraints and high input/output costs, leading to suboptimal performance 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) memory, using logical log encoding and generation to ensure data privacy and security, and employing Remote Attestation-Transport Layer Security (RA-TLS) for network transmission.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the entire DBMS is moved into the TEE to achieve fully hardware encryption, then data security is improved, but TEE memory limitations prevent complete implementation

Engineering Contradiction:
Improvedata securityVSAvoidTEE memory capacity
Core Design Contradiction:
ReliabilityVSVolume of stationary object

Solution Approach 1:

The system segments the database components into two parts: critical components (DBMS engine, data structures, redo logs) are placed inside the TEE enclave for security, while non-critical components remain outside. This segmentation allows the system to achieve security for sensitive operations without requiring the entire system to fit within limited TEE memory.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary encoding mechanism for logical logs that operates at the boundary between the TEE enclave and external storage. This intermediary layer encrypts and encodes data before it leaves the secure enclave, allowing external storage to be used without compromising security.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If client-side cryptography is used for privacy protection, then data security is improved, but system complexity and performance overhead increase

Engineering Contradiction:
Improveprivacy protectionVSAvoidcryptography system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the cryptography functionality from the client side and relocates it entirely within the TEE enclave. By taking out the cryptographic operations from the external environment and confining them to the secure hardware boundary, the system eliminates the need for complex client-side key management and cryptographic protocols while maintaining strong security.

Inventive Principle:
Principle #2Taking out (Extraction)

3Ease of operation

If redo logs are processed in the conventional P-HE architecture, then operational functionality is maintained, but data leakage vulnerabilities persist

Engineering Contradiction:
Improvedatabase operation functionalityVSAvoiddata leakage risk
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The patent applies different quality treatments to different parts of the logging system. Redo logs and critical data structures receive full hardware-based encryption and TEE protection, while other less sensitive operations can use conventional logging mechanisms. This local quality differentiation ensures security for critical operations without unnecessarily complicating the entire system.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS12626002B2Logical log generation in enclave database
Publication Date: 2026.05.12 BEIJING VOLCANO ENGINE TECH CO LTD
  • US12626002B2 patent drawing
  • US12626002B2 patent drawing
  • US12626002B2 patent drawing

AI summary

A database management system (DBMS) in an enclave for a data privacy preservation database is provided. The system comprising a DBMS engine configured to parse a database command for execution, set an access control status to a first status for a field of the data privacy preservation database when the parsed database command includes the field corresponding to a record in a system catalog table, and log the database command into a logical log. When the access control status is set to the first status and the database command includes a content of the field, the DBMS engine is further configured to log a predetermined identifier, an identification of the field, and a length of the content immediately before the content in the logical log.