Web Crawler JavaScript De-obfuscation for Malicious Site Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional web crawler systems are ineffective in detecting malicious sites due to anti-analysis techniques such as JavaScript obfuscation, making it difficult to identify and block new malicious sites efficiently.

Innovation Solution

A web crawler system that performs anonymous browsing, automatic JavaScript de-obfuscation, and signature-less detection of malicious artifacts, utilizing heuristics to identify new JavaScript functions and domains in de-obfuscated content, and supports large-scale site classification for network security systems.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional web crawler techniques are used to browse websites, then the crawler can access and analyze site content, but the malicious site can detect the crawler through anti-analysis techniques (such as JavaScript obfuscation, victim's system reconnaissance, geo IP detection) and avoid detection

Engineering Contradiction:
Improvedetection accuracyVSAvoidanti-analysis capability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent introduces a headless browser as an intermediary component that executes JavaScript and renders web pages before analysis. This headless browser acts as a mediator between the crawler and the malicious site, executing the site's JavaScript code in a controlled environment while preventing the site from detecting the crawler's analytical intent. The headless browser masks the crawler's identity and provides a more realistic browsing environment that bypasses anti-detection mechanisms.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent performs preliminary actions by pre-configuring the headless browser with necessary credentials, cookies, and browsing history before analyzing the website. This preliminary setup creates a more authentic browsing environment that prevents malicious sites from detecting the crawler through system reconnaissance techniques, as the browser already appears to have legitimate user characteristics established beforehand.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If the crawler analyzes every website in detail to detect malicious content, then detection accuracy improves, but the time and resources required increase significantly

Engineering Contradiction:
Improvemalicious site detection precisionVSAvoidanalysis time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent segments the website analysis process into distinct phases: initial scanning phase that quickly evaluates basic characteristics, and detailed analysis phase that focuses only on suspicious sites. This segmentation allows the crawler to process large numbers of websites efficiently by applying comprehensive analysis only where necessary, rather than analyzing every site in full detail, thus reducing overall time and resource consumption while maintaining high detection precision for malicious sites.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies different levels of analysis quality to different websites based on their risk profile. High-quality detailed analysis is applied locally to suspicious or malicious sites, while standard analysis is applied to legitimate sites. This local quality approach ensures that detection precision is maximized for malicious sites without unnecessarily spending time on clearly benign websites, optimizing the balance between accuracy and efficiency.

Inventive Principle:
Principle #3Local quality

3Adaptability or versatility

If the crawler uses anonymous browsing to avoid detection, then the anti-analysis techniques are bypassed, but the complexity of the crawler system increases

Engineering Contradiction:
Improveanonymity capabilityVSAvoidcrawler system complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent makes the headless browser serve multiple functions: it acts as both the browsing engine for accessing websites and the anonymity mechanism for avoiding detection. The same headless browser configuration that enables JavaScript execution and page rendering also provides the anonymity by masking the crawler's identity. This multi-functionality reduces overall system complexity compared to having separate components for browsing and anonymity, as the headless browser inherently provides both capabilities.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS11799876B2Web crawler systems and methods to efficiently detect malicious sites
Publication Date: 2023.10.24 ZSCALER INC
  • US11799876B2 patent drawing
  • US11799876B2 patent drawing
  • US11799876B2 patent drawing

AI summary

Systems and methods include receiving a list of web sites; anonymously browsing to each web site in the list; receiving a response based on the browsing; and analyzing the response to classify each web site as malicious or not based on a plurality of techniques including JavaScript (JS) obfuscation detection based on de-obfuscation. The systems and methods can further include providing a blacklist of web sites classified as malicious. The systems and methods can further include determining the list of web sites periodically based on a plurality of factors. The JS obfuscation detection can be performed by de-obfuscating JS content and utilizing heuristics to determine if the de-obfuscated JS content is malicious, and the heuristics can include a presence of any of a new JS function and a domain in the de-obfuscated JS content.