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

Compiling method and device of program link

A compiling method and program linking technology, which is applied in the direction of program control design, instrumentation, calculation, etc., can solve the problems of low overhead, inflexibility, and coarse granularity, so as to improve randomness, improve security, and reduce the possibility of Effect

Active Publication Date: 2017-05-24
ZTE CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the system starts the program, the base address of each component (main program, dynamic library, stack) in the program is randomized. Although such a randomization process is simple to implement and has low overhead, it also has the following problems: ① The granularity is coarse, the address distribution inside the components is still fixed, the attacker can still call the operating system interface, obtain the starting address of each component, and combine brute force and relative addresses to carry out the attack
②It is not flexible enough, either all programs in the system use address randomization, or none of them use address randomization, and this function cannot be enabled according to the characteristics and security requirements of the application itself
③The selection of random numbers is determined by the system, and the generation of some random numbers is also related to the system time. It is easier for an attacker to crack after obtaining the system's random number generation rules and system time

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
  • Compiling method and device of program link
  • Compiling method and device of program link
  • Compiling method and device of program link

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

[0056] Embodiments of the present invention provide a compiling method for program linking, such as figure 2 As shown, the compilation method includes:

[0057] Step S10, obtaining the file to be linked, and splitting the sections in the file to be linked according to the function or variable symbols in the file to be linked to obtain multiple input sections;

[0058] Step S11, randomly assigning an index value to each of the input sections;

[0059] Step S12, according to the index value of each of the input sections, merge the corresponding function or variable symbols into a link output file.

[0060] After obtaining the file to be linked, split each section of the file to be linked to obtain the split input section, the number of function or varia...

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 provides a compiling method and device of a program link. The compiling method comprises the steps of obtaining a file to be linked, conducting splitting on sections in the file to be linked according to a function or a variable symbol in the file to be linked to obtain multiple input sections; randomly allocating an index value for each of the input sections; merging the corresponding function or variable symbol to a link output file according to the index value of each of the input sections. According to the compiling method of the program link, by conducting splitting on the function and variable symbol in the file to be linked and then conducting randomization processing, the randomness of the function and the variable symbol in a program can be further improved, thus the probability that the program is successfully attacked is lowered, and the safety of the program is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a compiling method and device for program linking. Background technique [0002] With the rapid development of information technology, using a wide open network environment for communication has become the trend of the times. While the network provides development and shared resources, there are inevitably security risks. If there are loopholes in the computer software system (operating system, shared library, middleware, application program), attackers who are familiar with the system can exploit these loopholes through the network. to execute malicious code and perform illegal operations. [0003] A prerequisite for attacking the system is that the attacker has a certain understanding of the system, especially the code address space distribution of the program, and then can control the system by making the process execute the attacker's preset attack code through carefully c...

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): G06F9/45
Inventor 谢宝友王德强
Owner ZTE CORP
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