Data storage method and terminal based on page isolation

By copying the function code page in the user execution environment to generate sub-page codes and replacing the original function code according to the page isolation requirements, the functional data is simulated without using virtualization technology, and the problem of the existing technology having a great impact on the system is solved.

CN120145371APending Publication Date: 2025-06-13FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510171741.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The prior art requires virtualization technology when realizing memory hiding, which has an impact on the entire computer system and has high requirements for hardware and software compatibility, limiting its application in certain specific scenarios.

Method used

Using a data storage method based on page isolation, by obtaining the function code page in the user's execution environment, copying and generating side page codes, and replacing the function code page according to the page isolation requirements to achieve simulation.

Benefits of technology

Without affecting the normal use of the function code page of the user's execution environment, the simulation of functional data is realized, avoiding the global impact of virtualization technology on the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120145371A_ABST
    Figure CN120145371A_ABST
Patent Text Reader

Abstract

The invention discloses a data storage method based on page isolation and a terminal, and the method comprises the steps: obtaining each function code page in a user execution environment, sequentially copying each function code page, generating a corresponding auxiliary page code, and simulating the user execution environment through the copied auxiliary page. According to the method, the to-be-replaced function code page is replaced by the corresponding auxiliary page code according to the page isolation requirement, and the unreplaced function code page and the replaced auxiliary page code in the user execution environment are subjected to relevance integration, so that the function code page can be replaced without influencing the normal use of the function code page in the user execution environment. And performing functional data simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data protection, and particularly relates to a method and a terminal for data storage based on page isolation. Background Art

[0002] Currently, memory hiding technology aims to store specific information, programs, or data in a computer memory and ensure that this content is invisible or difficult to discover for a regular operating system, other programs, or ordinary users. This technology can be used in various scenarios, including protecting sensitive information from illegal access, preventing malware from being easily detected by a detection system, and conducting system security research and other fields. In the prior art, memory hiding technology can be implemented through virtualization technology: Virtualization technology requires installing a virtual environment to simulate inside the virtual environment. However, as a global system technology, virtualization technology has an impact on the entire computer system and has extremely high requirements for the compatibility of hardware and software, which limits its application in certain specific scenarios. Summary of the Invention

[0003] The technical problem to be solved by the present invention is: to provide a method and a terminal for data storage based on page isolation, which can simulate functional data without the need for virtualization.

[0004] To solve the above technical problem, the technical solution adopted by the present invention is: A method for data storage based on page isolation, comprising the steps of: Obtain each functional code page in the user execution environment, and sequentially copy each functional code page and generate a corresponding secondary page code; Replace the functional code page to be replaced with the corresponding secondary page code according to the page isolation requirement, and integrally associate the functional code pages not replaced and the replaced secondary page codes in the user execution environment.

[0005] To solve the above technical problem, another technical solution adopted by the present invention is: A terminal for data storage based on page isolation, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, each step of the above method for data storage based on page isolation is implemented.

[0006] The beneficial effects of the present invention are as follows: Obtain each functional code page in the user execution environment, copy each functional code page in sequence and generate corresponding secondary page codes, and the user execution environment can be simulated through the copied secondary pages. Replace the functional code page to be replaced with the corresponding secondary page code according to the page isolation requirement, and integrally associate the functional code pages that have not been replaced and the replaced secondary page codes in the user execution environment. In this way, functional data simulation can be carried out without affecting the normal use of the functional code pages in the user execution environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 It is a flowchart of a method for data storage based on page isolation according to an embodiment of the present invention; Figure 2 It is a schematic diagram of a terminal for data storage based on page isolation according to an embodiment of the present invention; Figure 3 It is a program flow logic diagram of a method for data storage based on page isolation according to an embodiment of the present invention; Figure 4 It is a flowchart of the execution data construction according to an embodiment of the present invention; Figure 5 It is a flowchart of the secondary page code trigger according to an embodiment of the present invention; Figure 6 It is a flowchart of the execution of the secondary page code according to an embodiment of the present invention.

[0008] Label description: 1. A terminal for data storage based on page isolation; 2. A memory; 3. A processor. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0009] To describe in detail the technical content, the achieved objectives and the effects of the present invention, the following is described in conjunction with the embodiments and with reference to the accompanying drawings.

[0010] Please refer to Figure 1 , an embodiment of the present invention provides a method for data storage based on page isolation, including the steps of: Obtain each functional code page in the user execution environment, copy each functional code page in sequence and generate corresponding secondary page codes; Replace the functional code page to be replaced with the corresponding secondary page code according to the page isolation requirement, and integrally associate the functional code pages that have not been replaced and the replaced secondary page codes in the user execution environment.

[0011] As can be seen from the above description, the beneficial effects of the present invention are as follows: Obtain each functional code page in the user execution environment, copy each functional code page in sequence and generate corresponding secondary page codes, and the user execution environment can be simulated through the copied secondary pages. Replace the functional code page to be replaced with the corresponding secondary page code according to the page isolation requirement, and integrally associate the functional code pages not replaced and the replaced secondary page codes in the user execution environment. In this way, functional data simulation can be performed without affecting the normal use of the functional code pages in the user execution environment.

[0012] Further, obtaining each functional code page in the user execution environment previously included: Obtain the first functional page and its associated functional pages according to the execution data in the user execution environment, construct an environment page by copying the associated functional pages, and return the address of the first functional page.

[0013] As can be seen from the above description, by constructing an environment page by copying the associated functional pages and returning the address of the first functional page, it is convenient for the user to quickly locate and access the functions of the execution data.

[0014] Further, obtaining the first functional page and its associated functional pages according to the execution data in the user execution environment, and constructing an environment page by copying the associated functional pages further includes: Generate an association identifier according to the function names and function numbers of the first functional page and its associated functional pages.

[0015] As can be seen from the above description, by generating and storing the association identifier, when the function needs to be modified subsequently, the associated data of the function can be quickly found, so as to perform targeted modification of the function. In this way, the modification, analysis, and monitoring of functional data can be more refined.

[0016] Further, obtaining each functional code page in the user execution environment, copying each functional code page in sequence and generating corresponding secondary page codes further includes: When the functional code page is executed, the corresponding secondary page code is executed simultaneously, and the first execution result of the functional code page and the second execution result of the secondary page code are compared to obtain the environmental impact data of the associated function.

[0017] As can be seen from the above description, by comparing the execution result of the secondary page code with the execution result of the functional code page, the environmental impact data of the associated function can be obtained, so as to analyze the environmental impact situation of the associated function.

[0018] Further, replacing the functional code page to be replaced with the corresponding secondary page code according to the page isolation requirement includes: Confirm the function code page to be replaced according to the page isolation requirement. If the function codes of the page to be replaced and its secondary page are modified, configure the filtering conditions for the function codes accordingly, and then replace the function code page with the corresponding secondary page code.

[0019] As can be seen from the above description, by configuring the filtering conditions according to the modification of the function code and then performing the secondary page replacement, it is possible to arbitrarily modify / monitor the required function output and monitor the data situation. By simulating data in this way, while improving the stability of the simulated data, it is not necessary to use complex virtualization technologies, which can improve the test efficiency.

[0020] Please refer to Figure 2 , Another embodiment of the present invention provides a terminal for data storage based on page isolation, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements each step of the above method for data storage based on page isolation.

[0021] The above method and terminal for data storage based on page isolation of the present invention are applicable to simulating functional data without the need for virtualization. The following is an explanation through specific embodiments: Please refer to Figure 1 , Figures 3 to 6 , Embodiment 1 of the present invention is: A method for data storage based on page isolation, including the steps of: S1. Obtain each function code page in the user execution environment, and sequentially copy each function code page to generate corresponding secondary page codes.

[0022] Please refer to Figure 3 , The execution data is in the user execution environment; the isolated data is in the environment of the page isolation device; the secondary page code is obtained by copying the function code page and has the same data as the function code page. The secondary page code is used for operations such as data modification or data HOOK, without affecting the normal function of the original function code page. That is, the role of the secondary page code is to simulate the environment of the function code without affecting the function code page, achieving the effects of differentiating functions and making functions independent.

[0023] Specifically, it is necessary to first obtain the first function page and its associated function pages according to the execution data in the user execution environment, construct an environment page by copying the associated function pages, and return the address of the first function page; generate an association identifier according to the function names and function numbers of the first function page and its associated function pages.

[0024] Please refer to Figure 4, The execution data includes associated function pages. For example, if function A is composed of function B and function C, then function B and function C are the associated functions of function A, that is, the environment pages of the execution data. By copying the associated pages, establishing page relationships, and returning the page address of function A, the environment page can be constructed. Constructing the environment page in this way is to facilitate exploring the influence of function B and function C on function A, and it does not require modification and does not affect the execution of the original function A.

[0025] In this embodiment, the identifier of the function node is generated according to the page associated with the function. The identifier is defined by function name + function number. For example, A1-C2 represents the function content C2 of the function node A1. Therefore, using the node-target function to perform operations such as fixed-point monitoring and modification of the target function can more finely modify, analyze, or monitor function data.

[0026] Further, when the function code page is executed, the corresponding sub-page code is executed simultaneously, and the first execution result of the function code page is compared with the second execution result of the sub-page code to obtain the environmental impact data of the associated function.

[0027] Please refer to Figure 5 , when the function code passes in function data, the page isolation device is triggered to execute isolation data. Since the isolation device creates a sub-page corresponding to the function, it will not affect the original program flow. After triggering, the associated function in the function code A of the sub-page is used to compare the execution result of the function code A and the execution result of the original function code A itself, so as to obtain the micro-environmental impact of the associated function on function A.

[0028] S2. Replace the function code page to be replaced with the corresponding sub-page code according to the page isolation requirement, and integrally associate the function code pages not replaced and the sub-page code that has been replaced in the user execution environment.

[0029] Specifically, confirm the function code page to be replaced according to the page isolation requirement. If the function codes of the function code page to be replaced and its sub-page are modified, the filtering conditions of the function code are configured correspondingly, and then the function code page is replaced with the corresponding sub-page code.

[0030] Please refer to Figure 6 , The execution of the sub-page is divided into the following steps: (1) Determine whether to modify the function code, that is, logically modify the conditional statement of the function code and the function code in its sub-page or the specific data to be modified, and then configure the filtering data, which is equivalent to the filtering conditional statement. Specifically, when the parameter meets the filtering data, operations such as data filtering, interception, or modification can be performed through the filtering condition; (2) Replace the secondary page. For example, if function 1 includes function pages 2 and 3, and if you want function page 2 to use the original function page and function page 3 to use the secondary page, then you need to replace the secondary page at this time. You only need to replace the physical address of the secondary page with the function page address; (3) Refresh the secondary page, which can be understood as performing a correlation integration on the pieced-together secondary page data. The meaning of piecing together the secondary page is as follows: Suppose the secondary page of function code page 01 is F1, the secondary page of function code page 02 is F2, and the secondary page of function code page 03 is F3. Then when 01 is executed, the secondary page execution condition is triggered, that is, 01 is executed and then F1 is executed, and 01 is not affected.

[0031] If the function composition of F1 is F2 and F3, then normally, if F1 is executed, only the secondary page of F1 is affected. At this time, if it is necessary to monitor F2 and F3, then 02 and 03 need to be replaced with the corresponding secondary pages to achieve correlation integration. This process can be (01, 02, 03) or (01, F2, 03) or (01, F2, F3).

[0032] Please refer to Figure 2 , Embodiment 2 of the present invention is: A terminal 1 for data storage based on page isolation, including a memory 2, a processor 3, and a computer program stored on the memory 2 and operable on the processor 3. When the processor 3 executes the computer program, it implements each step of the method for data storage based on page isolation in Embodiment 1.

[0033] In summary, the method and terminal for data storage based on page isolation provided by the present invention obtain each function code page in the user execution environment, sequentially copy each function code page and generate corresponding secondary page codes, and can simulate the user execution environment through the copied secondary pages. According to the page isolation requirement, replace the function code page to be replaced with the corresponding secondary page code, and perform correlation integration on the function code pages not replaced and the secondary page codes already replaced in the user execution environment. In this way, function data simulation can be performed without affecting the normal use of the function code pages in the user execution environment.

[0034] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention. All equivalent transformations made using the content of the specification and drawings of the present invention, or directly or indirectly applied in related technical fields, are equally included in the patent protection scope of the present invention.

Claims

1. A data storage method based on page isolation, characterized in that: Includes steps: Obtain each function code page in the user execution environment, copy each function code page in turn and generate corresponding sub-page code; According to the page isolation requirements, the function code page to be replaced is replaced with the corresponding sub-page code, and the unreplaced function code page and the replaced sub-page code in the user execution environment are associated and integrated.

2. A method for data storage based on page isolation according to claim 1, characterized in that: Get each function code page in the user execution environment, which previously included: A first function page and its associated function page are acquired according to execution data in the user execution environment, an environment page is constructed by copying the associated function page, and an address of the first function page is returned.

3. A data storage method based on page isolation according to claim 2, characterized in that: Acquiring a first function page and its associated function page according to execution data in the user execution environment, and building an environment page by copying the associated function page, further comprising: An association identifier is generated according to the function name and function number of the first function page and its associated function page.

4. A method for data storage based on page isolation according to claim 2, characterized in that: Obtain each function code page in the user execution environment, copy each function code page in turn and generate the corresponding sub-page code, and also include: When executing a function code page, the corresponding sub-page code is executed simultaneously, and a first execution result of the function code page is compared with a second execution result of the sub-page code to obtain environmental impact data of the associated function.

5. The method for data storage based on page isolation according to claim 1, characterized in that: According to the page isolation requirements, replace the function code page to be replaced with the corresponding sub-page code, including: The function code page to be replaced is confirmed according to the page isolation requirements. If the function code of the function code page to be replaced and its sub-page is modified, the filtering conditions of the function code are configured accordingly, and then the function code page is replaced with the corresponding sub-page code.

6. A terminal for data storage based on page isolation, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: Obtain each function code page in the user execution environment, copy each function code page in turn and generate corresponding sub-page code; According to the page isolation requirements, the function code page to be replaced is replaced with the corresponding sub-page code, and the unreplaced function code page and the replaced sub-page code in the user execution environment are associated and integrated.

7. A terminal for storing data based on page isolation according to claim 6, characterized in that: Get each function code page in the user execution environment, which previously included: A first function page and its associated function page are acquired according to execution data in the user execution environment, an environment page is constructed by copying the associated function page, and an address of the first function page is returned.

8. A terminal for storing data based on page isolation according to claim 7, characterized in that: Acquiring a first function page and its associated function page according to execution data in the user execution environment, and building an environment page by copying the associated function page, further comprising: An association identifier is generated according to the function name and function number of the first function page and its associated function page.

9. A terminal for storing data based on page isolation according to claim 7, characterized in that: Obtain each function code page in the user execution environment, copy each function code page in turn and generate the corresponding sub-page code, and also include: When executing a function code page, the corresponding sub-page code is executed simultaneously, and a first execution result of the function code page is compared with a second execution result of the sub-page code to obtain environmental impact data of the associated function.

10. A terminal for storing data based on page isolation according to claim 6, characterized in that: According to the page isolation requirements, replace the function code page to be replaced with the corresponding sub-page code, including: The function code page to be replaced is confirmed according to the page isolation requirements. If the function code of the function code page to be replaced and its sub-page is modified, the filtering conditions of the function code are configured accordingly, and then the function code page is replaced with the corresponding sub-page code.