Database Query Guard Conditions for Context-Aware Data Protection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing software security models for protecting data in database systems are unreliable due to scattered security logic and limited contextual awareness, making them prone to errors and unauthorized data access.

Innovation Solution

Implementing a three-layer security model with a data protection component between the application and database components, managed by data security specialists, to enforce consistent data access policies across software stacks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If security logic is implemented in the application component or database component, then data protection is provided, but the security model becomes unreliable and limiting due to scattered security logic and limited contextual awareness

Engineering Contradiction:
Improvesecurity model reliabilityVSAvoidsecurity logic distribution
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces a data protection component as an intermediary layer between the application component and database component. This mediator collects contextual information from both sides, evaluates data access requests against security policies, and enforces access controls. By positioning security logic in this intermediate layer rather than scattering it across application and database components, the system achieves more reliable and consistent security enforcement with broader contextual awareness.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If a data protection component is added between application and database components, then data protection and contextual enforcement are improved, but system complexity increases

Engineering Contradiction:
Improvedata protectionVSAvoidsystem architecture
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the system into three distinct layers: application component, data protection component, and database component. The data protection component is further segmented into modules for contextual information collection, policy evaluation, and access control enforcement. This segmentation allows each component to have a specific, well-defined responsibility, making the overall system more manageable despite the added layer. The modular structure enables independent development, testing, and maintenance of each segment.

Inventive Principle:
Principle #1Segmentation

3Ease of operation

If security logic is embedded in the application component, then data access control is implemented, but coding errors may expose data to unauthorized users and testing may not catch all errors

Engineering Contradiction:
Improvedata access controlVSAvoidunauthorized access prevention
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent extracts security logic from the application component and relocates it to the data protection component. This extraction removes the burden of implementing and maintaining security logic from application developers, reducing the risk of coding errors. The data protection component, managed by data security specialists, provides centralized and consistent security enforcement that is less prone to implementation errors and can be more thoroughly tested and validated.

Inventive Principle:
Principle #2Taking out (Extraction)

4Reliability

If the database component limits data retrieval based on user context, then data protection is improved, but the database component cannot access specific user information

Engineering Contradiction:
Improvedata retrieval protectionVSAvoiduser contextual information
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The data protection component acts as an intermediary that receives contextual information from the application component (such as user identity, roles, and permissions) and translates it into database access controls. The database component executes queries without needing direct access to user contextual information, while the data protection component ensures that only authorized data is retrieved based on the collected context. This intermediary approach allows the database to remain context-agnostic while still enforcing user-specific access controls.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12536318B2Dynamically inserting guard conditions into a database query to protect privacy and confidentiality and prevent data leak
Publication Date: 2026.01.27 NEXTLABS INC
  • US12536318B2 patent drawing
  • US12536318B2 patent drawing
  • US12536318B2 patent drawing

AI summary

A method and system of masking, redacting, filtering, and encrypting data retrieved from or stored into a database using policies in an information management system. The system comprises application, data protection, and database components. A data protection component is placed between an application component and a database component to provide protection to data in a database by applying data access policies to requests sent from the application component to the database component.