Unlock instant, AI-driven research and patent intelligence for your innovation.

Code obfuscation method and device, computer equipment, storage medium

A technology of computer programs and codes, which is applied in the direction of calculation, code compilation, program code conversion, etc., and can solve the problems that codes cannot be transplanted, and it is impossible for compilers to process them again.

Active Publication Date: 2021-09-21
北京智游网安科技有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved in this application is that in the existing code obfuscation methods, the LLVM compiler can only be converted into machine instructions of the corresponding platform, resulting in that the obfuscated code cannot be transplanted, and it is impossible to be processed again by other compilers. Provide a code obfuscation method, device, computer equipment, and storage medium, so that the obfuscated code can still be compiled by various compilers, and can also be transplanted to various platforms

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
  • Code obfuscation method and device, computer equipment, storage medium
  • Code obfuscation method and device, computer equipment, storage medium
  • Code obfuscation method and device, computer equipment, storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0033] The inventor found through research that the existing method of using the middle layer of the LLVM compiler to obfuscate the code can only be converted into machine instructions of the corresponding platform by the LLVM compiler, resulting in the obfuscated code being unable to be transplanted, let alone being used by other The compiler handles it again.

...

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 present application relates to a code obfuscation method and device, a computer device, and a storage medium. The method includes: obtaining a first abstract syntax tree corresponding to a first source file; modifying the first abstract syntax tree to obtain a second abstract syntax tree an abstract syntax tree; converting the second abstract syntax tree into a second source file. By obfuscating the code through this method, the obfuscated code can still be compiled by various compilers, and can also be transplanted to various platforms.

Description

technical field [0001] The present application relates to the computer field, in particular to a code obfuscation method and device, computer equipment, and a storage medium. Background technique [0002] In the field of mobile information security, the purpose of code obfuscation is to make the code more difficult to understand and prevent the software from being maliciously reversed. [0003] In the related art, the middle layer of the LLVM (Low Level Virtual Machine, LLVM for short) compiler is used to obfuscate the code. The mainstream design of traditional static compilers is a three-stage design, which are front-end, optimizer (also called middle layer) and back-end. The front end analyzes the source code, checks for errors, and builds a language-specific abstract syntax tree. The abstract syntax tree can be converted into the code of the intermediate layer representation, and the optimizer and backend run on the intermediate layer code. The optimizer performs vario...

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/14G06F8/41
CPCG06F8/425G06F21/14
Inventor 方令肖巍
Owner 北京智游网安科技有限公司