Malicious Script Detection via Static and Dynamic Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods for detecting malicious web pages fail to recognize hidden dangerous HTML tags in obfuscated scripts, especially when new obfuscation techniques are used, leading to ineffective signature-based detection and potential browser performance issues.

Innovation Solution

A system and method that decomposes web pages into scripts, performs static and dynamic analysis, and compares results to determine malicious scripts, using a script execution function within a web browser to handle variant obfuscation techniques.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If signature-based detection is used to identify malicious scripts, then detection capability is maintained for known threats, but detection effectiveness fails against new obfuscation techniques and variant attacks

Engineering Contradiction:
Improvedetection capabilityVSAvoidresistance to new obfuscation techniques
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent implements dynamic analysis by actually executing the script in a controlled environment to observe its runtime behavior. This allows the detection system to adapt to new obfuscation techniques because it analyzes what the script actually does rather than relying on static signatures that can be easily evaded through obfuscation or new attack variants.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent introduces a script execution environment as an intermediary between the detection system and the malicious script. This intermediary executes the script and captures its behavior, allowing detection without directly confronting the obfuscated code, thereby maintaining effectiveness against new obfuscation techniques.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If hooking function execution is used to decode and analyze obfuscated scripts, then signature extraction is achieved, but web browser performance deteriorates and browser may malfunction

Engineering Contradiction:
Improvesignature extraction accuracyVSAvoidweb browser operation performance
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent segments the analysis process into distinct modules: script decomposition, static analysis, dynamic execution, and result comparison. This segmentation allows the system to perform comprehensive analysis without requiring hooking into the browser's core execution functions, thereby maintaining browser performance while achieving accurate detection.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses a separate script execution environment as an intermediary to analyze script behavior without hooking into the browser's native function execution. This approach extracts behavioral signatures accurately while avoiding the performance degradation and potential malfunctions associated with hooking techniques.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If conventional pattern matching is used to detect malicious scripts, then detection is simple and fast, but the pattern becomes unusable when new obfuscation techniques are applied

Engineering Contradiction:
Improvedetection speedVSAvoidpattern effectiveness against new attacks
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent transitions from static pattern matching to dynamic behavioral analysis by executing scripts and observing their runtime actions. This dynamic approach maintains detection speed through automated execution while achieving adaptability to new obfuscation techniques because it captures the essential behavior that remains consistent regardless of obfuscation.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the detection parameter from static code patterns to dynamic execution behavior. By monitoring what the script does rather than how it is written, the system maintains fast automated detection while becoming insensitive to obfuscation transformations that alter the code's appearance but not its function.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS9032516B2System and method for detecting malicious script
Publication Date: 2015.05.12 ELECTRONICS & TELECOMM RES INST
  • US9032516B2 patent drawing
  • US9032516B2 patent drawing
  • US9032516B2 patent drawing

AI summary

Provided are a system and method for detecting a malicious script. The system includes a script decomposition module for decomposing a web page into scripts, a static analysis module for statically analyzing the decomposed scripts in the form of a document file, a dynamic analysis module for dynamically executing and analyzing the decomposed scripts, and a comparison module for comparing an analysis result of the static analysis module and an analysis result of the dynamic analysis module to determine whether the decomposed scripts are malicious scripts. The system and method can recognize a hidden dangerous hypertext markup language (HTML) tag irrespective of an obfuscation technique for hiding a malicious script in a web page and thus can cope with an unknown obfuscation technique.