Method for de-obfuscating JavaScript code in web page

A code and webpage technology, applied in the direction of creating/generating source code, etc., can solve the problems of weakening the relationship between obfuscated code and deobfuscated code, increasing the difficulty of obfuscated code and deobfuscated code, poor readability, etc., to achieve fast speed and process Safety and low process overhead

Active Publication Date: 2018-10-23
FUZHOU UNIV
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This feature enables both obfuscated codes and deobfuscated codes to be distributed in the webpage in the form of data. These data have no obvious characteristics and poor readability, which increases the difficulty of defining obfuscated codes and deobfuscated codes; secondly, the weak type of the JavaScript language makes The variable type in the code is variable during the code running process
This feature makes the da...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for de-obfuscating JavaScript code in web page
  • Method for de-obfuscating JavaScript code in web page
  • Method for de-obfuscating JavaScript code in web page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0033] Please refer to figure 1 , the present invention provides a kind of JavaScript code deobfuscation method in a kind of webpage, it is characterized in that:

[0034] Step S1: collect the data set of the webpage to be processed, including label content, label attribute value and JavaScript code set;

[0035] Step S2: According to the collected data set, explicitly express the JavaScript code identifier in the webpage to be processed, find out the suspicious data identifier hidden in the string object and express it explicitly;

[0036] Step S3: Collect all data containing obfuscated codes in the webpage, and form these data into suspicious data sets;

[0037] Step S4: Determine the de-obfuscation function sequence according to the explicit JavaScript code identifier and suspicious data identifier;

[0038] Step S5: De-obfuscate the suspicious da...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for de-obfuscating a JavaScript code in a web page, which improves a feature-based static detection method by de-obfuscating processing of script codes. The method comprises the step of formatting and semantically restoring the script code in the web page; determining a de-obfuscated code corresponding to each obfuscated code from the script code; and restoring the original code hidden in the obfuscated code through the de-obfuscated code. The invention can effectively restore the original code hidden in the obfuscated code in the web page, so as to re-exposethe obfuscated characteristics, thereby remarkably improving the detection rate of the malicious web page detection engine to the obfuscated malicious web page. In addition, the code structure, semantics and format after deobfuscated processing are improved to facilitate the data flow and control flow analysis for the method which can be combined with other tools to assist code analysis, improve efficiency, or as a browser plug-in, to quickly evaluate the browsed web pages, and give a security analysis report.

Description

technical field [0001] The invention relates to a JavaScript code deobfuscation method in a webpage. Background technique [0002] At present, many security vendors have released feature-based malicious webpage detection engines, which can effectively detect malicious webpages that do not contain obfuscated codes, and protect the information security of Internet users to a large extent. However, malicious webpages often use obfuscation techniques to confuse malicious codes and deobfuscate codes, so as to hide the characteristics of malicious codes and avoid detection by malicious webpage detection engines. Therefore, effective detection of malicious web pages containing obfuscated codes has important practical significance for protecting the information and system security of Internet users. [0003] In recent years, domestic and foreign research on malicious webpage detection mainly adopts machine learning methods, and the learning algorithms used cover commonly used machi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/30
CPCG06F8/30
Inventor 倪一涛陈咏佳林柏钢
Owner FUZHOU UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products