Malicious Script Detection via Unique Script Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional antivirus scanners face challenges in efficiently scanning for malicious scripts, especially encrypted ones on web pages, due to high CPU and memory resource demands and the need for large pattern files that consume memory and processing resources.

Innovation Solution

A local engine at a client computer intercepts URL access to identify unique scripts, which are then sent to a script analyzer for emulation to detect malicious code, reducing resource consumption by focusing on specific scripts rather than entire files.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional antivirus scanners use pattern matching with large pattern files to detect malicious codes, then detection coverage is improved, but memory and processing resources are consumed

Engineering Contradiction:
Improvedetection coverageVSAvoidmemory and processing resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent segments the detection task by dividing web content into individual scripts and further identifying only unique scripts for analysis. Instead of scanning entire web pages or using comprehensive pattern files, the system extracts and analyzes only the unique script components that may contain malicious code, significantly reducing the detection workload while maintaining effectiveness

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system extracts only the unique scripts from web pages for analysis, separating them from the rest of the web content. This extraction approach allows the system to focus computational resources only on the relevant portions (unique scripts) rather than processing entire web pages or maintaining large pattern files, thereby reducing memory and processing resource consumption

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If emulator with heuristic rules is used at client computer to detect encrypted scripts, then detection capability is improved, but CPU and memory resources are consumed

Engineering Contradiction:
Improvedetection capabilityVSAvoidCPU and memory resources
Core Design Contradiction:
ReliabilityVSPower

Solution Approach 1:

The patent introduces a server-based script analysis system that acts as an intermediary between the client and the emulation process. The client sends unique scripts to the server, which then performs the resource-intensive emulation and heuristic analysis. This mediator approach allows the client to maintain detection capability while offloading the heavy computational burden to the server, thus reducing local CPU and memory resource consumption

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If entire web pages are scanned for malicious codes, then comprehensive detection is achieved, but processing time and resources increase

Engineering Contradiction:
Improvecomprehensive detectionVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system segments web pages into individual script components and further identifies only the unique scripts within those components. This segmentation allows the system to skip over repetitive or known-safe content and focus only on the unique scripts that require analysis, dramatically reducing processing time while maintaining comprehensive detection of potential threats

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Instead of performing full emulation and analysis on all scripts in web pages, the system applies partial action by analyzing only the unique scripts. This selective approach performs sufficient analysis on the critical portions (unique scripts) while avoiding redundant processing of non-unique or already-known scripts, thereby reducing processing time without sacrificing detection effectiveness

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS9398032B1Apparatus and methods for detecting malicious scripts in web pages
Publication Date: 2016.07.19 TREND MICRO INC
  • US9398032B1 patent drawing
  • US9398032B1 patent drawing
  • US9398032B1 patent drawing

AI summary

One embodiment relates to a computer-implemented method for detecting malicious scripts in web pages. A local engine and an application are executed at a client computer. The local engine intercepts an access by the application to a web page at a universal resource locator (URL) under a domain. The local engine determines scripts at the URL and scripts at other URLs under the domain. Using that information, the local engine determines if the scripts at the URL include one or more unique script(s). The local engine sends the unique script(s), if any, via a network to a script analyzer. The script analyzer may then perform emulation of the unique script(s) to detect malicious code therein. Other embodiments, aspects and features are also disclosed.