Network security processing method and system, electronic equipment and readable storage medium
By building a network security threat information identification model and using TFIDF and deep forest classification algorithms to identify network threats, the problem of low efficiency and high cost of traditional rule review methods has been solved, and efficient network data security processing and real-time review have been achieved.
Patent Information
- Application Number
- CN202410988241.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional rule review methods based on keyword filtering and regular expression matching are difficult to cope with the massive and diverse network content. They are inefficient and lack semantic understanding. Manual review has limited efficiency and high cost, making it difficult to meet the needs of real-time review.
Build a network security threat information identification model by acquiring historical network security data, use TFIDF and deep forest classification algorithms for preprocessing and identification, collect and update threat information label data sets, and combine data collection and intelligence analysis to realize threats to network communication data Information identification.
It improves the security, integrity and privacy of network data, improves audit efficiency and quality, meets the needs of real-time audit, and reduces costs.
Smart Images

Figure CN118740486A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a network security processing method, system, electronic device and readable storage medium. Background Art
[0002] With the rapid development of Internet technology, online content has shown an explosive growth trend.
[0003] Traditional rule-based review methods such as keyword filtering and regular expression matching are no longer able to cope with the current massive and diverse forms of online content. These rule-based methods are not only inefficient, but also lack semantic understanding capabilities and can be easily bypassed. On the other hand, manual review has limited efficiency, high costs, and uneven review quality, making it difficult to meet the needs of real-time review. Summary of the invention
[0004] In view of this, an object of the embodiments of the present invention is to provide a network security processing method, system, electronic device and readable storage medium to protect the security, integrity and privacy of various types of data generated during network communication.
[0005] To achieve the above objective, in a first aspect, a network security processing method is provided, the method comprising:
[0006] Obtain historical network security data and obtain a training set of network security threat information;
[0007] Constructing a network security threat information identification model based on the network security threat information training set;
[0008] Collect network security intelligence, extract threat information present in the network security intelligence, establish tactical labels, and summarize the tactical labels to construct a threat information label data set;
[0009] Adding the threat information label data to the network security threat information identification model to update the network security threat information identification model;
[0010] Collect network communication data, organize and output data analysis samples; upload the data analysis samples to the network security threat information identification model to perform network security threat information identification on them.
[0011] In certain embodiments, in the network security processing method, acquiring historical network security data to obtain a network security threat information training set includes:
[0012] Convert the historical network communication data into a standard TXT format security report, and perform sentence segmentation, word segmentation and noise information removal operations on the standard TXT format security report to obtain a standard data set;
[0013] The historical network communication data includes network security field reports and network blogs.
[0014] In certain embodiments, in the network security processing method,
[0015] The historical network security data is in HTML format and PDF format.
[0016] In certain embodiments, in the network security processing method, constructing a network security threat information identification model based on the network security threat information training set includes:
[0017] The network security threat information training set is preprocessed using TFIDF to encode it into an output vector with text features;
[0018] Processing the output vector using a deep forest classification algorithm to obtain a network security threat information label;
[0019] The TFIDF feature calculates the similarity of the output vectors and merges similar output vectors.
[0020] In certain embodiments, in the network security processing method, the construction of the network security threat information identification model further includes:
[0021] Dividing the network security threat information training set into a preset number of data subsets on average;
[0022] Repeatingly determining a data subset as a validation subset and the remaining data subsets as training subsets from the preset number of data subsets to obtain the preset number of data combinations, wherein each of the data combinations includes a validation subset and a training subset;
[0023] Retrain the trained target machine learning algorithm using the training subsets in the preset number of array combinations, and perform performance evaluation on the retrained target machine learning algorithm using the validation subset in the data combination to obtain the preset number of second model performance indicators;
[0024] Determine an average value of the preset number of second model performance indicators to obtain a third model performance indicator;
[0025] When the third model performance indicator meets the preset performance conditions, the retrained target machine learning algorithm is determined as the network security threat information identification model.
[0026] In certain embodiments, in the network security processing method, the specific process of collecting network security intelligence and extracting tactical tags of threat information present in open source network security intelligence is as follows:
[0027] Collect complete network intelligence and filter out interference information;
[0028] Convert cybersecurity intelligence into text format;
[0029] Calculating TFIDF text features of the cybersecurity intelligence in text format;
[0030] Call the MLCPDF algorithm to extract threat information from TFIDF text features.
[0031] In certain embodiments, in the network security processing method,
[0032] The historical cybersecurity data includes attacker information, malware names, vulnerabilities, and location information
[0033] The network security intelligence is text information that describes the entire process of a network threat event.
[0034] A second aspect of the present invention provides a system for performing network security processing using the network security processing method, comprising:
[0035] a data acquisition module configured to acquire historical network security data, network security intelligence, and network communication data;
[0036] A network security threat information identification model construction module summarizes the historical network security data to obtain a network security threat information training set, and uses the network security threat information training set to construct a network security threat information identification model
[0037] A data updating module, which uses the network security intelligence to extract threat information present in the network security intelligence, establishes tactical tags, aggregates the tactical tags to construct a threat information tag data set, and adds the threat information tag data set to the network security threat information identification model;
[0038] The analysis and processing module inputs the network communication data into the network security threat information identification model to perform network security threat analysis.
[0039] A third aspect of the present invention provides an electronic device, comprising:
[0040] A memory for storing executable instructions;
[0041] A processor is used to execute the instruction so that the electronic device performs the operation of implementing the network security processing method according to any one of claims 1 to 7.
[0042] A fourth aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the above-mentioned network security processing method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a flowchart of a network security processing method provided by an embodiment of the present invention;
[0045] Figure 2 is a schematic block diagram of a network security processing system provided by an embodiment of the present invention;
[0046] Figure 3 is a schematic block diagram of a computer-readable storage medium provided by an embodiment of the present invention;
[0047] Figure 4 It is a schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] 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.
[0049] In the embodiments of the present invention, "network communication data preservation" refers to protecting the security, integrity and privacy of various types of data generated during network communication. For example, it may include preventing the data generated during network communication from being illegally accessed, tampered with, leaked, etc., and ensuring the reliability and confidentiality of data in various links such as collection, transmission, storage, and processing. Based on this, the embodiments of the present invention provide a network communication data preservation method and system.
[0050] A network security processing method, system, electronic device and readable storage medium provided by an embodiment of the present invention are described in detail below with reference to the accompanying drawings.
[0051] Figure 1FIG. 1 is a flow chart of a network security processing method provided by an embodiment of the present invention. Figure 1 As shown, a network security processing method according to an embodiment of the present invention may include the following steps:
[0052] Obtain historical network security data and obtain a training set of network security threat information;
[0053] Constructing a network security threat information identification model based on the network security threat information training set;
[0054] Collect network security intelligence, extract threat information present in the network security intelligence, establish tactical labels, and summarize the tactical labels to construct a threat information label data set;
[0055] Adding the threat information label data to the network security threat information identification model to update the network security threat information identification model;
[0056] Collect network communication data, organize and output data analysis samples; upload the data analysis samples to the network security threat information identification model to perform network security threat information identification on them.
[0057] In the above solution, the acquisition of historical network security data to obtain a network security threat information training set includes:
[0058] Convert the historical network communication data into a standard TXT format security report, and perform sentence segmentation, word segmentation and noise information removal operations on the standard TXT format security report to obtain a standard data set;
[0059] The historical network communication data includes network security field reports and network blogs.
[0060] Suitable data collection methods. For example, the data collection methods may include:
[0061] ① Log collection: Collect log data in various formats through log collectors. The log collectors can be, for example, Flume (a highly available, highly reliable, distributed system for massive log collection, aggregation and transmission provided by Cloudera), Logstash (a platform for transmission, processing, management and search of application logs and events, which can collect and transform data from multiple sources and then send the data to the target repository. It can be used to uniformly collect and manage application logs and provide a Web interface for query and statistics);
[0062] ② Traffic collection: Use traffic mirroring, bypass TAP (Test Access Point) and other technologies to collect network traffic data.
[0063] ③Database collection: Collect data from relational or non-relational databases through database connectors.
[0064] For example, you can use Flume to collect access logs of Web servers and use traffic mirroring to collect traffic data on the internal network.
[0065] In the above solution, the step of constructing a network security threat information identification model based on the network security threat information training set includes:
[0066] The network security threat information training set is preprocessed using TFIDF to encode it into an output vector with text features;
[0067] Processing the output vector using a deep forest classification algorithm to obtain a network security threat information label;
[0068] The TFIDF feature calculates the similarity of the output vectors and merges similar output vectors.
[0069] In the above solution, the construction of the network security threat information identification model also includes:
[0070] Dividing the network security threat information training set into a preset number of data subsets on average;
[0071] Repeatingly determining a data subset as a validation subset and the remaining data subsets as training subsets from the preset number of data subsets to obtain the preset number of data combinations, wherein each of the data combinations includes a validation subset and a training subset;
[0072] Retrain the trained target machine learning algorithm using the training subsets in the preset number of array combinations, and perform performance evaluation on the retrained target machine learning algorithm using the validation subset in the data combination to obtain the preset number of second model performance indicators;
[0073] Determine an average value of the preset number of second model performance indicators to obtain a third model performance indicator;
[0074] When the third model performance indicator meets the preset performance conditions, the retrained target machine learning algorithm is determined as the network security threat information identification model.
[0075] In the above scheme, the specific process of collecting network security intelligence and extracting tactical tags of threat information in open source network security intelligence is as follows:
[0076] Collect complete network intelligence and filter out interference information;
[0077] Convert cybersecurity intelligence into text format;
[0078] Calculating TFIDF text features of the cybersecurity intelligence in text format;
[0079] Call the MLCPDF algorithm to extract threat information from TFIDF text features.
[0080] In the above scheme, the historical network security data includes attacker information, malware name, vulnerability and location information
[0081] The network security intelligence is text information that describes the entire process of a network threat event.
[0082] like Figure 2 As shown, the second aspect of the present invention provides a system for network security processing, which includes:
[0083] a data acquisition module configured to acquire historical network security data, network security intelligence, and network communication data;
[0084] A network security threat information identification model construction module summarizes the historical network security data to obtain a network security threat information training set, and uses the network security threat information training set to construct a network security threat information identification model
[0085] A data updating module, which uses the network security intelligence to extract threat information present in the network security intelligence, establishes tactical tags, aggregates the tactical tags to construct a threat information tag data set, and adds the threat information tag data set to the network security threat information identification model;
[0086] The analysis and processing module inputs the network communication data into the network security threat information identification model to perform network security threat analysis.
[0087] like Figure 3 As shown, the third aspect of the present invention includes an electronic device, which includes:
[0088] A memory for storing executable instructions;
[0089] The processor is used to execute the instructions so that the electronic device performs operations to implement the above-mentioned network security processing method.
[0090] like Figure 4 As shown, the fourth aspect of the present invention provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the above-mentioned network security processing method is implemented.
[0091] In other embodiments, in order to ensure the security of data during the data collection stage, biometric recognition technology can also be introduced. Specifically, a biometric recognition verification request is received from a user, and when the biometric recognition verification is passed, the step of acquiring the network communication data from the data collection source through a distributed data collection method to obtain the first data is executed.
[0092] For example, a fingerprint recognition sensor can be integrated into a user terminal device (such as a mobile phone or computer) to collect the user's fingerprint data; then, when the user communicates on the network, he or she needs to pass fingerprint authentication to access network resources (i.e., data collection sources). For example, when a user logs into an enterprise intranet, he or she needs to use a fingerprint to unlock the phone and pass fingerprint authentication to access intranet applications.
[0093] For another example, iris recognition cameras can be deployed at key network nodes (such as server rooms and data centers) to perform iris recognition on people or users accessing these areas to ensure that only authorized personnel can enter. For example, the access control system of a data center uses iris recognition, and staff need to pass iris authentication before entering the server room.
[0094] Embodiment 1, a network security processing method, comprising the following steps:
[0095] Acquire historical network security data to obtain a network security threat information training set; convert the historical network communication data into a standard TXT format security report, and perform sentence segmentation, word segmentation and noise information removal operations on the standard TXT format security report to obtain a standard data set; wherein the historical network communication data includes network security field reports and network blogs;
[0096] According to the network security threat information training set, a network security threat information identification model is constructed; specifically, the network security threat information training set is preprocessed using TFIDF to encode it into an output vector with text features;
[0097] The output vector is processed by a deep forest classification algorithm to obtain a network security threat information label; specifically, complete network intelligence is collected and interference information is filtered; the network security intelligence is converted into a text format; the TFIDF text features of the network security intelligence in text format are calculated; and the MLCPDF algorithm is called to extract threat information from the TFIDF text features.
[0098] The TFIDF feature calculates the similarity of the output vectors and merges similar output vectors.
[0099] In the above solution, the construction of the network security threat information identification model also includes:
[0100] Dividing the network security threat information training set into a preset number of data subsets on average;
[0101] Repeatingly determining a data subset as a validation subset and the remaining data subsets as training subsets from the preset number of data subsets to obtain the preset number of data combinations, wherein each of the data combinations includes a validation subset and a training subset;
[0102] Retrain the trained target machine learning algorithm using the training subsets in the preset number of array combinations, and perform performance evaluation on the retrained target machine learning algorithm using the validation subset in the data combination to obtain the preset number of second model performance indicators;
[0103] Determine an average value of the preset number of second model performance indicators to obtain a third model performance indicator;
[0104] When the third model performance indicator meets the preset performance conditions, the retrained target machine learning algorithm is determined as the network security threat information identification model.
[0105] Collect network security intelligence, extract threat information present in the network security intelligence, establish tactical labels, and summarize the tactical labels to construct a threat information label data set;
[0106] Adding the threat information label data to the network security threat information identification model to update the network security threat information identification model;
[0107] Collect network communication data, organize and output data analysis samples; upload the data analysis samples to the network security threat information identification model to perform network security threat information identification on them.
[0108] In the above scheme, the historical network security data includes attacker information, malware name, vulnerability and location information
[0109] The network security intelligence is text information that describes the entire process of a network threat event.
[0110] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A network security processing method, characterized in that: The method comprises: Obtain historical network security data and obtain a training set of network security threat information; Constructing a network security threat information identification model based on the network security threat information training set; Collect network security intelligence, extract threat information present in the network security intelligence, establish tactical labels, and summarize the tactical labels to construct a threat information label data set; Adding the threat information label data to the network security threat information identification model to update the network security threat information identification model; Collect network communication data, organize and output data analysis samples; upload the data analysis samples to the network security threat information identification model to perform network security threat information identification on them.
2. The network security processing method according to claim 1, characterized in that: The acquiring of historical network security data to obtain a network security threat information training set includes: Convert the historical network communication data into a standard TXT format security report, and perform sentence segmentation, word segmentation and noise information removal operations on the standard TXT format security report to obtain a standard data set; The historical network communication data includes network security field reports and network blogs.
3. The network security processing method according to claim 2, characterized in that: The historical network security data is in HTML format and PDF format.
4. The network security processing method according to claim 1, characterized in that: The constructing of a network security threat information identification model according to the network security threat information training set includes: The network security threat information training set is preprocessed using TFIDF to encode it into an output vector with text features; Processing the output vector using a deep forest classification algorithm to obtain a network security threat information label; The TFIDF feature calculates the similarity of the output vectors and merges similar output vectors.
5. The network security processing method according to claim 1, characterized in that: The construction of the network security threat information identification model further includes: Dividing the network security threat information training set into a preset number of data subsets on average; Repeatingly determining a data subset as a validation subset and the remaining data subsets as training subsets from the preset number of data subsets to obtain the preset number of data combinations, wherein each of the data combinations includes a validation subset and a training subset; Retrain the trained target machine learning algorithm using the training subsets in the preset number of array combinations, and perform performance evaluation on the retrained target machine learning algorithm using the validation subset in the data combination to obtain the preset number of second model performance indicators; Determine an average value of the preset number of second model performance indicators to obtain a third model performance indicator; When the third model performance indicator meets the preset performance conditions, the retrained target machine learning algorithm is determined as the network security threat information identification model.
6. The network security processing method according to claim 1, characterized in that: The specific process of collecting network security intelligence and extracting tactical tags of threat information in open source network security intelligence is as follows: Collect complete network intelligence and filter out interference information; Convert cybersecurity intelligence into text format; Calculating TFIDF text features of the cybersecurity intelligence in text format; Call the MLCPDF algorithm to extract threat information from TFIDF text features.
7. The network security processing method according to claim 1, characterized in that: The historical cybersecurity data includes attacker information, malware names, vulnerabilities, and location information The network security intelligence is text information that describes the entire process of a network threat event.
8. A system for performing network security processing using the network security processing method according to any one of claims 1 to 7, characterized in that: include: a data acquisition module configured to acquire historical network security data, network security intelligence, and network communication data; A network security threat information identification model construction module summarizes the historical network security data to obtain a network security threat information training set, and uses the network security threat information training set to construct a network security threat information identification model A data updating module, which uses the network security intelligence to extract threat information present in the network security intelligence, establishes tactical tags, aggregates the tactical tags to construct a threat information tag data set, and adds the threat information tag data set to the network security threat information identification model; The analysis and processing module inputs the network communication data into the network security threat information identification model to perform network security threat analysis.
9. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor is used to execute the instruction so that the electronic device performs the operation of implementing the network security processing method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the network security processing method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Generation method of model training set and related equipment
CN121309364A
