Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A lightweight javascript sandbox implementation method

An implementation method and a lightweight technology, applied in the field of software security, can solve the problems of complex implementation of JavaScript programs, difficult for programmers to master and operate, and achieve the effect that the implementation method is simple and effective, easy to master, and easy to operate.

Active Publication Date: 2015-08-26
ZHEJIANG UNIV CITY COLLEGE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the implementation of existing JavaScript programs is generally more complicated, and generally requires extending the browser or modifying the Web application program, or even modifying the original syntax of JavaScript, which is difficult for programmers to master and operate.

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
  • A lightweight javascript sandbox implementation method
  • A lightweight javascript sandbox implementation method
  • A lightweight javascript sandbox implementation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0038] Please refer to figure 1 As shown, the implementation method of the lightweight JavaScript sandbox of the present invention comprises the following steps:

[0039] S10: Define the access control inside the sandbox, specifically including the following steps:

[0040] S101: Define a function as the scope of the sandbox, encapsulate suspicious JavaScript code inside this specific function, define a set of functions that are prohibited from accessing for this sandbox, and the execution of these JavaScript functions may cause dangerous program behavior; functions that are prohibited from access...

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 method for realizing a lightweight class JavaScript sandbox. The method comprises the following steps of: S10, defining access control inside the sandbox; S11, automatically generating a sandbox monitoring code according to the defined access control; S12, automatically generating a monitoring code for stopping an access function according to the defined access control; and S13, detecting a malicious code inside the sandbox in real time, and stopping calling a dangerous function. The method for realizing the lightweight class JavaScript sandbox provided by the invention is simple and effective; a programmer can conveniently grasp and operate the method for realizing the lightweight class JavaScript sandbox; the JavaScript program code is safely executed inside the sandbox; and no dangerous program behavior is generated.

Description

technical field [0001] The invention belongs to the technical field of software security, and relates to a method for realizing a lightweight JavaScript sandbox. Background technique [0002] The JavaScript language is a scripting language widely used in Internet applications. The JavaScript language has good expressiveness and flexibility. Using the JavaScript language can improve the flexibility and expressiveness of the software system, and improve the readability and readability of the software system. reusability. [0003] The function (function) is the basic structure of the JavaScript language. The JavaScript program is composed of a group of functions. Only by ensuring the safe and reliable execution of the target JavaScript function can the JavaScript program be executed safely and reliably without generating dangerous and malicious programs. Behavior. The JavaScript language supports runtime evaluation (runtime evaluation) grammatical features. Many software syst...

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 Patents(China)
IPC IPC(8): G06F21/53
Inventor 吴明晖吕嘉颜晖金苍宏薛莲
Owner ZHEJIANG UNIV CITY COLLEGE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products