JavaScript virtualization protection method based on front-end bytecode technology

A bytecode and virtualization technology, applied in the direction of program/content distribution protection, electrical digital data processing, instruments, etc., can solve the problem that the protection method is difficult to protect the effect, and achieve the effect of reducing extra overhead and improving security.

Active Publication Date: 2018-10-02
NORTHWEST UNIV(CN)
View PDF5 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

JavaScript is a scripting language. It is a text source code with grammatical attributes during transmission. Reverse analysis is easier than traditional compiled binary applications. Coupled with the development of browsers, the functions of debuggers are becoming more and more perfect. These protection methods are difficult to play a good protective effect

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
  • JavaScript virtualization protection method based on front-end bytecode technology
  • JavaScript virtualization protection method based on front-end bytecode technology
  • JavaScript virtualization protection method based on front-end bytecode technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] Comply with the above technical solutions, such as figure 1 As shown, a JavaScript code virtualization protection method based on the front-end bytecode technology WebAssembly includes the following steps:

[0057] Step 1. Divide the JavaScript code to be protected into different code segments, and divide the code segment into attribute and method type and calculation-intensive type according to whether there are DOM attributes in the code segment;

[0058] In this step, first segment the JavaScript code that needs to be protected, for example, divide the code used to implement specific functions (such as calculation, call, etc.) in the entire code into a code segment, and then scan each code segment , check whether there is a DOM attribute ("." attribute) in the code segment, if it exists, the code segment is judged as an attribute and method type as a whole, otherwise the code segment is judged as computationally intensive.

[0059] For example, for the following two...

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 discloses a JavaScript code virtualization protection method based on front-end bytecode technology. According to the method, on the one hand, an idea of code virtualization is introduced, and a code virtualization protection scheme of a JavaScript source code level is provided through studying and borrowing principles of a binary-code virtualization protection method. Execution logic of JavaScript code is protected through analyzing and introducing design details such as a virtual-machine architecture, a virtual instruction set, a virtual interpreter and instruction mapping encoding rules; and on the other hand, the virtual interpreter is realized on the basis of the front-end bytecode technology, and the new front-end bytecode technology is used to carry out improvement andcompilation on the virtual interpreter of the JavaScript virtualization protection scheme to realize a core module of the hidden virtual-machine architecture. Through combination of two aspects of technology, virtualization can be used to improve strength of JavaScript code protection, efficiency of WebAssembly can also be used to reduce additional overheads brought by a virtualization process, and security of front-end key-code can be effectively improved.

Description

technical field [0001] The invention belongs to the field of computer software code protection. How to protect the security of JavaScript application code in the front-end environment of source code transmission and prevent it from being analyzed and utilized maliciously is very important to protect the rights and interests of network service providers. Aiming at this severe problem, the present invention designs a more effective code protection scheme by studying the attack and defense mechanism of the JavaScript code protection technology to increase the attack difficulty. Background technique [0002] In the early days of Web development, JavaScript did not take many responsibilities in the Web system. It was simply submitting forms and files were very simple, so it did not need any protection. Today, with more and more web applications, along with the improvement of browser performance and network speed, the work carried by JavaScript has become more and more important....

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/12
CPCG06F21/125
Inventor 汤战勇薛超王帅匡开圆房鼎益陈晓江龚晓庆陈峰
Owner NORTHWEST UNIV(CN)
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