Malicious Code Detection via Structural Normalization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for detecting malicious code in browsers are limited in their detection capabilities, as they rely on signature matching and require human intervention for unknown malicious code, and maintaining a database of signatures is time-intensive and error-prone, making them ineffective against new or variant malicious code.

Innovation Solution

A method that normalizes inserted malicious code by removing content-related data, selecting alphanumeric strings to represent code constructs, and comparing these normalized constructs against a corpus of known patterns to identify malicious scripts, allowing for detection of previously unseen code.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If signature-based detection methods are used to identify malicious code, then detection accuracy for known threats is improved, but the system becomes ineffective against new or variant malicious code and requires continuous manual updates

Engineering Contradiction:
Improvedetection accuracyVSAvoideffectiveness against new threats
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent transforms the detection approach by changing the parameters being analyzed from exact signature matching to structural feature extraction. Instead of comparing complete code sequences, the system extracts and compares normalized code constructs (control flow, data flow, operation sequences), allowing detection of malicious code based on structural patterns rather than exact content matches. This enables detection of variant and new threats while maintaining accuracy for known threats.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent creates normalized representations (copies) of code constructs that capture essential structural features while removing content-specific variations. By creating these abstracted copies of code patterns and comparing structural features rather than original code content, the system can identify malicious intent across different implementations and obfuscation techniques.

Inventive Principle:
Principle #26Copying

2Reliability

If a database of signatures is maintained to detect malicious code, then detection capability for known threats is improved, but the maintenance process becomes time-intensive and error-prone

Engineering Contradiction:
Improvedetection capabilityVSAvoidmaintenance time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements a self-updating detection system that automatically learns and adapts to new malicious code patterns without requiring manual intervention. The system extracts structural features from detected threats and automatically updates its detection models, enabling continuous improvement of detection capability while eliminating the time-consuming and error-prone manual signature database maintenance process.

Inventive Principle:
Principle #25Self-service

3Measurement precision

If exact signature matching is performed on inserted code, then precise identification of known malicious patterns is achieved, but the system fails to detect obfuscated or dynamically changed malicious code

Engineering Contradiction:
Improvepattern identification accuracyVSAvoidobfuscation resistance
Core Design Contradiction:
Measurement precisionVSObject-affected harmful factors

Solution Approach 1:

The patent extracts essential structural features from code while separating them from content-specific details that can be obfuscated. By taking out and analyzing only the core structural elements (control flow patterns, data flow relationships, operation sequences) and ignoring variable names, string literals, and other mutable content, the system achieves precise pattern identification that is resistant to obfuscation and dynamic changes.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS9721098B2Normalizing and detecting inserted malicious code
Publication Date: 2017.08.01 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US9721098B2 patent drawing
  • US9721098B2 patent drawing
  • US9721098B2 patent drawing

AI summary

A method, system, and computer program product for detecting malicious code insertion in data are provided in the illustrative embodiments. At an application executing using a processor and a memory in a data processing system, a script that has been inserted in a mix of code and content is detected. A content-related portion is removed from the script to form a remaining script structure, the content-related portion referring to the content in the mix. From the remaining script structure, a code construct is selected and replaced with an alphanumeric string to form a normalized construct. Whether the normalized construct matches, within a tolerance, a second normalized construct in a corpus of normalized scripts is determined. Responsive to the normalized construct matching the second normalized construct within the tolerance, a conclusion is drawn that the script is malicious.