A method and system for protecting virtual memory data
A technology for virtual memory and protection system, applied in the field of virtual memory data protection method and system, can solve problems such as poor memory data protection effect and inability to protect from the root cause, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] Please refer to Figure 1-4 , providing a virtual memory data protection method, based on the application layer to realize the call of the writing function. Specifically can include:
[0066] In the virtual memory of the windows system process, apply a virtual memory space in the virtual memory through the VirtualAlloc or VirtualAlocEx function as a virtual memory disk to save the virtual memory data. After obtaining the address of the virtual memory disk, use the VirtualProtectEx function to set the protection attribute of this piece of virtual memory space to a read-only attribute; that is, use the protection attribute of the virtual memory space itself to protect the virtual memory disk. When reading attributes, any write operation of the program will cause access violations; this feature can prevent illegal elements from writing to the virtual memory disk, resulting in unpredictable (such as array out of bounds, etc.) errors, resulting in virtual memory data being ...
Embodiment 2
[0072] Please refer to Figure 5 with Image 6 , on the basis of Embodiment 1, this embodiment provides a protection system for virtual memory data, including:
[0073] Setting module 1, which is used to set the attribute of the virtual memory disk as read-only; it can be set by the VirtualProtectEx function;
[0074] The preset module 2 is used to preset a legal function, and the legal write operation of the virtual memory disk calls the legal function;
[0075] Call module 3 for calling the write function;
[0076] Intercepting module 4, is used for intercepting described writing function, and the address of revising described writing function is the address of described legal function; Optionally adopt HOOK API technology interception or other intercepting technology to realize; Described intercepting module 4 specifically includes the first A modifying unit 41 is used to modify the attribute of the virtual memory disk to be readable and writable; an operating unit 42 is...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


