Attribute-Based Anomaly Detection in Relational Database Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Relational database security is compromised due to the inability of existing systems to effectively detect and respond to anomalous SQL queries that deviate from common or legitimate access patterns, posing a risk to sensitive information.

Innovation Solution

A system that performs attribute-based anomaly detection in relational database queries by comparing given queries to a set of non-anomalous queries, using semantic attributes and additional attributes to calculate similarities and determine if the query meets a similarity threshold, thereby identifying and flagging anomalous queries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If existing SQL query systems are used without anomaly detection, then ease of operation is maintained, but security reliability deteriorates due to inability to detect anomalous queries

Engineering Contradiction:
Improvedatabase securityVSAvoidquery system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary anomaly detection system that sits between the SQL query interface and the database. This intermediary component analyzes queries using semantic attributes and similarity calculations without requiring changes to the core database system, thereby improving security while maintaining operational simplicity.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces traditional mechanical security approaches (such as access control lists and permission-based security) with a semantic-based detection system that uses natural language processing and similarity algorithms to identify anomalous queries, providing more sophisticated security without increasing operational complexity.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Measurement precision

If semantic attribute-based anomaly detection is implemented, then measurement precision of query analysis is improved, but device complexity increases due to additional processing requirements

Engineering Contradiction:
Improvequery anomaly detection accuracyVSAvoiddetection system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the query analysis process into distinct components: extracting semantic attributes from queries, calculating similarities between query attributes, and comparing against thresholds. This segmentation allows each component to be optimized independently and simplifies the overall system architecture.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent transforms SQL queries into semantic attribute representations (changing parameters from syntactic to semantic), enabling more precise anomaly detection. By changing the parameter space from raw SQL syntax to semantic concepts, the system achieves higher measurement precision while managing complexity through parameter transformation.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If comprehensive semantic attribute analysis is performed on all queries, then anomaly detection capability is improved, but processing time increases

Engineering Contradiction:
Improveanomaly detection capabilityVSAvoidquery processing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies partial action by performing semantic attribute analysis selectively rather than on every query. The system calculates similarities only for queries that warrant deeper analysis based on initial filtering, reducing overall processing time while maintaining high anomaly detection capability for suspicious queries.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent implements a multi-stage filtering approach where obviously normal queries are quickly identified and skipped through comprehensive analysis. The system rushes through simple similarity comparisons for common query patterns while reserving detailed semantic analysis for queries that show potential anomaly indicators, thereby reducing average processing time.

Inventive Principle:
Principle #21Skipping (Rushing through)

Data Source

PatentUS10621180B2Attribute-based detection of anomalous relational database queries
Publication Date: 2020.04.14 ORACLE INT CORP
  • US10621180B2 patent drawing
  • US10621180B2 patent drawing
  • US10621180B2 patent drawing

AI summary

Techniques for detecting an anomaly in queries of a relational database are disclosed. The techniques include obtaining a set of semantic attributes for a query of a relational database. The semantic attributes are then used to calculate a set of similarities between the query and a set of non-anomalous queries of the relational database. When a highest similarity in the set of similarities does not meet a similarity threshold, an indication that the query is anomalous is outputted.