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

Code obfuscation method and device, computer device and storage medium

A technology of computer programs and codes, which is applied in the field of storage media, computer equipment, code obfuscation methods and devices, and can solve problems such as impossibility of reprocessing by compilers and inability to transplant codes

Active Publication Date: 2019-12-13
北京智游网安科技有限公司
View PDF4 Cites 6 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 device and storage medium
  • Code obfuscation method and device, computer device and storage medium
  • Code obfuscation method and device, computer device and 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 application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the 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.

[0034] In order to so...

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 code obfuscation method and apparatus, a computer device and a storage medium. The method comprises the steps of 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; and converting the second abstract syntax tree into a second source file. Codes are obfuscated through the method, and the obfuscated codes 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 Applications(China)
IPC IPC(8): G06F21/14G06F8/41
CPCG06F8/425G06F21/14
Inventor 方令肖巍
Owner 北京智游网安科技有限公司