Data security encryption method and system for computer system
By predicting the busy status of the computer system and controlling the length of overwritten data through a preset recurrent neural network model, it solves the problem of overwriting affecting user experience in the existing technology, achieves data security encryption, and improves user experience.
Patent Information
- Application Number
- CN202410824613.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The existing overwriting-based computer system data security encryption method will affect the user experience, especially when overwriting is performed when the system is busy, it may cause delays and freezes.
By obtaining the behavior records and status parameters of the target computer system, an action description vector is established, and the preset recurrent neural network model is used to predict the probability of the system's busy state in the future time period, and based on the predicted probability, it is decided whether to overwrite to ensure that the overwrite is started. The difference between the starting position and the latest read position is inversely proportional to the length of the overwritten data, ensuring that the read pointer is reset in time after overwriting.
It reduces the possibility of overwriting when busy, prevents the read pointer from deviating too far from the latest read position, improves user experience, and completes secure encryption of data without affecting user operations.
Smart Images

Figure CN118395476B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data protection, and in particular to a data security encryption method and system for a computer system. Background Art
[0002] In computer systems, the process of deleting data is not simply removing files from storage media. In fact, when a user deletes a file, the operating system marks the file as a space that can be overwritten, rather than immediately erasing it from the disk. This means that the deleted data still exists in the storage device, but is no longer recognized by the operating system.
[0003] In this case, although the file has been deleted, the data still exists on the disk and can still be reconstructed through special data recovery tools or techniques. Because the contents of the file are still stored in the physical location of the disk, it is just that the file system no longer tracks them. Therefore, even if the file is deleted, sensitive information may still be recovered, which poses a potential threat to data security.
[0004] In order to ensure that the data is completely and irreversibly deleted, an existing processing method is to overwrite the storage space of the deleted file and use new meaningless data to overwrite the data on the storage medium to achieve disguised "encryption". However, overwriting means that the computer system has to perform a large amount of IO reading work. If the overwriting is not performed at the right time, it will seriously affect the user experience. Therefore, people need a data security encryption method for computer systems based on overwriting that does not affect the user experience. Summary of the invention
[0005] Therefore, the present invention provides a computer system data security encryption method and system to solve the problem that the computer system data security encryption method based on overwriting in the prior art will affect the user experience.
[0006] The present invention provides a data security encryption method for a computer system, comprising:
[0007] Obtain the target computer system's behavior records and status parameters over a period of time;
[0008] According to the behavior records and state parameters, multiple action description vectors are established to obtain an action description sequence composed of the action description vectors;
[0009] Inputting the action description sequence into a preset recurrent neural network model, and predicting the probability that the target computer system is in a busy state within a future target time period based on the preset recurrent neural network model;
[0010] If the value of the predicted probability is lower than a preset threshold, obtaining a most recent read position of a read pointer in the target computer system and a free storage space table of the target computer system;
[0011] According to the read pointer position and the free storage space table, the overwriting start position and the overwriting data length are obtained, wherein the difference between the overwriting start position and the most recent read position is inversely proportional to the overwriting data length;
[0012] Call the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and reset the read pointer to the most recent read position.
[0013] As a preferred solution: the preset recurrent neural network model includes a first recurrent neural network model and a second recurrent neural network model connected in sequence, wherein the first recurrent neural network model is used to predict an initial prediction probability sequence that the target computer system is in a busy state at multiple moments within a target time period based on an action description sequence, and the second recurrent neural network model is used to predict the prediction probability that the target computer system is in a busy state within the target time period based on the initial prediction probability sequence.
[0014] As a preferred solution: the first recurrent neural network includes a first input layer, at least one first hidden layer and a first output layer connected in sequence, wherein the first input layer includes multiple first input nodes, and the number of the first input nodes is the same as the number of elements in the action description vector; the first output layer includes an output node; each first hidden layer includes multiple first hidden nodes, in the first hidden layer located on one side of the first input layer, each first hidden node is connected to each first input node, in two adjacent first hidden layers, the first hidden nodes of different layers are connected in pairs, in the first hidden layer located on one side of the first output layer, each first hidden node is connected to the first output node, and the first hidden nodes located in the same first hidden layer are connected in pairs, for cyclic prediction, the number of cycles of the first recurrent neural network is equal to the number of action description vectors in the action description sequence, and the first recurrent neural network outputs an initial prediction probability through the first output layer in each cycle.
[0015] As a preferred solution: the number of layers of the first hidden layer meets the following conditions:
[0016] ;
[0017] in, represents the number of the first hidden layer, Indicates rounding up to an integer. is the number of elements corresponding to the behavior records in the action description vector, is the number of elements corresponding to the state parameters in the action description vector, and are different weight parameters respectively.
[0018] As a preferred solution: the second recurrent neural network includes a second input layer, at least one second hidden layer and a second output layer connected in sequence, wherein the second input layer includes a second input node, and the second input node is connected to the first output node; the second output layer includes an output node; each second hidden layer includes multiple second hidden nodes, in the second hidden layer located on one side of the second input layer, each second hidden node is connected to the second input node, in two adjacent second hidden layers, the second hidden nodes of different layers are connected in pairs, in the second hidden layer located on one side of the second output layer, each second hidden node is connected to the second output node, and the second hidden nodes located in the same second hidden layer are connected in pairs, for cyclic prediction, the number of cycles of the second recurrent neural network is equal to the number of initial prediction probabilities, and the second recurrent neural network outputs the prediction probability only in the last cycle through the second output layer.
[0019] As a preferred solution: the method of obtaining the overwriting start position and the overwriting data length according to the reading pointer position and the free storage space table includes:
[0020] According to the free storage space table, obtain the starting address of the largest free storage space;
[0021] The starting address of the largest free storage space is used as the overwriting starting position;
[0022] The overwrite data length is obtained according to the read pointer position and the overwrite start position.
[0023] As a preferred solution: the method of obtaining the overwriting data length according to the reading pointer position and the overwriting start position includes:
[0024] Get the word length and interrupt cycle of the target computer system;
[0025] The overwritten data length is obtained according to the word length, interruption time, read pointer position and overwrite starting position of the target computer system, wherein the overwritten data length is inversely proportional to the difference between the overwrite starting position and the most recent read position, the overwritten data length is proportional to the word length, and the overwritten data length is inversely proportional to the interruption period.
[0026] As a preferred solution: the calling read pointer starts to overwrite from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and the read pointer is reset to the most recent read position, including:
[0027] Move the read pointer to the overwrite start position;
[0028] Moving the read pointer backward in sequence along the physical logical order of the storage device in the target computer system until the read pointer movement length reaches the overwritten data length, and resetting the read pointer to the most recent read position;
[0029] In the process of moving the read pointer:
[0030] If the storage unit pointed to by the read pointer is the free storage space recorded in the free storage space table, the storage unit pointed to by the read pointer is overwritten, and the free storage space table is updated;
[0031] If the storage unit pointed to by the read pointer is not the free storage space recorded in the free storage space table, the read pointer continues to move backward.
[0032] As a preferred solution: overwriting the storage unit pointed to by the read pointer includes:
[0033] Based on a preset probability, the storage unit pointed to by the read pointer is bit-reversed.
[0034] The present invention also provides a data security encryption system for a computer system, comprising:
[0035] The monitoring module is used to obtain the behavior records and status parameters of the target computer system over a period of time;
[0036] A description module is used to establish multiple action description vectors according to the behavior records and state parameters, and obtain an action description sequence composed of the action description vectors;
[0037] A prediction module, used for inputting the action description sequence into a preset recurrent neural network model, and predicting the prediction probability of the target computer system being in a busy state within a future target time period based on the preset recurrent neural network model;
[0038] a preparation module, for obtaining a most recent read position of a read pointer in a target computer system and a free storage space table of the target computer system if the value of the predicted probability is lower than a preset threshold;
[0039] An evaluation module, used for obtaining an overwriting start position and an overwriting data length according to a read pointer position and a free storage space table, wherein a difference between the overwriting start position and a most recent read position is inversely proportional to the overwriting data length;
[0040] The encryption module is used to call the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and reset the read pointer to the most recent read position.
[0041] The beneficial effects of adopting the above embodiment are:
[0042] The present invention provides a data security encryption method and system for a computer system, which establishes multiple action description vectors to obtain an action description sequence through the behavior records and state parameters of the target computer system in the past period of time, and then predicts the predicted probability of the target computer system being busy in the future period of time through a preset recurrent neural network model, and then decides whether to overwrite based on the predicted probability, and when overwriting, ensures that the difference between the overwriting start position and the most recent read position is inversely proportional to the overwriting data length, and the read pointer is reset to the most recent read position after the overwriting is completed. Compared with the prior art, the present invention not only predicts the probability of the target computer system being busy through a preset recurrent neural network, reduces the possibility of the target computer system overwriting when busy, and ensures user experience, but also controls the overwriting data length based on the difference between the overwriting start position and the most recent read position, avoids the situation where the read pointer deviates too far from the most recent read position, and ensures that after a data overwriting action is performed, the read pointer will return to the most recent read position of the previous task in a timely manner. At this time, if the user re-performs some operations to increase the load of the computer, delays, freezes, waiting, etc. caused by the change of the read pointer will not occur, further improving the user experience, while completing the overwriting action to ensure data security and achieve encryption. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A method flow chart of an embodiment of a data security encryption method for a computer system provided by the present invention;
[0044] Figure 2 An expansion diagram of a preset recurrent neural network provided by the present invention on a time scale;
[0045] Figure 3 for Figure 1 The method flow chart of step S105;
[0046] Figure 4 This is a system structure diagram of an embodiment of a data security encryption system for a computer system provided by the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Combination Figure 1 As shown, a specific embodiment of the present invention discloses a data security encryption method for a computer system, comprising:
[0049] S101, obtaining the behavior records and status parameters of the target computer system in the past period of time;
[0050] S102, establishing multiple action description vectors according to the behavior records and state parameters, and obtaining an action description sequence composed of the action description vectors;
[0051] S103, inputting the action description sequence into a preset recurrent neural network model, and predicting the probability that the target computer system is in a busy state within a future target time period based on the preset recurrent neural network model;
[0052] S104, if the value of the predicted probability is lower than a preset threshold, obtaining the most recent read position of the read pointer in the target computer system and a free storage space table of the target computer system;
[0053] S105, obtaining an overwriting start position and an overwriting data length according to the read pointer position and the free storage space table, wherein the difference between the overwriting start position and the most recent read position is inversely proportional to the overwriting data length;
[0054] S106, calling the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and resetting the read pointer to the most recent read position.
[0055] It should be noted that the "busy state" of the target computer system in the present invention does not mean that the computer is in a high-load or high-load working state, but refers to a state that affects the user's operating experience. For example, the user is performing video editing work and the system load is relatively low. If the system performs a disk overwrite operation at this time, it will cause the video editing software to respond slowly, and the user will encounter a freeze phenomenon when editing and previewing the video, which seriously affects the editing efficiency and experience. Therefore, although the computer has a low load when performing video editing, its state can still be considered to be a "busy state". For another example, if the computer is performing data mining, machine learning training, large file downloading and other work, although the system load is high at this time, since the user's operation does not depend on the system's response speed (it can be understood that the user itself is in a waiting state), then the system performs a data overwrite operation at this time, and the user will not feel a significant impact, and the work can still proceed smoothly. At this time, the state of the computer can be considered to be a "non-busy state".
[0056] Similarly, it should be emphasized that the preset recurrent neural network in the present invention does not "determine" the current load of the target computer system based on the computer's behavior records and state parameters, but predicts the usage pattern of the target computer system by users in the future, and analyzes whether the usage pattern is suitable for data overwriting, that is, it is used to predict whether the target computer system will be in the above-mentioned "busy state" in the future, so as to avoid inconvenience to the user when the computer is in the overwriting state when the user needs to operate the computer in the future. In practice, it is difficult to predict how the user will use the computer in the future, so it is difficult to obtain specific results using a fixed mathematical model, and therefore it is difficult to accurately decide whether to overwrite. The present invention uses a preset recurrent neural network to predict the probability of the computer being in a busy state, and uses this probability as a reference to decide whether to overwrite, which improves the accuracy of the overwriting decision to a certain extent. In addition, the high performance of today's hardware greatly improves the user experience, so that the target computer system can complete data overwriting without the user noticing.
[0057] It is precisely because of the preset role of the recurrent neural network in the present invention that the method involved in the present invention can be run at any time. Therefore, the data security encryption method of the computer system can be predicted when the computer is under low operating pressure, without affecting the normal use of the target computer system.
[0058] The read pointer in the above process refers to a pointer pointing to a specific location in the memory or storage device. Depending on the actual situation, it can refer to a virtual pointer in the program or an entity that reads data in the hardware device. For example, for a solid-state drive, the read pointer can be a logical address or a logical block address to indicate the location of the data to be read in the storage device, while for a mechanical hard disk, the read pointer can be a magnetic head that reads data. The function of the read pointer is to indicate the location of the data that the program currently needs to read, so that the program can accurately access and read the data stored at that location. In the memory, the read pointer can point to a memory address to read the data stored in the memory address. In a storage device (such as a hard disk, solid-state drive, etc.), the read pointer can point to a specific sector or block of the disk to read the data stored in the sector or block.
[0059] Compared with the prior art, the present invention not only predicts the probability that the target computer system is busy through a preset recurrent neural network, reduces the possibility of overwriting when the target computer system is busy, and ensures user experience, but also controls the overwrite data length based on the difference between the overwrite start position and the most recent read position to avoid the read pointer deviating too far from the most recent read position, and ensures that after a data overwrite action, the read pointer will return to the most recent read position of the previous task in a timely manner. At this time, if the user performs some operations again to increase the computer load, delays, freezes, waiting and other problems caused by changes in the read pointer will not occur, further improving the user experience. At the same time, the overwrite action is completed to ensure data security and achieve encryption.
[0060] Specifically, in step S101, behavior records refer to records of actions related to user operations, and state parameters refer to parameters of some states related to the target computer system itself. For example, behavior records may include: user login records (login time, login location, login user), file operation records (time and path of creating, deleting, opening, closing, and modifying files), network activity records (websites visited, communication ports), application usage records (startup, shutdown, running time), system logs (system errors, warnings, events), etc. State parameters may include: CPU usage, memory usage, disk read and write speed, network traffic, voltage level, etc.
[0061] The action description vector in step S102 is a vector established based on the above behavior records and state parameters. The specific establishment method can be flexibly formulated according to the actual situation. These vectors represent the actions and states of the target computer system in the past period of time and can be used to predict the busyness level of the computer in the future period of time. A specific example is:
[0062] Set the past period to the past 5 minutes. The parameters collected during these 5 minutes include:
[0063] Behavior Record:
[0064] Mouse coordinates: (x1,y1), (x2,y2), ...;
[0065] Status parameters:
[0066] CPU usage: average 70%;
[0067] Memory usage: average 75%;
[0068] Memory replacement rate: 5% on average;
[0069] Disk IO: read speed 100MB / s, write speed 80MB / s;
[0070] Network traffic: total traffic 100MB;
[0071] Then the action description vector established can be:
[0072] [Δx,Δy,0.7,0.75,0.05,100,80,100];
[0073] The elements in the above vector are: the change value of the mouse in the x-axis direction, the change value of the mouse in the y-axis direction, CPU usage, memory occupancy, memory replacement rate, disk read speed, disk write speed, and network traffic.
[0074] Furthermore, in a preferred embodiment, in the above step S103, the action description sequence is input into a preset recurrent neural network model, and the preset recurrent neural network model is used to predict the probability that the target computer system is in a busy state within the future target time period. The preset recurrent neural network model includes a first recurrent neural network model and a second recurrent neural network model connected in sequence, wherein the first recurrent neural network model is used to predict an initial prediction probability sequence that the target computer system is in a busy state at multiple moments within the target time period based on the action description sequence, and the second recurrent neural network model is used to predict the prediction probability that the target computer system is in a busy state within the target time period based on the initial prediction probability sequence.
[0075] In this embodiment, two recurrent neural networks will be spliced to form a complete preset recurrent neural network. Its significance lies in that the goal of the present invention is broken down into two more specific problems. The first is to predict the state of the target computer system at multiple times based on the action description sequence, and obtain an initial prediction probability sequence. Then, the problem is analyzed from an overall perspective, and the prediction of the computer system state within the target time period is realized according to the change law of the initial prediction probability sequence. On the one hand, the present invention uses two recurrent neural networks to splice, so that the first recurrent neural network model and the second recurrent neural network model can be trained separately, providing convenience for model deployment and maintenance. At the same time, the mode of splicing two recurrent neural networks significantly reduces the parameters that need to be trained and reduces the amount of data, making the preset recurrent neural network model lighter, faster in operation, and more practical.
[0076] Specifically, in a preferred embodiment, the first recurrent neural network includes a first input layer, at least one first hidden layer and a first output layer connected in sequence, wherein the first input layer includes multiple first input nodes, and the number of the first input nodes is the same as the number of elements in the action description vector; the first output layer includes an output node; each first hidden layer includes multiple first hidden nodes, in the first hidden layer located on one side of the first input layer, each first hidden node is connected to each first input node, in two adjacent first hidden layers, the first hidden nodes of different layers are connected in pairs, in the first hidden layer located on one side of the first output layer, each first hidden node is connected to the first output node, and the first hidden nodes located in the same first hidden layer are connected in pairs for cyclic prediction, the number of cycles of the first recurrent neural network is equal to the number of action description vectors in the action description sequence, and the first recurrent neural network outputs an initial prediction probability through the first output layer in each cycle.
[0077] The present invention adopts the first recurrent neural network of the above structure to output the initial prediction probability, so that each cycle not only considers the action description vector input this time, but also considers the result obtained by the analysis during the previous cycle, and combines the time series change relationship to obtain a more accurate initial prediction probability. For example, if the current action description vector reflects that the computer disk IO volume is large and the network traffic is large, then at this time, if the probability that the target computer obtained by the previous cycle analysis is busy is high, and the user action frequency represented in this action description vector is high, then it means that the user may be playing games at this time, and the probability of still playing games in the next period of time is also high, then the overwrite action should not be performed at this time, and the initial prediction probability that the target computer system output in this cycle is busy is high. On the contrary, if the probability that the target computer obtained by the previous cycle analysis is busy is low, and the user action frequency represented in this action description vector is low, it may indicate that the user is in the state of downloading files, and the data overwrite action can be started at this time, and the initial prediction probability that the target computer system output in this cycle is busy is low.
[0078] Furthermore, in a preferred embodiment, the number of layers of the first hidden layer satisfies the following conditions:
[0079] ;
[0080] in, represents the number of the first hidden layer, Indicates rounding up to an integer. is the number of elements corresponding to the behavior records in the action description vector, is the number of elements corresponding to the state parameters in the action description vector, and are different weight parameters respectively.
[0081] In practice, if there are too many first hidden layers in the first recurrent neural network, it may cause the data volume to be too large, the prediction time to be too long, etc., affecting the user experience. If there are too few first hidden layers, inaccurate predictions may occur. Therefore, in this embodiment, the above formula is used to further determine the number of first hidden layers. There are three square root terms in the above formula, which correspond to the interaction relationship between various behavior records, the interaction relationship between various state parameters, and the interaction relationship between behavior records and state parameters. Thus, a minimum number of first hidden layers is obtained to ensure prediction accuracy.
[0082] Furthermore, in a preferred embodiment, the second recurrent neural network includes a second input layer, at least one second hidden layer and a second output layer connected in sequence, wherein the second input layer includes a second input node, and the second input node is connected to the first output node; the second output layer includes an output node; each second hidden layer includes multiple second hidden nodes, in the second hidden layer located on one side of the second input layer, each second hidden node is connected to the second input node, in two adjacent second hidden layers, the second hidden nodes of different layers are connected in pairs, in the second hidden layer located on one side of the second output layer, each second hidden node is connected to the second output node, and the second hidden nodes located in the same second hidden layer are connected in pairs, for cyclic prediction, the number of cycles of the second recurrent neural network is equal to the number of initial prediction probabilities, and the second recurrent neural network outputs the prediction probability only in the last cycle through the second output layer.
[0083] Similarly, the second recurrent neural network of the above structure can analyze the mutual change relationship between multiple initial prediction probabilities, thereby obtaining a more accurate final prediction result. Unlike the first preset recurrent neural network, due to the small amount of input information, only 1-2 second hidden layers are required in the second recurrent neural network.
[0084] When the number of action description vectors in the action description sequence is 3, and the number of the first hidden layer in the first recurrent neural network is 1, and the number of the second hidden layer in the second recurrent neural network is 1, the time expansion diagram of the preset recurrent neural network in this embodiment is as follows: Figure 2 shown.
[0085] Further, combined with Figure 3 As shown, in a preferred embodiment, S105, according to the reading pointer position and the free storage space table, obtaining the overwriting start position and the overwriting data length specifically includes:
[0086] S301, obtaining the starting address of the largest free storage space according to the free storage space table;
[0087] S302, taking the starting address of the largest free storage space as the overwriting starting position;
[0088] S303: Obtain the overwriting data length according to the read pointer position and the overwriting start position.
[0089] In the above process, selecting the starting address of the largest free storage space as the overwriting starting address can improve data security, because the larger the continuous storage space, the greater the possibility that the storage space is a complete file (for example, the file just deleted has not been overwritten), so in this embodiment, starting to overwrite from the starting address of the largest free storage space can improve the timeliness of overwriting to a certain extent. For those file storage spaces that are partially overwritten but not completely overwritten, since they have lost some data, the urgency of confidentiality is not as high as that of the largest free storage space, so they can be left for the next time.
[0090] On the other hand, in this embodiment, the difference between the overwriting start position and the most recent read position is controlled to be inversely proportional to the length of the overwritten data, in order to control the timeliness of resetting the read pointer. For example, if the difference between the overwriting start position and the most recent read position is large, the time it takes for the read pointer to move to the overwriting start position is longer, and the shorter the overwritten data is, the more likely it is that the read pointer can return to the most recent read position in time and be ready to continue the user's previous work.
[0091] Further, in a preferred embodiment, the above step S303, obtaining the overwritten data length according to the read pointer position and the overwriting start position, specifically includes:
[0092] Get the word length and interrupt cycle of the target computer system;
[0093] The overwritten data length is obtained according to the word length, interruption time, read pointer position and overwrite starting position of the target computer system, wherein the overwritten data length is inversely proportional to the difference between the overwrite starting position and the most recent read position, the overwritten data length is proportional to the word length, and the overwritten data length is inversely proportional to the interruption period.
[0094] The above process further combines the word length and interrupt cycle of the target computer system to determine the length of the overwritten data, so as to further improve the user experience. The word length of a computer refers to the number of binary data bits that a computer processor can process at one time, which can also be understood as the size of the data block that can be processed at one time. A longer word length usually means that the computer can process more data at one time, thereby improving computing efficiency and performance. The size of the word length determines important parameters such as the computer's addressing capability, numerical accuracy, and instruction length. Therefore, the longer the computer word length, the longer the overwritten data length can be, so as to maximize the performance of the computer.
[0095] The interrupt cycle refers to the time interval for the computer to process an interrupt request. During the operation of the computer, when an external event occurs that needs to be processed immediately (such as device input and output, clock interruption, etc.), the computer will suspend the current task according to the set interrupt cycle and process the interrupt request instead. A shorter interrupt cycle can enable the computer to respond to various events more promptly, improving the real-time performance and stability of the system. The shorter the interrupt cycle means that the computer has a stronger ability to process problems in parallel, and at this time the length of the overwritten data can be increased to improve data security.
[0096] Further, in a preferred embodiment, the above step S106, calling the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and resetting the read pointer to the most recent read position, specifically includes:
[0097] Move the read pointer to the overwrite start position;
[0098] Moving the read pointer backward in sequence along the physical logical order of the storage device in the target computer system until the read pointer movement length reaches the overwritten data length, and resetting the read pointer to the most recent read position;
[0099] In the process of moving the read pointer:
[0100] If the storage unit pointed to by the read pointer is the free storage space recorded in the free storage space table, the storage unit pointed to by the read pointer is overwritten, and the free storage space table is updated;
[0101] If the storage unit pointed to by the read pointer is not the free storage space recorded in the free storage space table, the read pointer continues to move backward.
[0102] The significance of the above process is that when the read pointer is overwriting data, it will only move back and forth once, that is, after moving to the farthest length of the overwritten data, it will return to the most recent reading position. In this process, data is overwritten as much as possible, that is, the actual amount of overwritten data may not reach the overwritten data length, but this design can ensure that the read pointer returns to the most recent reading position in time to ensure user experience.
[0103] Furthermore, in a preferred embodiment, overwriting the storage unit pointed to by the read pointer includes:
[0104] Based on a preset probability, the storage unit pointed to by the read pointer is bit-reversed.
[0105] The above method is simple and easy to implement. In practice, other methods can also be used as needed, such as:
[0106] Random data overwrite: Overwrite deleted files in the storage space with randomly generated data (such as random bit sequences), making the original data difficult to recover.
[0107] Fixed pattern overwrite: Use a fixed data pattern (such as all 0s, all 1s, or other specific patterns) to repeatedly write to the storage space to ensure that the original data is completely overwritten and cannot be recovered.
[0108] Combination Figure 4 As shown, the present invention also provides a data security encryption system for a computer system, comprising:
[0109] Monitoring module 410, used to obtain the behavior records and status parameters of the target computer system in the past period of time;
[0110] Description module 420, used to establish multiple action description vectors according to the behavior records and state parameters, and obtain an action description sequence composed of the action description vectors;
[0111] A prediction module 430, for inputting the action description sequence into a preset recurrent neural network model, and predicting the probability of the target computer system being in a busy state within a future target time period based on the preset recurrent neural network model;
[0112] A preparation module 440 is used to obtain a most recent read position of a read pointer in a target computer system and a free storage space table of the target computer system if the value of the predicted probability is lower than a preset threshold;
[0113] An evaluation module 450, configured to obtain an overwriting start position and an overwriting data length according to a read pointer position and a free storage space table, wherein a difference between the overwriting start position and a most recent read position is inversely proportional to the overwriting data length;
[0114] The encryption module 460 is used to call the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and reset the read pointer to the most recent reading position.
[0115] It should be noted here that the corresponding system provided in the above embodiments can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents in the above method embodiments, which will not be repeated here.
[0116] The present invention provides a data security encryption method and system for a computer system, which establishes multiple action description vectors to obtain an action description sequence through the behavior records and state parameters of the target computer system in the past period of time, and then predicts the predicted probability of the target computer system being busy in the future period of time through a preset recurrent neural network model, and then decides whether to overwrite based on the predicted probability, and when overwriting, ensures that the difference between the overwriting start position and the most recent read position is inversely proportional to the overwriting data length, and the read pointer is reset to the most recent read position after the overwriting is completed. Compared with the prior art, the present invention not only predicts the probability of the target computer system being busy through a preset recurrent neural network, reduces the possibility of the target computer system overwriting when busy, and ensures user experience, but also controls the overwriting data length based on the difference between the overwriting start position and the most recent read position, avoids the situation where the read pointer deviates too far from the most recent read position, and ensures that after a data overwriting action is performed, the read pointer will return to the most recent read position of the previous task in a timely manner. At this time, if the user re-performs some operations to increase the load of the computer, delays, freezes, waiting, etc. caused by the change of the read pointer will not occur, further improving the user experience, while completing the overwriting action to ensure data security and achieve encryption.
[0117] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0118] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data security encryption method for a computer system, characterized in that: include: Obtain the target computer system's behavior records and status parameters over a period of time; According to the behavior records and state parameters, multiple action description vectors are established to obtain an action description sequence composed of the action description vectors; Inputting the action description sequence into a preset recurrent neural network model, and predicting the probability that the target computer system is in a busy state within a future target time period based on the preset recurrent neural network model; If the value of the predicted probability is lower than a preset threshold, obtaining a most recent read position of a read pointer in the target computer system and a free storage space table of the target computer system; According to the read pointer position and the free storage space table, the overwriting start position and the overwriting data length are obtained, wherein the difference between the overwriting start position and the most recent read position is inversely proportional to the overwriting data length; Call the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and reset the read pointer to the most recent read position.
2. The data security encryption method of a computer system according to claim 1, characterized in that: The preset recurrent neural network model includes a first recurrent neural network model and a second recurrent neural network model connected in sequence, wherein the first recurrent neural network model is used to predict an initial prediction probability sequence of the target computer system being in a busy state at multiple moments within a target time period based on an action description sequence, and the second recurrent neural network model is used to predict the prediction probability of the target computer system being in a busy state within the target time period based on the initial prediction probability sequence.
3. The data security encryption method of a computer system according to claim 2, characterized in that: The first recurrent neural network includes a first input layer, at least one first hidden layer and a first output layer connected in sequence, wherein the first input layer includes multiple first input nodes, and the number of the first input nodes is the same as the number of elements in the action description vector; the first output layer includes an output node; each first hidden layer includes multiple first hidden nodes, in the first hidden layer located on one side of the first input layer, each first hidden node is connected to each first input node, in two adjacent first hidden layers, first hidden nodes of different layers are connected in pairs, in the first hidden layer located on one side of the first output layer, each first hidden node is connected to the first output node, and first hidden nodes located in the same first hidden layer are connected in pairs for cyclic prediction, the number of cycles of the first recurrent neural network is equal to the number of action description vectors in the action description sequence, and the first recurrent neural network outputs an initial prediction probability through the first output layer in each cycle.
4. The data security encryption method of a computer system according to claim 3, characterized in that: The number of layers of the first hidden layer meets the following conditions: ; in, represents the number of the first hidden layer, Indicates rounding up to an integer. is the number of elements corresponding to the behavior records in the action description vector, is the number of elements corresponding to the state parameters in the action description vector, and are different weight parameters respectively.
5. The data security encryption method of a computer system according to claim 3, characterized in that: The second recurrent neural network comprises a second input layer, at least one second hidden layer and a second output layer connected in sequence, wherein the second input layer comprises a second input node, and the second input node is connected to the first output node; The second output layer includes an output node; each second hidden layer includes multiple second hidden nodes, in the second hidden layer located on the second input layer side, each second hidden node is connected to the second input node, in two adjacent second hidden layers, the second hidden nodes of different layers are connected in pairs, in the second hidden layer located on the second output layer side, each second hidden node is connected to the second output node, and the second hidden nodes located in the same second hidden layer are connected in pairs for cyclic prediction, the number of cycles of the second cyclic neural network is equal to the number of initial prediction probabilities, and the second cyclic neural network outputs the prediction probability only in the last cycle through the second output layer.
6. The data security encryption method of a computer system according to claim 1, characterized in that: The method of obtaining the overwriting start position and the overwriting data length according to the reading pointer position and the free storage space table includes: According to the free storage space table, obtain the starting address of the largest free storage space; The starting address of the largest free storage space is used as the overwriting starting position; The overwrite data length is obtained according to the read pointer position and the overwrite start position.
7. The data security encryption method of a computer system according to claim 6, characterized in that: The method of obtaining the overwriting data length according to the reading pointer position and the overwriting starting position includes: Get the word length and interrupt cycle of the target computer system; The overwritten data length is obtained according to the word length, interruption time, read pointer position and overwrite starting position of the target computer system, wherein the overwritten data length is inversely proportional to the difference between the overwrite starting position and the most recent read position, the overwritten data length is proportional to the word length, and the overwritten data length is inversely proportional to the interruption period.
8. The data security encryption method of a computer system according to claim 6, characterized in that: The calling read pointer starts to overwrite from the overwrite start position until the size of the data to be overwritten reaches the overwrite data length, and resets the read pointer to the most recent read position, including: Move the read pointer to the overwrite start position; Moving the read pointer backward in sequence along the physical logical order of the storage device in the target computer system until the read pointer movement length reaches the overwritten data length, and resetting the read pointer to the most recent read position; In the process of moving the read pointer: If the storage unit pointed to by the read pointer is the free storage space recorded in the free storage space table, the storage unit pointed to by the read pointer is overwritten, and the free storage space table is updated; If the storage unit pointed to by the read pointer is not the free storage space recorded in the free storage space table, the read pointer continues to move backward.
9. The data security encryption method of a computer system according to claim 8, characterized in that: The overwriting of the storage unit pointed to by the read pointer includes: Based on a preset probability, the storage unit pointed to by the read pointer is bit-reversed.
10. A data security encryption system for a computer system, characterized in that: include: The monitoring module is used to obtain the behavior records and status parameters of the target computer system over a period of time; A description module is used to establish multiple action description vectors according to the behavior records and state parameters, and obtain an action description sequence composed of the action description vectors; A prediction module, used for inputting the action description sequence into a preset recurrent neural network model, and predicting the prediction probability of the target computer system being in a busy state within a future target time period based on the preset recurrent neural network model; a preparation module, for obtaining a most recent read position of a read pointer in a target computer system and a free storage space table of the target computer system if the value of the predicted probability is lower than a preset threshold; An evaluation module, used for obtaining an overwriting start position and an overwriting data length according to a read pointer position and a free storage space table, wherein a difference between the overwriting start position and a most recent read position is inversely proportional to the overwriting data length; The encryption module is used to call the read pointer to start overwriting from the overwriting start position until the size of the data to be overwritten reaches the overwriting data length, and reset the read pointer to the most recent read position.
