Data security processing method and system
By constructing a sample and network feature database, data security protection rules are formed to identify and process unsafe data, which solves the problem of insufficient security in the data processing process in the existing technology, and realizes the security improvement of the data processing process and data partition storage.
Patent Information
- Application Number
- CN202410119897.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-29
AI Technical Summary
In the existing data processing process, data is only encrypted, which cannot effectively guarantee the security of data during processing, resulting in insufficient data security.
By constructing a sample database and a network feature database, the first and second data security protection rules are formed to identify the security of the data to be processed, intercept and store when unsafe events are identified, and set up an exception database to isolate unsafe data.
It effectively improves the security of the data processing process, ensures the integrity and confidentiality of data during processing, avoids data leakage and loss, and improves the security of data circulation.
Smart Images

Figure CN117828688B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a data security processing method and system. Background Art
[0002] Data security processing, as the name implies, is to use various security protection technologies to prevent data from being added, modified, lost or leaked during the process of data collection, storage, retrieval, processing, transformation and transmission, so as to ensure the availability, integrity and confidentiality of data and the security of data circulation. However, in the existing data processing process, data is only encrypted, which can only ensure the security of data during transmission and storage, but cannot effectively ensure the security of data processing, resulting in insufficient data security. Summary of the invention
[0003] The present invention provides a data security processing method and system to solve the problem of insufficient security in the data processing process in the prior art.
[0004] In one aspect, the present invention provides a data security processing method, comprising:
[0005] Obtain sample data from a specified data source or input through human-computer interaction, and build a sample database based on the sample data;
[0006] Acquire network feature data from a specified data source or input through human-computer interaction, and construct a network feature database based on the network feature data;
[0007] After each preset optimization cycle, the sample data in the sample database is learned to form a first data security protection rule; the sample data in the network feature database is learned to form a second data security protection rule;
[0008] Receive the data to be processed and the target network characteristic data of the data to be processed when it is received, identify the data to be processed by using the first data security protection rule, and obtain a first security identification result; identify the target network characteristic data of the data to be processed when it is received by using the second data security protection rule, and obtain a second security identification result;
[0009] Perform security event identification according to the first security identification result and the second security identification result to obtain a data security event identification result; the data security event identification result includes the existence of an unsafe event or the absence of an unsafe event;
[0010] When the data security event identification result is that there is an unsafe event, the current data is intercepted and stored in the abnormal database, and the timestamp and data source are associated and stored;
[0011] When the data security event identification result is that there is no unsafe event, the current data is stored in a security database and stored and processed according to preset rules.
[0012] Furthermore, it also includes: optimizing the second data security protection rule to form a third data protection rule for identifying network security incidents, and identifying network security through the third data protection rule. If the network is unsafe, the network switch used for physical isolation will be disconnected to enhance data security processing performance.
[0013] Furthermore, obtaining sample data from a designated data source or input through human-computer interaction, and constructing a sample database based on the sample data, includes:
[0014] Obtain negative samples or positive samples from a specified data source or input through human-computer interaction to obtain sample data;
[0015] Obtain the positive sample labels and negative sample labels from the specified data source or input through human-computer interaction to obtain the sample labels of the sample data;
[0016] The positive samples and negative samples are normalized to obtain normalized positive samples and negative samples, that is, to obtain normalized sample data;
[0017] A sample database is constructed based on the standardized sample data and the sample labels of the sample data.
[0018] Further, obtaining network feature data from a designated data source or input through human-computer interaction, and constructing a network feature database based on the network feature data, including:
[0019] Obtaining network feature data corresponding to each positive sample or negative sample processing process of a specified data source or input through human-computer interaction, the network feature data including Ethernet type, connection start time, IPv4 destination address, IPv4 source address, sender host address, receiver address, TCP source port, TCP destination port, UDP source port, UDP destination port, ICMP type, IPv4 header length, UDP length, TCP length, IP protocol, ICMP code, connection duration, percentage of SYN error connections within a preset time, percentage of REJ error connections within a preset time, percentage of identical connections within a preset time, number of connections with the same host as the current connection in a preset number of historical connections, and number of connections of the same service type in a preset number of historical connections;
[0020] Obtaining label data corresponding to network feature data from a designated data source or input through human-computer interaction, wherein the label data corresponding to the network feature data indicates the presence or absence of an unsafe event;
[0021] A network feature database is constructed based on the network feature data and the label data corresponding to the network feature data.
[0022] Furthermore, the sample data in the sample database is learned to form a first data security protection rule, including: initializing the first initial rule using a neural network, and optimizing the first initial rule through the sample data in the sample database and the sample labels corresponding to the sample data to form the first data security protection rule.
[0023] Furthermore, the first initial rule is optimized through the sample data in the sample database and the sample labels corresponding to the sample data to form a first data security protection rule, including:
[0024] Set counter t=1 and maximum number of optimization times T;
[0025] Using the sample data in the sample database as input data of the first initial rule, using the sample label corresponding to the sample data as expected output data of the first initial rule, and obtaining the objective function value corresponding to the first initial rule;
[0026] Based on the objective function value corresponding to the first initial rule, adjusting the first initial rule to obtain an adjusted first initial rule;
[0027] Determine whether the count value of counter t is greater than or equal to the maximum optimization times T. If so, use the current first initial rule as the first data security protection rule, otherwise return to the step of obtaining the objective function value corresponding to the first initial rule.
[0028] Furthermore, it also includes: forming an optimization rule for an adaptive learning rate, optimizing the first initial rule according to the optimization rule for the adaptive learning rate, until an optimization end condition is met, and forming a first data security protection rule.
[0029] Furthermore, the sample data in the network feature database is studied to form a second data security protection rule, including:
[0030] Set counter t=1 and maximum number of optimization times T;
[0031] Using the network feature data in the network feature database as input data of the second initial rule, using the sample label corresponding to the network feature data as the expected output data of the second initial rule, and obtaining the objective function value corresponding to the second initial rule;
[0032] Based on the objective function value corresponding to the second initial rule, adjusting the second initial rule to obtain an adjusted second initial rule;
[0033] Determine whether the count value of counter t is greater than or equal to the maximum optimization times T. If so, use the current second initial rule as the second data security protection rule, otherwise return to the step of obtaining the objective function value corresponding to the second initial rule.
[0034] Furthermore, it also includes: forming an optimization rule for the adaptive learning rate, optimizing the second initial rule according to the optimization rule for the adaptive learning rate until the optimization end condition is met, and forming a second data security protection rule.
[0035] On the other hand, the present invention provides a data security processing system, including a first data acquisition module, a second data acquisition module, a data learning module, a first data identification module, a second data identification module, a first data processing module, and a second data processing module;
[0036] The first data acquisition module is used to acquire sample data from a specified data source or input through human-computer interaction, and to construct a sample database based on the sample data;
[0037] The second data acquisition module is used to acquire network feature data from a specified data source or input through human-computer interaction, and to construct a network feature database based on the network feature data;
[0038] The data learning module is used to learn the sample data in the sample database to form a first data security protection rule after each preset optimization cycle; and to learn the sample data in the network feature database to form a second data security protection rule;
[0039] The first data identification module is used to receive the data to be processed and the target network characteristic data of the data to be processed when it is received, identify the data to be processed by the first data security protection rule to obtain a first security identification result; identify the target network characteristic data of the data to be processed when it is received by the second data security protection rule to obtain a second security identification result;
[0040] The second data identification module is used to perform security event identification according to the first security identification result and the second security identification result, and obtain a data security event identification result; the data security event identification result includes the existence of an unsafe event or the absence of an unsafe event;
[0041] The first data processing module is used to intercept the current data when the data security event identification result is that there is an unsafe event, and store the intercepted current data in the abnormal database, and at the same time associate and store the timestamp and the data source;
[0042] The second data processing module is used to store the current data in a security database and store and process the data according to preset rules when the data security event identification result is that there is no unsafe event.
[0043] The present invention provides a data security processing method and system, which construct a first data security protection rule and a second data security protection rule, and identify unsafe data processing processes through the first data security protection rule and the second data security protection rule, thereby effectively ensuring or improving the security of the data processing process, and providing an abnormal database and a security database, which can partition and store different types of data to avoid affecting normal data. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0045] Figure 1 A flowchart of a data security processing method provided by an embodiment of the present invention.
[0046] Figure 2 A structural diagram of a data security processing system provided by an embodiment of the present invention.
[0047] 1-first data acquisition module, 2-second data acquisition module, 3-data learning module, 4-first data identification module, 5-second data identification module, 6-first data processing module, 7-second data processing module.
[0048] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0050] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0051] like Figure 1 As shown, the present invention provides a data security processing method, comprising:
[0052] S1. Obtain sample data from a designated data source or input through human-computer interaction, and build a sample database based on the sample data.
[0053] In the process of digital signal processing, abnormal data may often appear. For a small amount of data or low-dimensional data, the abnormal data can be directly determined by threshold judgment. However, the recognition ability of high-dimensional data is poor. Therefore, positive and negative samples can be obtained first. After learning the positive and negative samples, the abnormal data can be identified.
[0054] S2. Acquire network feature data from a designated data source or input through human-computer interaction, and construct a network feature database based on the network feature data.
[0055] In the process of data processing, if threats cannot be discovered in time, it may not only cause the loss or damage of the currently processed data, but also the loss or damage of the existing data. Therefore, network feature data can be learned to achieve abnormal data processing status and ensure data security.
[0056] S3. After each preset optimization cycle, the sample data in the sample database is learned to form a first data security protection rule. The sample data in the network feature database is learned to form a second data security protection rule.
[0057] By setting a preset optimization cycle, the first data security protection rule and the second data security protection rule can be continuously optimized during use, thereby achieving real-time adjustment of the protection rules and further protecting data security.
[0058] S4, receiving the data to be processed and the target network characteristic data of the data to be processed when it is received, identifying the data to be processed by the first data security protection rule, and obtaining a first security identification result. Identifying the target network characteristic data of the data to be processed when it is received by the second data security protection rule, and obtaining a second security identification result.
[0059] The first data security protection rule and the second data security protection rule obtained through learning have the ability to identify unsafe data processing, so the first security identification result and the second security identification result can be obtained respectively as data support for subsequent security processing.
[0060] The first security identification result may include: data abnormality or data normal; the second security identification result may include: data processing abnormality or data processing normal.
[0061] S5. Perform security event identification based on the first security identification result and the second security identification result to obtain a data security event identification result. The data security event identification result includes the existence of an unsafe event or the absence of an unsafe event.
[0062] According to the first security identification result and the second security identification result, identifying a security event may include: when the first security identification result is a data anomaly and / or the second security identification result is a data processing anomaly, determining that the data security event identification result is an unsafe event. In other cases, determining that the data security event identification result is an unsafe event.
[0063] S6. When the data security event identification result is that an unsafe event exists, the current data is intercepted and stored in an abnormal database, and information such as a timestamp and a data source are associated and stored.
[0064] S7. When the data security event identification result is that there is no unsafe event, the current data is stored in a security database and stored and processed according to preset rules.
[0065] It is worth noting that the abnormal database can be physically isolated from the safe database, thereby effectively preventing abnormal data from contaminating normal data.
[0066] In this embodiment, it also includes: optimizing the second data security protection rule to form a third data protection rule for identifying network security incidents, and identifying network security through the third data protection rule. If the network is unsafe, the network switch used for physical isolation will be disconnected to enhance data security processing performance.
[0067] A network insecurity label can be added to the network feature data, and the second data security protection rule can be further optimized to obtain a third data protection rule. The third data protection rule is used to perform security protection during data processing, which can effectively improve the recognition effect and ensure data processing security.
[0068] In this embodiment, obtaining sample data from a designated data source or input through human-computer interaction, and building a sample database based on the sample data, includes:
[0069] Obtain negative samples or positive samples from a specified data source or input through human-computer interaction to obtain sample data.
[0070] Get the positive sample labels and negative sample labels from the specified data source or input through human-computer interaction to obtain the sample labels of the sample data.
[0071] The positive samples and negative samples are standardized to obtain standardized positive samples and negative samples, that is, to obtain standardized sample data.
[0072] A sample database is constructed based on the standardized sample data and the sample labels of the sample data.
[0073] Positive samples represent normal data and have corresponding artificial labels; negative samples represent abnormal data and have corresponding artificial labels. Standardization of positive samples and negative samples may include: data length standardization and normalization. It is worth noting that the above standardization is only a preferred method of the embodiment of the present invention, and other data preprocessing methods may also be used for standardization.
[0074] In this embodiment, obtaining network feature data from a specified data source or input through human-computer interaction, and constructing a network feature database according to the network feature data includes:
[0075] Obtain network feature data corresponding to each positive sample or negative sample processing process of a specified data source or input through human-computer interaction, wherein the network feature data includes Ethernet type, connection start time, IPv4 destination address, IPv4 source address, sender host address, receiver address, TCP (Transmission Control Protocol) source port, TCP destination port, UDP (User Datagram Protocol) source port, UDP destination port, ICMP (Internet Control Message Protocol) type, IPv4 header length, UDP length, TCP length, IP (Internet Protocol, a protocol for interconnection between networks) protocol, ICMP code, connection duration, percentage of SYN error connections within a preset time, percentage of REJ error connections within a preset time, percentage of identical connections within a preset time, number of connections with the same host as the current connection in a preset number of historical connections, and number of connections of the same service type in a preset number of historical connections.
[0076] It is worth noting that the above network characteristic data is only a preferred feature of the embodiment of the present invention, and other features may also be used, such as time-based network traffic characteristics, host-based network traffic statistical characteristics, etc.
[0077] Obtain label data corresponding to network feature data from a designated data source or input through human-computer interaction, wherein the label data corresponding to the network feature data indicates whether an unsafe event exists or does not exist.
[0078] A network feature database is constructed based on the network feature data and the label data corresponding to the network feature data.
[0079] In this embodiment, the sample data in the sample database is learned to form a first data security protection rule, including: initializing the first initial rule using a neural network, and optimizing the first initial rule through the sample data in the sample database and the sample labels corresponding to the sample data to form the first data security protection rule.
[0080] Optionally, a BP neural network (Back Propagation) or a convolutional neural network may be used to initialize the first initial rule, and a gradient descent method or an intelligent optimization algorithm may be used to optimize the first initial rule, thereby obtaining a first data security protection rule that can identify abnormal data.
[0081] In this embodiment, the first initial rule is optimized through the sample data in the sample database and the sample labels corresponding to the sample data to form the first data security protection rule, including:
[0082] Set counter t=1 and maximum number of optimizations T.
[0083] The sample data in the sample database is used as input data of the first initial rule, and the sample label corresponding to the sample data is used as expected output data of the first initial rule to obtain the objective function value corresponding to the first initial rule.
[0084] Based on the objective function value corresponding to the first initial rule, the first initial rule is adjusted to obtain the adjusted first initial rule.
[0085] Determine whether the count value of counter t is greater than or equal to the maximum optimization times T. If so, use the current first initial rule as the first data security protection rule, otherwise return to the step of obtaining the objective function value corresponding to the first initial rule.
[0086] Optionally, in order to better illustrate the rule adjustment process, an embodiment of the present invention provides the following rule optimization method.
[0087] Adjusting the first initial rule based on the objective function value corresponding to the first initial rule to obtain the adjusted first initial rule may include:
[0088]
[0089] in, Indicates t The parameters corresponding to the first initial rule during round optimization (can be weight parameters or threshold parameters), Indicates updated , Indicates t -The weight of 1 round of optimization, Indicates t The learning rate during the round of optimization, represents the momentum term coefficient, Indicates t It is worth noting that obtaining the objective function value by setting the expected output is a relatively conventional technical means, which will not be described in detail in the embodiment of the present invention (for example, the root mean square error can be obtained to obtain the objective function value).
[0090] Optionally, the above rule optimization method is mainly a gradient descent method, which has a faster training rate, but the training effect is often poor. Therefore, the embodiment of the present invention provides another rule optimization method, which may include:
[0091] A1. Performing multiple random initializations on the parameters of the rule to be optimized to obtain multiple parameter vectors. The rule to be optimized is a first initial rule and a second initial rule. The multiple random initializations may include: performing random initialization on the parameters once between the upper limit and the lower limit of each dimension to obtain a parameter vector, and then performing multiple initializations.
[0092] A2. Obtain the objective function value corresponding to each parameter vector, and select the parameter vector with the smallest objective function value as the optimal parameter vector.
[0093] A3. Perform a local rough search on the parameter vector in the parameter optimization solution space to obtain the parameter vector after the local rough search.
[0094] Step A3 may include: performing a preliminary search for a parameter vector in the parameter optimization solution space as follows:
[0095]
[0096] in, Indicates t During the optimization process i The parameter vector d Dimensional elements, d =1,2,...,D, where D represents the total number of elements. i =1,2,...,I, I represents the total number of parameter vectors, express The search value of represents pi, Indicates the search direction. p =1,2,..., h , h Indicates the total number of search directions, Indicates the first search step. represents the maximum value of the first search step, represents the minimum value of the first search step, Indicates the current overall optimization times. T Indicates the maximum number of optimizations.
[0097] For each dimensional element in the parameter vector, determine whether the objective function value of the parameter vector decreases after the search. If so, determine the direction in which the objective function value decreases the most as the initial search direction and update the parameter vector, otherwise do not update it.
[0098] Traverse each dimension of each parameter vector to obtain the parameter vector for preliminary search.
[0099] When using the intelligent optimization algorithm, the optimization rule for adaptive learning rate can be formed as follows: By setting the first search step size that varies with the number of optimizations, it is possible to search with a larger step size in the early stage of the algorithm and a smaller step size in the later stage, which can balance the global search and the local search to a certain extent.
[0100] A4. For the parameter vector obtained after the local rough search, a local fine search is performed on the parameter vector to obtain the parameter vector obtained after the local fine search.
[0101] Step A4 may include:
[0102]
[0103]
[0104] in, represents the inertia weight, Represents the first h The parameter vector d The update amount of the dimension parameter, h =1,2,…,I, Indicates that after the update , represents the first learning factor, represents the first random number in the range (0,1), Indicates h The first parameter vector d Dimension parameters, Indicates hThe first of the historical optimal values of the parameter vector d Dimension parameters, represents the second learning factor, represents the second random number in the range (0,1), represents the optimal parameter vector d Dimension parameters, Indicates updated .
[0105] Through the local guided search of the optimal value, the search accuracy of the data can be greatly improved, thereby improving the protection effect of the final first data security protection rule and the second data security protection rule.
[0106] A5. For the parameter vector after the local fine search, a global search is performed on the parameter vector to obtain the parameter vector after the global search.
[0107] Step A5 may include:
[0108]
[0109]
[0110]
[0111] in, Indicates t During the optimization process k The parameter vector after the local fine search d Dimension parameters, k =1,2,…,I, express The update amount, Indicates updated , represents the inertia weight, Indicates t -1 update amount during the optimization process, represents the optimal parameter vector d Dimension parameters, Indicates the update parameters, represents the maximum value of the update parameter, represents the minimum value of the updated parameter, Represents a random number between (0,1).
[0112] Determine whether the objective function value of the parameter vector decreases after the global search. If so, accept the global search and obtain the parameter vector after the global search. Otherwise, reject the global search and directly use the parameter vector after the local fine search as the parameter vector after the global search.
[0113] Global search can effectively assist the algorithm to escape from the local optimum, and thus, by combining local rough search and local fine search, the optimization of rules can be effectively achieved.
[0114] A6. Determine whether the maximum number of optimizations has been reached. If so, output the current optimal parameter vector as the final parameter of the rule to be optimized. Otherwise, return to step A2.
[0115] In this embodiment, it also includes: forming an optimization rule for an adaptive learning rate, optimizing the first initial rule according to the optimization rule for the adaptive learning rate until an optimization end condition is met, and forming a first data security protection rule.
[0116] The optimization rules for forming an adaptive learning rate may include:
[0117]
[0118]
[0119] in, Indicates t The learning rate during the optimization round, Indicates the adjusted , represents the first constant, represents the second constant, represents the intermediate variable, represents the auxiliary variable update coefficient, represents the differential symbol, Indicates t The objective function value at the second optimization time is Indicates t It is worth noting that although the optimization rule for adaptive learning rate is formed for the gradient descent method, it is also applicable to the step size adaptive optimization in the above intelligent optimization algorithm.
[0120] In this embodiment, the sample data in the network feature database is learned to form a second data security protection rule, including:
[0121] Set counter t=1 and maximum number of optimizations T.
[0122] The network feature data in the network feature database is used as input data of the second initial rule, and the sample label corresponding to the network feature data is used as the expected output data of the second initial rule to obtain the objective function value corresponding to the second initial rule.
[0123] Based on the objective function value corresponding to the second initial rule, the second initial rule is adjusted to obtain the adjusted second initial rule.
[0124] Determine whether the count value of counter t is greater than or equal to the maximum optimization times T. If so, use the current second initial rule as the second data security protection rule, otherwise return to the step of obtaining the objective function value corresponding to the second initial rule.
[0125] In this embodiment, it also includes: forming an optimization rule for an adaptive learning rate, optimizing the second initial rule according to the optimization rule for the adaptive learning rate until an optimization end condition is met, and forming a second data security protection rule.
[0126] The optimization process of the second data security protection rule is the same as the optimization process of the first data security protection rule, except that the data used for learning is different, and the embodiment of the present invention will not be described in detail.
[0127] The present invention provides a data security processing method and system, which construct a first data security protection rule and a second data security protection rule, and identify unsafe data processing processes through the first data security protection rule and the second data security protection rule, thereby effectively ensuring or improving the security of the data processing process, and providing an abnormal database and a security database, which can partition and store different types of data to avoid affecting normal data.
[0128] like Figure 2 As shown, an embodiment of the present invention provides a data security processing system, including a first data acquisition module 1, a second data acquisition module 2, a data learning module 3, a first data identification module 4, a second data identification module 5, a first data processing module 6 and a second data processing module 7.
[0129] The first data acquisition module 1 is used to acquire sample data from a specified data source or input through human-computer interaction, and to construct a sample database according to the sample data.
[0130] The second data acquisition module 2 is used to acquire network feature data from a designated data source or input through human-computer interaction, and to construct a network feature database based on the network feature data.
[0131] The data learning module 3 is used to learn the sample data in the sample database every preset optimization cycle to form a first data security protection rule and to learn the sample data in the network feature database to form a second data security protection rule.
[0132] The first data identification module 4 is used to receive the data to be processed and the target network characteristic data of the data to be processed when it is received, identify the data to be processed according to the first data security protection rule, and obtain a first security identification result. The target network characteristic data of the data to be processed when it is received is identified according to the second data security protection rule, and obtain a second security identification result.
[0133] The second data identification module 5 is used to identify a security event based on the first security identification result and the second security identification result to obtain a data security event identification result. The data security event identification result includes the existence of an unsafe event or the absence of an unsafe event.
[0134] The first data processing module 6 is used to intercept the current data when the data security event identification result is that there is an unsafe event, and store the intercepted current data in the abnormal database, and at the same time associate and store information such as timestamp and data source.
[0135] The second data processing module 7 is used to store the current data in a security database and store and process it according to preset rules when the data security event identification result is that there is no unsafe event.
[0136] A data security processing system provided by an embodiment of the present invention can execute the above-mentioned method and technical solution, and its principles and beneficial effects are similar, which will not be repeated here.
[0137] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The solutions in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and interpreted scripting language JavaScript, etc.
[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0141] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0142] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data security processing method, characterized in that: include: Obtain sample data from a specified data source or input through human-computer interaction, and build a sample database based on the sample data; Acquire network feature data from a specified data source or input through human-computer interaction, and construct a network feature database based on the network feature data; After each preset optimization cycle, the sample data in the sample database is learned to form a first data security protection rule; the sample data in the network feature database is learned to form a second data security protection rule; Receiving the data to be processed and target network characteristic data of the data to be processed when it is received, identifying the data to be processed according to the first data security protection rule, and obtaining a first security identification result; Identify target network feature data of the data to be processed when it is received by using the second data security protection rule to obtain a second security identification result; Perform security event identification according to the first security identification result and the second security identification result to obtain a data security event identification result; The data security incident identification result includes the existence of an unsafe incident or the absence of an unsafe incident; When the data security event identification result is that there is an unsafe event, the current data is intercepted and stored in the abnormal database, and the timestamp and data source are associated and stored; When the data security event identification result is that there is no unsafe event, the current data is stored in the security database and stored and processed according to the preset rules; Learning the sample data in the sample database to form a first data security protection rule, including: initializing the first initial rule using a neural network, and optimizing the first initial rule using the sample data in the sample database and the sample labels corresponding to the sample data to form the first data security protection rule; The first initial rule is optimized through the sample data in the sample database and the sample labels corresponding to the sample data to form a first data security protection rule, including: Set counter t=1 and maximum optimization times T; Using the sample data in the sample database as input data of the first initial rule, using the sample label corresponding to the sample data as expected output data of the first initial rule, and obtaining the objective function value corresponding to the first initial rule; Based on the objective function value corresponding to the first initial rule, adjusting the first initial rule to obtain an adjusted first initial rule; Determine whether the count value of the counter t is greater than or equal to the maximum optimization times T. If so, use the current first initial rule as the first data security protection rule, otherwise return to the step of obtaining the objective function value corresponding to the first initial rule; Forming an optimization rule for an adaptive learning rate, optimizing the first initial rule according to the optimization rule for the adaptive learning rate until an optimization end condition is met, thereby forming a first data security protection rule; The sample data in the network feature database is studied to form the second data security protection rules, including: Set counter t=1 and maximum optimization times T; Using the network feature data in the network feature database as input data of the second initial rule, using the sample label corresponding to the network feature data as the expected output data of the second initial rule, and obtaining the objective function value corresponding to the second initial rule; Based on the objective function value corresponding to the second initial rule, adjusting the second initial rule to obtain an adjusted second initial rule; Determine whether the count value of the counter t is greater than or equal to the maximum optimization times T. If so, use the current second initial rule as the second data security protection rule, otherwise return to the step of obtaining the objective function value corresponding to the second initial rule; The method further includes: forming an optimization rule for an adaptive learning rate, optimizing the second initial rule according to the optimization rule for the adaptive learning rate until an optimization end condition is met, and forming a second data security protection rule; Initializing the first initial rule and the second initial rule by using a BP neural network or a convolutional neural network, and optimizing the first initial rule and the second initial rule by using a gradient descent method or an intelligent optimization algorithm, thereby obtaining a first data security protection rule and a second data security protection rule; The first initial rule and the second initial rule are optimized using the gradient descent method, including: Set counter t=1 and maximum optimization times T; Using sample data in the sample database as input data of the rule to be optimized, using sample labels corresponding to the sample data as expected output data of the rule to be optimized, and obtaining the objective function value corresponding to the rule to be optimized; the rules to be optimized are the first initial rule and the second initial rule; Based on the objective function value corresponding to the rule to be optimized, the rule to be optimized is adjusted to obtain the adjusted rule to be optimized; Determine whether the count value of counter t is greater than or equal to the maximum optimization times T. If so, use the current rule to be optimized as the corresponding data security protection rule. Otherwise, return to the step of obtaining the objective function value corresponding to the rule to be optimized. Based on the objective function value corresponding to the rule to be optimized, the rule to be optimized is adjusted to obtain the adjusted rule to be optimized, including: Among them, w t represents the parameter corresponding to the rule to be optimized in the tth round of optimization, w t+1 represents the updated w t , w t-1 represents the weight in the t-1th round of optimization, η t represents the learning rate during the tth round of optimization, ε represents the momentum term coefficient, and E t Represents the objective function value in the tth round of optimization; The optimization rule for forming an adaptive learning rate includes: or t+1 =the t +ai t (b||r t+1 ||-h t ) Among them, η t+1 represents the adjusted η t , α represents the first constant, β represents the second constant, r t+1 represents the intermediate variable, δ represents the auxiliary variable update coefficient, Indicates the differential symbol, E t represents the objective function value at the tth optimization, w t Represents the parameters at the tth optimization; The first initial rule and the second initial rule are optimized using an intelligent optimization algorithm, including: A1. Perform multiple random initializations on the parameters of the optimization rule to obtain multiple parameter vectors. Multiple random initializations include: performing random initialization on the parameters once between the upper limit and the lower limit of each dimension to obtain a parameter vector, and then performing multiple initializations. A2. Obtain the objective function value corresponding to each parameter vector, and select the parameter vector with the smallest objective function value as the optimal parameter vector; A3. Perform a local rough search on the parameter vector in the parameter optimization solution space to obtain a parameter vector after the local rough search; Step A3 includes: performing a preliminary search for a parameter vector in the parameter optimization solution space as follows: in, represents the d-th dimension element of the i-th parameter vector in the t-th optimization process, d = 1, 2, ..., D, D represents the total number of elements; i = 1, 2, ..., I, I represents the total number of parameter vectors, express The search value, π represents the circumference of a circle, p represents the search direction, p=1,2,...,h, h represents the total number of search directions, step1 represents the first search step; step 1max Indicates the maximum value of the first search step, step 1min represents the minimum value of the first search step, t represents the current number of overall optimizations, and T represents the maximum number of optimizations; For each dimensional element in the parameter vector, determine whether the objective function value of the parameter vector decreases after the search. If so, determine the direction in which the objective function value decreases the most as the preliminary search direction and update the parameter vector, otherwise do not update; Traverse each dimension element of each parameter vector to obtain the parameter vector for preliminary search; When using the intelligent optimization algorithm, the optimization rule for forming the adaptive learning rate is step1 = (step 1max -step 1min )*(1+t / T); A4. For the parameter vector after the local rough search, perform a local fine search on the parameter vector to obtain the parameter vector after the local fine search; Step A4 includes: Among them, ω1 represents the inertia weight, represents the update amount of the d-th dimension parameter of the h-th parameter vector after local fine search, h=1,2,…,I, Indicates that after the update c1 represents the first learning factor, r1 represents the first random number in the range of (0,1), represents the d-th dimension parameter in the h-th parameter vector, X P,jd represents the d-th dimension parameter in the historical optimal value of the h-th parameter vector, c2 represents the second learning factor, r2 represents the second random number in the range of (0,1), represents the d-th dimension parameter of the optimal parameter vector, Indicates updated A5. For the parameter vector after the local fine search, a global search is performed on the parameter vector to obtain the parameter vector after the global search; Step A5 includes: g k =ζ min +(g max -g min )*s in, represents the d-th dimension parameter of the parameter vector after the k-th local fine search in the t-th optimization process, k = 1, 2, ..., I, express The update amount, Indicates updated ω2 represents the inertia weight, represents the update amount in the t-1th optimization process, represents the d-th dimension parameter of the optimal parameter vector, ζ k represents the update parameter, ζ max represents the maximum value of the updated parameter, ζ min represents the minimum value of the updated parameter, and σ represents a random number between (0,1); Determine whether the objective function value of the parameter vector decreases after the global search. If so, accept the global search to obtain the parameter vector after the global search. Otherwise, reject the global search and directly use the parameter vector after the local fine search as the parameter vector after the global search. A6. Determine whether the maximum number of optimization times has been reached. If so, output the current optimal parameter vector as the final parameter of the rule to be optimized. Otherwise, return to step A2.
2. The data security processing method according to claim 1, characterized in that: Also includes: The second data security protection rule is optimized to form a third data protection rule for identifying network security incidents, and network security is identified through the third data protection rule. If the network is insecure, the network switch used for physical isolation will be disconnected to enhance data security processing performance.
3. The data security processing method according to claim 2, characterized in that: Obtaining sample data from a specified data source or input through human-computer interaction, and building a sample database based on the sample data, including: Obtain negative samples or positive samples from a specified data source or input through human-computer interaction to obtain sample data; Obtain the positive sample labels and negative sample labels from the specified data source or input through human-computer interaction to obtain the sample labels of the sample data; The positive samples and negative samples are normalized to obtain normalized positive samples and negative samples, that is, to obtain normalized sample data; A sample database is constructed based on the standardized sample data and the sample labels of the sample data.
4. The data security processing method according to claim 3, characterized in that: Acquiring network feature data from a specified data source or input through human-computer interaction, and building a network feature database based on the network feature data, including: Obtaining network feature data corresponding to each positive sample or negative sample processing process of a specified data source or input through human-computer interaction, the network feature data including Ethernet type, connection start time, IPv4 destination address, IPv4 source address, sender host address, receiver address, TCP source port, TCP destination port, UDP source port, UDP destination port, ICMP type, IPv4 header length, UDP length, TCP length, IP protocol, ICMP code, connection duration, percentage of SYN error connections within a preset time, percentage of REJ error connections within a preset time, percentage of identical connections within a preset time, number of connections with the same host as the current connection in a preset number of historical connections, and number of connections of the same service type in a preset number of historical connections; Obtaining label data corresponding to network feature data from a designated data source or input through human-computer interaction, wherein the label data corresponding to the network feature data indicates the presence or absence of an unsafe event; A network feature database is constructed based on the network feature data and the label data corresponding to the network feature data.
5. A data security processing system, the data security processing system is used to execute the data security processing method according to any one of claims 1 to 4, characterized in that: It includes a first data acquisition module, a second data acquisition module, a data learning module, a first data identification module, a second data identification module, a first data processing module and a second data processing module; The first data acquisition module is used to acquire sample data from a specified data source or input through human-computer interaction, and to construct a sample database based on the sample data; The second data acquisition module is used to acquire network feature data from a specified data source or input through human-computer interaction, and to construct a network feature database based on the network feature data; The data learning module is used to learn the sample data in the sample database to form a first data security protection rule after each preset optimization cycle; and to learn the sample data in the network feature database to form a second data security protection rule; The first data identification module is used to receive the data to be processed and the target network characteristic data of the data to be processed when it is received, identify the data to be processed according to the first data security protection rule, and obtain a first security identification result; Identify target network feature data of the data to be processed when it is received by using the second data security protection rule to obtain a second security identification result; The second data identification module is used to perform security event identification according to the first security identification result and the second security identification result, and obtain a data security event identification result; The data security incident identification result includes the existence of an unsafe incident or the absence of an unsafe incident; The first data processing module is used to intercept the current data when the data security event identification result is that there is an unsafe event, and store the intercepted current data in the abnormal database, and at the same time associate and store the timestamp and the data source; The second data processing module is used to store the current data in a security database and store and process the data according to preset rules when the data security event identification result is that there is no unsafe event.
Citation Information
Cited By
Data security processing system and method based on port information
CN119740253A
A data security processing system and method based on port information
CN119740253B
