Threat intelligence production and analysis method based on federated learning

Through federated learning and intelligent analysis algorithms, the accuracy and timeliness of threat intelligence of power grid enterprises are improved, the problem of traditional protection systems being difficult to trace and manage multi-source intelligence is solved, and efficient discovery and response to malicious network attacks are achieved.

CN114417329BActive Publication Date: 2024-10-01STATE GRID INFORMATION & TELECOMM BRANCH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210081309.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-12-08
Filing Date
2022-01-24
Publication Date
2024-10-01
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

Power grid enterprises face complex network security threats. Traditional wall-based protection methods are difficult to effectively trace and manage multi-source intelligence, resulting in insufficient accuracy and reliability of threat intelligence, making it difficult to quickly respond to distributed attacks and highly disguised spear phishing. attack.

Method used

Adopt the threat intelligence production and analysis method based on federated learning, and calculate the threat score through the security log intelligent analysis algorithm, including weight statistical model, frequency analysis model and fractional attenuation model, combined with small frequency point-to-point transmission technology and homomorphic encryption mechanism, to achieve Compression, transmission and update of intelligence to improve the accuracy and timeliness of threat intelligence.

Benefits of technology

It improves power grid enterprises' detection capabilities and emergency response efficiency against malicious network attacks, provides more accurate and reliable threat intelligence, assists in investigation and evidence collection, and dynamically adjusts threat scores to improve the pertinence of the protection system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417329B_ABST
    Figure CN114417329B_ABST
Patent Text Reader

Abstract

This application discloses a method for producing and analyzing threat intelligence based on federated learning, including: producing intelligence of root nodes or regional nodes based on original security logs and intelligence production modules; storing intelligence of root nodes or regional nodes, and based on low-frequency point-to-point transmission technology, cutting and restoring intelligence, and compressing basic intelligence data IoC; based on low-frequency point-to-point transmission technology, restoring the compressed intelligence after penetration into basic intelligence data; writing the restored basic intelligence data into the regional intelligence database by writing to the database, and using the federated learning scheduling component of the root node to summarize the root node intelligence production module and other regional intermediate training parameters for fusion and distribution; using each regional node to train the intelligence production module based on the original security log at the root node to generate threat intelligence. The technical solution in this application helps to improve the accuracy of security log conversion of internal intelligence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power grid security, and more specifically, to a method for producing and analyzing threat intelligence based on federated learning. Background Art

[0002] Energy security is a basic need for the national economy and people's livelihood. As the global cyber confrontation situation continues to escalate, the security of the critical information infrastructure of power grid companies faces complex situations. Attackers launch distributed attacks or highly disguised spear phishing email attacks and use a variety of attack tools to shorten the attack time. It is difficult to deeply analyze the attack behavior based solely on malicious feature library matching and a single intelligence source.

[0003] Source tracing is one of the main means of network security. In view of the complexity of current network security issues in power grid enterprises and the lag in research, the concept of "threat intelligence" proposed by Gartner is of reference significance. It can enable information processors to have a systematic understanding of information security within power grid enterprises and no longer exclude threat information that is not in the industry in advance.

[0004] The security protection system of traditional power grid enterprises adopts "wall-type" protection methods, such as Figure 1 As shown in the figure, the defender's perspective limits the comprehensiveness of attack analysis. The attacker's perspective can consider the time of attack, attack methods, impact range, etc. from the attack perspective. In the attack and defense confrontation, focusing on the knowledge of both defense and attack can analyze the attack from a dialectical perspective and improve the accuracy and timeliness of emergency response. However, the knowledge from the attack perspective usually comes from different intelligence sources, and the quality of intelligence sources varies. The quality of multiple types of information such as national intelligence, industry intelligence, and open source intelligence is different. There are also management issues in integrating multiple intelligence sources. If the threat data will break through the management scope of the organization, it is crucial to provide threat information scope, steganographic sensitive information methods, manager identity restrictions, and intelligence application standard processes. Therefore, it is necessary to provide threat intelligence that can effectively trace the source for power grid companies to improve the accuracy and reliability of power grid protection. Summary of the invention

[0005] The purpose of this application is to improve the existing machine learning model from the attacker's perspective, design a security log intelligent analysis algorithm, including a weighted statistical model, a frequency analysis model, and a score decay model, to improve the accuracy of security log conversion into internal intelligence, and further improve the efficiency of emergency response and attack tracing of power grid companies.

[0006] The technical solution of the present application is: a method for producing and analyzing threat intelligence based on federated learning is provided, the method comprising: step 1, based on the original security log and the intelligence production module, calculating the basic intelligence data IoC, and producing the intelligence of the root node or the regional node; step 2, compressing the intelligence of the produced root node or the regional node, penetrating the compressed intelligence through the isolation device, transmitting it to other regional nodes, and the compressed intelligence after penetration is restored to basic intelligence data by other regional nodes; step 3, writing the restored basic intelligence data into the regional intelligence database by writing it into the database, and using the federated learning scheduling component of the root node to summarize the root node intelligence production module and other regional intermediate training parameters for fusion and distribution; step 4, using each regional node to train the intelligence production module based on the original security log at the root node, encrypting the training parameters by the encryption key and uploading them as threat intelligence.

[0007] In any of the above technical solutions, further, the basic intelligence data IoC includes at least: attack source address, threat type event, external intelligence and threat score, and the calculation formula of the basic intelligence data IoC is:

[0008] IoC=(Ip,TI,Ex,S)

[0009]

[0010]

[0011] In the formula, Ip is the attack source address, TI is the threat type event, Ex is the external intelligence, S is the threat score, i0 is the attack sequence number, n0 is the attack sequence length, Eq i0 is the security device for the ith attack, At i0 is the attack mode of the i0th attack, Tm i0 is the attack time of the i0th attack, Ei j is the name of the jth external intelligence source, At j is the attack method of the jth external intelligence source, Tm j is the attack time of the jth external intelligence source.

[0012] In any of the above technical solutions, further, step 1 also includes: based on the intelligence calculation sub-module, applying regular expressions, screening the attack source address Ip, attack method At, attack target De, number of attacks Co, attack time Tm and security log source Eq in the original security log, and generating a security log SL, wherein each security log SL corresponds to a basic intelligence data IoC.

[0013] In any of the above technical solutions, further, step 1 also includes: when it is determined that the attack source addresses Ip of any two basic intelligence data IoCs are the same, using the intelligence splicing sub-module to merge the basic intelligence data IoCs with the same attack source address Ip; when it is determined that the threat score of the merged basic intelligence data IoC is less than the score threshold, deleting the corresponding merged basic intelligence data IoC.

[0014] In any of the above technical solutions, further, the intelligence production module is composed of a weighted statistical model, a frequency analysis model and a score decay model.

[0015] In any of the above technical solutions, further, the calculation formula of the threat score is:

[0016]

[0017] In the formula, the subscript n represents the number of security devices, W is the pre-configured weight value of each type of security device, B is the baseline value of each security device, m represents the number of days for calculating the weight statistics, and N i Indicates the number of alarms per day in m days.

[0018] In any of the above technical solutions, further, the calculation formula of the frequency analysis model is:

[0019] S′ n′ =S′ n′-1 *|Co n′ -Co n′-1 | / |Co n′-1 -Co n′-2 |*(1+(Co n′ +Co n′-1 +Co n′-2 ) / 1000)

[0020] In the formula, S′ n′ Indicates time T n′ To time T n′-1 Threat score of high-risk attack sources within the interval, S′ n′-1 Indicates the last time T n′-1 To time T n′-2 The threat score of the attack source in the interval. In this case, n′ is just a code, indicating the code of the time node T. Co n′ is time T n′ The number of attacks.

[0021] In any of the above technical solutions, further, the calculation formula of the fractional decay model is:

[0022]

[0023] In the formula, S″n′ Indicates time T n′ The threat score, t is the decay period, the above formula represents the time T n′+1 Threat score S″ n′++ For time T n′ Threat score S″ n′ With the past T n′-1 The difference between the average threat score within the time period and the decay period t.

[0024] In any of the above technical solutions, further, the threat intelligence production and analysis method also includes: Step 5, the federated learning scheduling component confirms the update part, aligns it horizontally, and returns the updated data back to the area where the root node is located, and uses the homomorphic encryption mechanism to complete the gradient update of each intelligence production module, and update the threat intelligence in the local model.

[0025] In any of the above technical solutions, further, step 2 specifically includes: step 201, after storing the intelligence of the produced root node or regional node, based on the low-frequency point-to-point transmission technology, the stored intelligence is trimmed and restored to obtain basic intelligence data IoC, and the restored basic intelligence data IoC is compressed; step 202, through the SQL statement, the compressed basic intelligence data IoC is penetrated by intelligence, penetrated through the isolation device, and transmitted to other regional nodes, wherein the isolation device is used to isolate the root node and each regional node from information; step 203, based on the low-frequency point-to-point transmission technology, other regional nodes restore the penetrated compressed intelligence into basic intelligence data.

[0026] The beneficial effects of this application are:

[0027] The technical solution in this application can help the power security defense system better discover targeted malicious network attacks by producing industry-specific threat intelligence through power system security equipment logs, and can also assist public security organs in providing more clues for investigation and evidence collection.

[0028] In the preferred implementation of the present application, the threat score is dynamically adjusted by attacking the IP to trigger the alarm breadth of various security devices in different customer networks. Users can weight and score devices from different sources, and continue to calculate the credibility based on the dimensions of time and quantity. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The advantages of the above and / or additional aspects of the present application will become apparent and easily understood in the description of the embodiments in conjunction with the following drawings, in which:

[0030] Figure 1 It is a schematic diagram of network partitioning of power grid enterprises in the prior art;

[0031] Figure 2 is a schematic flow chart of a method for producing and analyzing threat intelligence based on federated learning according to an embodiment of the present application;

[0032] Figure 3 It is a structural diagram of an intelligence field adjacency table according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0034] In the following description, many specific details are elaborated to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present application is not limited to the specific embodiments disclosed below.

[0035] In this embodiment, according to the principle of "zoning and zoning" of the power grid, the network supporting the "zoning and zoning" power grid can be divided into corresponding Internet regions and Internet areas, and there is only a firewall between them for access control. Therefore, the intelligence production module built in this area is the intelligence generated by the root node. Similarly, according to the principle of "zoning and zoning" of the power grid, there are production control regions and management information regions that are directly isolated from the Internet area, unable to access any resources on the Internet, and running industrial control systems in an isolated environment. This area is called a regional node.

[0036] In this embodiment, the regional nodes and root nodes are obtained through the "zoning and domain division" principle of the power grid. For example, in important areas of energy or critical information infrastructure such as CNPC, Sinopec, and China Southern Power Grid, all areas close to the Internet side that can directly access Internet resources through firewalls can be called "root nodes", and all logically isolated areas that cannot directly access Internet resources can be called "regional nodes". In other words, in a security protection system architecture designed according to the "zoning and domain division" principle, there can usually only be one root node, but there can be many regional nodes.

[0037] like Figure 2As shown, this embodiment provides a threat intelligence production and analysis method based on federated learning, which includes: generating intelligence by an intelligence production model in a root node, the intelligence being basic intelligence data IoC; storing the generated intelligence and storing it in the root node intelligence database; compressing the intelligence after cutting by an intelligence cutting module; using intelligence penetration to penetrate the isolation device after compression and transmit it to the intelligence restoration module, which performs intelligence restoration to obtain basic intelligence data IoC; then the intelligence production module of the regional node stores the intelligence in the regional intelligence database, and the intelligence cutting module compresses the intelligence after cutting, repeats the above process, and transmits it to other regional nodes; at the same time, the intelligence model in the regional node is trained, the trained model is compressed, and the regional intelligence model in the regional node is aggregated to the root node; the root node calls the federated model scheduling component to update the intelligence of the root node.

[0038] The threat intelligence production and analysis method based on federated learning provided in this embodiment is now described in detail through the following process. The method specifically includes:

[0039] Step 1: Calculate the basic intelligence data IoC based on the original security log and intelligence production module, and use the calculated basic intelligence data IoC as the intelligence of the root node or regional node produced;

[0040] Specifically, the original security log contains the log information of existing security devices such as firewalls, WAF, IPS, honeypots, etc. in the security protection system of power grid enterprises. The original security log records the security threats faced by power grid enterprises in detail and reports them in various forms such as FTP, SFTP, SySlog, SNMP Trap, Web pages, etc. The security log data includes attack source tracing logs, threat email logs, abnormal account logs, compromised host logs, honeypot honeynet logs, etc. The main fields of attack source tracing logs are attack source IP, attack time, number of attacks, attack severity, attack target, and attack method; the main fields of threat email logs are email sender, sending time, email subject, email content, attachment type, attack method, etc.; the fields of abnormal account logs are mainly account full name, abnormal time interval, abnormal behavior, number of login locations, etc.; the compromised host logs are mainly host address, compromise type, domain name field, connection time and number of connections; honeypot honeynet logs contain attack source IP, attack fingerprint, attack account, attack method, etc.

[0041] In this embodiment, the collection objects include three main types. The first is the existing full-scenario security technical defense system of the power grid enterprise, such as: firewall, IPS, IDS, WAF, honeypot honeynet, attack tracing system, desktop management system, centralized antivirus engine, etc.; the second is the logical isolation equipment between the areas of the security protection system, such as: horizontal isolation device, vertical encryption device; the third is the independent security log collection probes deployed by the secondary units of the power grid enterprise in the management information area and the production control area respectively, which automatically collect the original security alarms and log information in the areas of each subordinate unit.

[0042] Furthermore, the basic intelligence data IoC calculated by the intelligence production module from the original log includes at least: attack source address (IP), threat type event (Threat Intelligence), external intelligence (External Threat Intelligence) and threat score (Score).

[0043] Among them, the threat type event TI is a list of threat events that occurred n times at historical time nodes in the original log, and a single threat type event is described by the set of security log source Eq (Equipment), attack method At and attack time Tm. Therefore, the threat type event TI represents the log information of the original security log from n security devices, and is a threat event composed of security device Eq, attack method At and attack time Tm.

[0044] Among them, the external intelligence Ex is a list of external intelligence from p external intelligence sources (External Indicator of Compromise) at a historical time node. A single piece of external intelligence includes the intelligence source EI, the attack method At and the historical attack time Tm.

[0045] In this embodiment, the specific calculation formula of the basic intelligence data IoC is as follows:

[0046] IoC=(Ip,TI,Ex,S)(Formula 1)

[0047]

[0048]

[0049] In the formula, Ip is the attack source address, TI is the threat type event, Ex is the external intelligence, S is the threat score, i0 is the attack sequence number, n0 is the attack sequence length, Eq i0 is the security device for the ith attack, At i0 is the attack mode of the i0th attack, Tm i0 is the attack time of the i0th attack, Ei jis the name of the jth external intelligence source, At j is the attack method of the jth external intelligence source, Tm j is the attack time of the jth external intelligence source.

[0050] Furthermore, step 1 also includes: based on the intelligence calculation submodule, applying regular expressions, screening the attack source address Ip, attack method At, attack target De, attack number Co, attack time Tm and security log source Eq in the original security log, a total of six tuples, to generate a security log SL, the specific formula is as follows:

[0051] SL=(Ip,At,De,Co,Tm,Eq)

[0052] In this embodiment, a corresponding basic intelligence data IoC is calculated for each security log SL.

[0053] Furthermore, step 1 also includes: using the intelligence splicing submodule to merge the generated basic intelligence data IoC. When it is determined that the attack source address Ip of any two basic intelligence data IoCs are the same, the intelligence splicing submodule is used to merge the basic intelligence data IoCs represented by the same attack source address Ip to generate a basic intelligence data IoC.

[0054] Furthermore, when it is determined that the threat score of the merged basic intelligence data IoC is less than the score threshold, the corresponding merged basic intelligence data IoC is deleted, wherein the score threshold can be set to 30 points.

[0055] On the basis of the above embodiment, the intelligence production module in this embodiment is composed of a weight statistical model, a frequency analysis model and a score decay model. The threat score S in the basic intelligence data IoC is calculated by the weight statistical model, the frequency analysis model and the score decay model in this embodiment.

[0056] According to the weight distribution of the security log source Eq of the weight statistical model, the threat score S is recalculated, and the threat type events in multiple basic intelligence data IoCs are merged. Among them, the weight distribution of the security log source Eq mainly includes the following processes:

[0057] The weight set of all security log sources Eq is recorded as: {W1, W2, ..., Wi, ..., Wn}, and:

[0058]

[0059] Where Wi is the weight of the i-th security log source Eq, i = 1, 2, ..., n. The sum of the weight set of the security log source Eq is 1.

[0060] First, the default initial value of the Eq weight Wi of all security log sources is an average distribution value, that is, Wi=1 / n.

[0061] Secondly, according to the difference in the deployment location of security equipment in the enterprise security protection architecture, the basic principle is "security protection equipment has a small weight, monitoring and analysis equipment has a large weight, external equipment has a small weight, and internal equipment has a large weight". The change range of the weight value of the security log source Eq is set, and the fluctuation range of its initial weight Wi=1 / n shall not exceed 1 / (4*n), that is, the change range of the security log source Eq weight Wi is [3 / (4*n), 5 / (4*n)].

[0062] Finally, calculate the proportion of the security log volume generated every 30 minutes, and set the proportion value to be approximately inversely proportional to the weight size. That is, when the amount of security logs is large, the corresponding security log source Eq weight is small, and when the amount of security logs is small, the corresponding security log source Eq weight is large. Under the restriction of the change range of the weight value, try to meet the requirement that the proportion of the security log volume is approximately inversely proportional to the weight size.

[0063] For example, if the attack source of one of the security logs of security device Eq1 and security device Eq2 is Ip, two different threat scores S and two basic intelligence data IoC data are generated according to the corresponding formula. The specific formula is as follows.

[0064]

[0065]

[0066] IoC′=(Ip,TI′,Ex′,S′)

[0067]

[0068]

[0069] The combined basic intelligence data IoC′ is calculated according to the above formula, where the score S′ is the recalculated threat score, and the threat type event TI′ is the combination of the threat type event TI1 and the threat type event TI2.

[0070] If the threat score S′ is less than 30 points, the basic intelligence data IoC is deleted, ultimately reducing low-quality and highly repetitive intelligence data.

[0071] In this embodiment, the essence of the intelligence production module is to use the security log SL as input data, the basic intelligence data IoC as output data, and the intelligence production module as a calculation method.

[0072] In this embodiment, based on federated learning, the owners of security log data in each region are united to jointly train an intelligence production module. However, due to restrictions such as data privacy and partitioned regions, it is not possible to jointly train with the security log data in each region in actual applications. After analyzing the cross-regional intelligence production system of power grid enterprises, it is found that the same problem exists. This results in situations where technical / non-technical factors prevent the complete acquisition of intelligence data in organizations with a "partitioned regions" model. Specifically, each region is the owner of regional security logs, and the local data it owns is defined as Rm. The local data is a set of security log data used to train the model, denoted as R, and R = {SL i3 |0 < i3 < n3}.

[0073] Among them, i3 is the number of security logs, and n3 represents the number of security devices, that is, the number of sources of security logs. SL i3 is the i3-th security log generated. The generated security log SL is used as the local data for training the local model and is extracted from the original security logs of security devices by the intelligence computing sub-module using regular expressions. The content in the set R is the same as the six-tuples screened by the intelligence computing sub-module.

[0074] In this embodiment, the federated learning scheduling component is used to control the intelligence production modules of all regional nodes. Its model is divided into an intelligence production joint model and an intelligence production regional model, denoted as Mu and Mr respectively. Among them, the intelligence production joint model Mu is the model finally used for intelligence production, and the intelligence production regional model Mr is the intelligence production module of each region in the federated learning process.

[0075] According to the characteristics of multi-data owners in horizontal federated learning training their respective models locally and sharing the joint model, the intelligence production joint model Mu is used in the intelligence production business model of the root node. However, the intelligence production joint model Mu only contains three basic models: weight statistics, frequency analysis, and score decay. The specific weight allocation and frequency interval setting cannot be completed solely by the original model Mo set by the initial value or the data of the root node. It is restricted by the model situation of the intelligence production regional model Mr. Therefore, the calculation formula of the intelligence production joint model Mu is:

[0076]

[0077] This formula indicates that the intelligence production joint model is an optimized integration of the models finally trained in each region. Among them, r = {r i4 |0 < r i4 < n4}, since the intelligence production region is divided into multiple regional nodes, n4 represents the number of regional nodes, and r i4 represents the number of each regional node.

[0078] The intelligence production module in this embodiment is composed of a weighted statistical model, a frequency analysis model, and a score decay model, and mainly calculates the threat score S in the basic intelligence data IoC through the following three intelligence production algorithms.

[0079] The above three models involved in this embodiment mainly calculate the threat score S in a sequential execution manner. First, the initial score of the threat score S is obtained by executing the weighted statistical model, and then the threat score S is dynamically adjusted through the frequency analysis model. Then, the threat score of the expired attack source is reduced through the score decay model to maintain the timeliness of the intelligence, and finally a dynamically changing threat score S is obtained. The specific examples are as follows:

[0080] (1) Weighted statistical model

[0081] This weighted statistical model is used to calculate the threat index. Multiple sets of security protection and traffic analysis equipment are deployed in the security protection architecture of power grid enterprises. High-risk attack sources are prone to trigger security device alarms. As the alarm level increases, the number of associated security devices increases, and the threat of the attack source address becomes more obvious. By summarizing the logs of each security device and reducing the distance of the security logs from the spatial dimension, assuming that the threat score of the attack source address is S, the weighted statistical algorithm of the threat score S is as follows:

[0082]

[0083] In this case, the subscript n represents the number of security devices, W is the pre-configured weight value of each type of security device, B is the benchmark value of each security device, and the default benchmark value is 30 points. m represents the number of days for calculating the weight statistics, and N i represents the number of alarms per day in m days, where the set of all security device weights is recorded as: {W1, W2, …, Wi, …, Wn}, and:

[0084]

[0085] The pre-set weights W for each type of security device can dynamically adjust the threat score S.

[0086] The above weighted statistical algorithm indicates that the threat score S of the attack source address IP in the statistical range is the weighted average of the threat scores in the past m days, which is used as the initial score of the threat score S.

[0087] (2) Frequency analysis model

[0088] From the attacker's perspective, high-risk attack source addresses have the characteristics of concentrated attack time and frequency. The frequency bands in the security log concentration are analyzed from the time dimension, and a higher threat score is given to the security log concentration. The frequency analysis model of the threat score S of the attack source address is calculated as follows:

[0089] S′ n′ =S′ n′-1 *|Co n′ -Co n′-1 | / |Co n′-1 -Co n′-2 |*(1+(Co n′ +Co n′-1 +Co n′-2 ) / 1000)

[0090] In the formula, S′ n′ Indicates time T n′ To time T n′-1 Threat score of high-risk attack sources within the interval, S′ n′-1 Indicates the last time T n′-1 To time T n′-2 The threat score of the attack source within the interval. In this case, n′ is just a code, indicating the code of the time node T.

[0091] According to the six-tuple defined by SL, assuming that time T n′ The number of attacks is Co n′ , then the previous time node T n′-1 The number of attacks is Co n′-1 , time T n′-2 Number of attacksCo n′-2 . Then the time node T n′ To time node T n′-1 The threat score S′ n′ , equal to time T n′-1 To time T n′-2 The threat score S′ n′-1 Multiply by the growth rate of the number of attacks, the growth rate of the number of attacks is the time node T n′ To T n′-1 The interval attack times are greater than the time T n′-1 To time T n′-2 The number of attacks in the interval.

[0092] In this embodiment, the time node T is set n′ With time node T n′-1 If the interval is 10 minutes, the threat score of the attack source address IP in the past 10 minutes is the ratio of the total number of attacks in the last 10 minutes to the number of attacks in the previous 10 minutes, multiplied by the score corresponding to the number of attacks in the last 10 minutes.

[0093] (3) Fractional decay model

[0094] Analyze security logs from the time dimension. When it is determined that all sources have not been updated for a fixed period of time, the score is reduced to delete the intelligence data according to the time decay algorithm. Define the threat score Sn+1 of the attack source address at time n+1. According to the time decay algorithm, the formula is as follows:

[0095]

[0096] Among them, S″ n′ Indicates time T n′ The threat score, t is the decay period, the above formula represents the time T n′+1 Threat score S″ n′+1 is time T n′ Threat score S″ n′ With the past T n′-1 The difference between the average threat score within the time period and the decay period t.

[0097] Assume that an attack tracing system and an email analysis system are deployed in the security protection system of a power grid enterprise, the attack tracing system weight W1 is 0.6, the email analysis system weight W2 is 0.4, and security logs SL1 to SL5 are obtained through regular expressions.

[0098] SL1 = (47.60.118.52, mailbox brute force, 10.99.1.122, 80, 2021-12-06-15-19-21, attack source tracing system)

[0099] SL2 = (47.60.118.52, scanning attack, 10.99.1.122, 27, 2021-12-06-15-21-45, attack tracing system)

[0100] SL3 = (47.60.118.52, brute force, 10.99.1.122, 50, 2021-12-06-15-31-55, email analysis system)

[0101] SL4 = (47.60.118.52, distributed brute force, 10.99.1.122, 107, 2021-12-06-15-23-35, attack source tracing system)

[0102] SL5=(47.60.118.52, sensitive information detection, 10.99.1.122, 158, 2021-12-06-15-26-06, attack tracing system)

[0103] Then when the basic score value B is 30 points, according to the calculation formula of the weighted statistical model, the basic score is 30.84 points. According to the analysis log set (SL1, SL2, SL4) of the frequency analysis model, the formula is used to calculate |Con′ -Co n′-1 | / |Co n′-1 -Co n′-2 The value of | is 1.5094, then calculate (1+(Co n′ +Co n′-1 +Co n′-2 ) / 1000) is 1.214, and the threat score calculated by the frequency analysis model is 56.51 points. According to the analysis log set (SL2, SL4, SL5) of the frequency analysis model, the formula is used to calculate |Co n′ -Co n′-1 | / |Co n′-1 -Co n′-2 The value of | is 0.51, and according to the formula (1+(Co n′ +Co n′-1 +Co n′-2 ) / 1000) is 1.292, and the calculated threat score is 37.24 points. According to the score decay model, the final calculated threat score gradually decreases to 0 points.

[0104] In this embodiment, federated learning is used to exchange parameters in the training process. The purpose is to aggregate and fuse the intermediate training data of individual participants and distribute them back to each region to update the local model. In this embodiment, the task of training parameter fusion and distribution is controlled by the federated learning scheduling component. The federated learning process for intelligence production is summarized as follows:

[0105] 1) The federated learning scheduling component of the root node aggregates the root node intelligence production module and other regional intermediate training parameters for fusion, and uses intelligence penetration technology to distribute data.

[0106] 2) When each regional node trains the intelligence production module based on the original security log at the root node, the training parameters are encrypted and uploaded using an encryption key.

[0107] Step 2: compress the intelligence of the root node or regional node produced, transmit the compressed intelligence through the isolation device to other regional nodes, and the other regional nodes restore the compressed intelligence into basic intelligence data.

[0108] Furthermore, step 2 specifically includes:

[0109] Step 201, after storing the intelligence of the root node or regional node of the production, based on the low-frequency point-to-point transmission technology, the stored intelligence is trimmed and restored to obtain basic intelligence data IoC, and the restored basic intelligence data IoC is compressed;

[0110] Specifically, when storing intelligence, the generated basic intelligence data IoC is stored in the local intelligence database through database entry. The intelligence storage module is essentially the process of entering the basic intelligence data IoC into the database, and this process completes the database writing process.

[0111] In this embodiment, the intelligence data clipping technology is used to generate structured compressed intelligence data, that is, the basic intelligence data IoC is clipped and restored through the low-frequency point-to-point transmission technology, and the basic intelligence data IoC is compressed.

[0112] The specific low-frequency point-to-point transmission technology is as follows: In order to ensure the effectiveness of basic intelligence data IoC transmission, the low-frequency point-to-point transmission technology is used to achieve basic intelligence data IoC clipping. Its main data structure is the intelligence field adjacency table.

[0113] The intelligence field adjacency table represents the options of all fields related to threat type events and attack methods in all intelligence fields, and is implemented through the data structure of the adjacency table. The specific process is as follows: Figure 3 As shown, it is an option to describe the possible TI and Ex fields in all basic intelligence data IoCs.

[0114] (1) Header of the intelligence field adjacency table: A single node in the head of the list (Head to Last-Recently) represents the name of a separate security log source Eq and external intelligence source Ex, and its number is the sum of the number of security log sources and external intelligence sources.

[0115] For example, the possible threat type events of the basic intelligence data IoC are security log sources Eq1 and Eq2, involving external intelligence sources Ex1 and Ex2, and the number of list headers is 4. Among them, k-bucket[1][0] represents the name of security log source Eq1, and its next node k-bucket[2][0] represents the name of security log source Eq2, and so on.

[0116] (2) A row linked list of the intelligence field adjacency table represents the options of possible attack methods At of the security log source Eq or the external intelligence source Ex. The row linked list describes all attack methods that the security log source Eq or the external intelligence source Ex has and is represented in the form of a single linked list row.

[0117] For example, the second row represents the attack method in the email security device Eq1, and the optional attack method items are represented from the second node onwards. For example, the attack method of the email security device may be "spam", "phishing email", "remote control Trojan" and other attack methods. These three items are arranged backwards in the form of a single linked list.

[0118] In this embodiment, intelligence tailoring module is used to perform intelligence tailoring. The essence of the intelligence tailoring module is to represent the Eq and Ex fields in the basic intelligence data IoC in the form of digital indexes. The input data is the complete basic intelligence data IoC (Formula 1), and the output information is the tailored intelligence data IoC. S (Formula 6), according to the intelligence field adjacency table, the position of the Eq column head in the row linked list where the security log source Eq is located is recorded as a1; the position of the attack method At in the security log source row linked list is calculated as b1, then TI can be expressed in the form of {(a1, b1), (a2, b2)....}, and the process is to convert the threat type event and external intelligence into the index value of the intelligence adjacency table according to the intelligence field adjacency table of the previous text, where the index value is represented by specific numbers such as 1, 2, 3, etc., indicating the specific position of the field in the intelligence field adjacency table, so as to simplify the size of the intelligence field, as shown in the following formula:

[0119] IoC S =(Ip,TI,Ex,S) (Formula 6)

[0120]

[0121]

[0122] For example, if the attack source IP address is 47.60.118.52, it has a vulnerability scanning attack method on the attack source tracing system Eq1, a spam history on the email security analysis device Eq2, and a vulnerability exploitation attack history in the national intelligence CNCERT. Its comprehensive intelligence threat score is 70 points, and its IoC is expressed as follows:

[0123] IoC = (47.60.118.52,TI,Ex,70)

[0124] TI={(Attack tracing system, vulnerability scanning, 2021-12-05-19-25-17),

[0125] (Email security analysis, spam, 2021-12-01-07-45-29)}

[0126] Ex={(National Intelligence CNCERT, vulnerability exploitation, 2021-11-26-21-06-12)}

[0127] The intelligence field after trimming of the attack source address IP47.60.118.52 is as follows, which represents the process of converting the original intelligence data into the trimmed intelligence data after querying the intelligence field adjacency table.

[0128] IoC S=(47.60.118.52,TI,Ex,70)

[0129] TI={(1,4,2021-12-05-19-25-17),(2,2,2021-12-01-07-45-29)}

[0130] Ex={(3,3,2021-11-26-21-06-12)}

[0131] Step 202, through SQL statements, the compressed basic intelligence data IoC is penetrated through the isolation device to be transmitted to other regional nodes, wherein the isolation device is used to isolate the root node and the information between the regional nodes.

[0132] It should be noted that this embodiment does not limit the implementation method of the isolation device.

[0133] Specifically, compressed intelligence data penetrates the information security isolation device through SQL statements. SQL data is used as a data transmission carrier to transmit data in a non-network manner. Under the premise of logical isolation between regions, low-frequency transmission of intelligence data is achieved.

[0134] In this embodiment, the isolation device SQL data transmission and point-to-point access control strategy are used to automatically cut off abnormal program behavior. The threat intelligence platform of the external network segments the intelligence package and IP reputation package of the system itself and stores them in the virtual database of the SQL isolation device. The real database of the intranet threat intelligence management platform regularly goes to the SQL isolation device to pull the latest data in the virtual database.

[0135] Step 203, other regional nodes restore the compressed intelligence after penetration into basic intelligence data based on the small frequency point-to-point transmission technology;

[0136] Specifically, the low-frequency point-to-point transmission algorithm mentioned in the above embodiment is applied to restore the compressed structured intelligence data into basic intelligence data IoC.

[0137] In this embodiment, the essence of the intelligence restoration algorithm is to compress the intelligence data and search the adjacency table of the intelligence field to convert the trimmed intelligence data IoC S The process of converting the index value of a threat type event TI and external intelligence Ex. The process is:

[0138] First determine the compressed intelligence data IoC S ;

[0139] Then find the adjacency list of the intelligence field, and determine the specific intelligence field information according to the list header and row linked list index value of the single element in the threat type event TI and the external intelligence Ex set;

[0140] Finally, the threat type event TI and external intelligence Ex are restored to the basic intelligence data field IoC.

[0141] For example, the attack source IP is 115.85.43.91, which has a vulnerability scanning attack method in the attack source tracing system Eq1, a spam history in the email security analysis device Eq2, and a vulnerability exploitation attack history in the national intelligence CNCERT. Its comprehensive intelligence threat score is 85 points, and its compressed intelligence data IoC S The statement is as follows:

[0142] IoC S =(115.85.43.91,TI,Ex,85)

[0143] TI={(1,4,2021-12-05-19-25-17),(2,2,2021-12-01-07-45-29)}

[0144] Ex={(3,3,2021-11-26-21-06-12)}

[0145] Step 3: Write the restored basic intelligence data into the regional intelligence database by writing it into the database, and use the federated learning scheduling component of the root node to aggregate the root node intelligence production module and other regional intermediate training parameters for fusion and distribution;

[0146] Specifically, when storing intelligence, the generated basic intelligence data IoC is first penetrated through the isolation device, and the basic intelligence data of the root node is penetrated into the internal area, and then written into the regional intelligence database by writing into the database. The essence of the regional node intelligence storage module is the process of writing the IoC of the root node area to the regional database.

[0147] The intelligence production process of subsequent regional nodes repeats the above process until the inner area cannot be accessed.

[0148] After completing the storage of basic intelligence data, the federated learning scheduling component of the root node is used to aggregate the root node intelligence production module and the intermediate training parameters of other regions for fusion, and the above-mentioned intelligence penetration technology is used for data distribution.

[0149] Step 4: Use the nodes in each region to train the intelligence production model based on the original security log at the root node, encrypt the training parameters with the encryption key and upload them as threat intelligence.

[0150] Specifically, the intelligence production module (weight statistics, frequency analysis, and score decay model) is compressed into a federated learning model and packaged into a compressed package of the intelligence production module. It is then transmitted to the region through an isolation device. When each regional node trains the intelligence production module based on the original security log at the root node, the training parameters are encrypted using an encryption key and uploaded as threat intelligence.

[0151] In step 5, the federated learning scheduling component confirms the updated part, aligns it horizontally, and returns the updated data to the area where the root node is located. The homomorphic encryption mechanism proposed in the federated learning model is used to complete the gradient update of each intelligence production module and the update of the local model.

[0152] The above describes in detail the technical solution of the present application in conjunction with the accompanying drawings. The present application proposes a method for producing and analyzing threat intelligence based on federated learning, including: Step 1, based on the original security log and the intelligence production module, calculate the basic intelligence data IoC, and produce the intelligence of the root node or regional node; Step 2, compress the intelligence of the produced root node or regional node, penetrate the isolation device with the compressed intelligence, and transmit it to other regional nodes, and the compressed intelligence after penetration is restored to basic intelligence data by other regional nodes; Step 3, write the restored basic intelligence data into the regional intelligence database by writing to the database, and use the federated learning scheduling component of the root node to summarize the root node intelligence production module and other regional intermediate training parameters for fusion and distribution; Step 4, use each regional node to train the intelligence production module based on the original security log at the root node, encrypt the training parameters with the encryption key and upload them as threat intelligence. The technical solution in this application helps to improve the accuracy of the internal intelligence converted by the security log.

[0153] The steps in this application can be adjusted in order, combined, and deleted according to actual needs.

[0154] The units in the device of the present application can be combined, divided and deleted according to actual needs.

[0155] Although the present application is disclosed in detail with reference to the accompanying drawings, it should be understood that these descriptions are merely exemplary and are not intended to limit the application of the present application. The scope of protection of the present application is defined by the appended claims and may include various modifications, alterations and equivalents made to the invention without departing from the scope and spirit of the present application.

Claims

1. A method for producing and analyzing threat intelligence based on federated learning, characterized in that: The method comprises: Step 1: Based on the original security log and intelligence production module, calculate the basic intelligence data IoC and produce intelligence of the root node or regional node; Step 2, compressing the intelligence of the root node or regional node produced, transmitting the compressed intelligence through the isolation device to other regional nodes, and restoring the compressed intelligence after penetration into basic intelligence data by the other regional nodes; Step 3, writing the restored basic intelligence data into the regional intelligence database by writing into the database, and using the federated learning scheduling component of the root node to aggregate the root node intelligence production module and other regional intermediate training parameters for fusion and distribution; Step 4: Use the nodes in each region to train the intelligence production module based on the original security log at the root node, encrypt the training parameters with the encryption key and upload them as threat intelligence; The basic intelligence data IoC includes at least: attack source address, threat type event, external intelligence and threat score. The calculation formula of the basic intelligence data IoC is: IoC=(Ip,TI,Ex,S) In the formula, Ip is the attack source address, TI is the threat type event, Ex is the external intelligence, S is the threat score, i0 is the attack sequence number, n0 is the attack sequence length, Eq i0 is the security device for the ith attack, At i0 is the attack mode of the i0th attack, Tm i0 is the attack time of the i0th attack, Ei j is the name of the jth external intelligence source, At j is the attack method of the jth external intelligence source, Tm j is the attack time of the jth external intelligence source; The intelligence production module consists of a weighted statistical model, a frequency analysis model, and a score decay model; The weighted statistical model is used to calculate the threat score, and the calculation formula of the threat score is: In the formula, the subscript n represents the number of security devices, W is the pre-configured weight value of each type of security device, B is the baseline value of each security device, m represents the number of days for calculating the weight statistics, and N i Indicates the number of alarms per day in m days; The calculation formula of the frequency analysis model is: S′ n′ =S′ n′-1 *|What n′ -What n′-1 | / |What n′-1 -What n′-2 |*(1+(What n′ +What n′-1 +What n′-2 ) / 1000) In the formula, S′ n′ Indicates time T n′ To time T n′-1 Threat score of high-risk attack sources within the interval, S′ n′-1 Indicates the last time T n′-1 To time T n′-2 The threat score of the attack source in the interval. In this case, n′ is just a code, indicating the code of the time node T. Co n′ is time T n′ Number of attacks; The calculation formula of the fractional decay model is: Where S″ n′ Indicates time T n′ The threat score is t, the decay period, and the above formula represents the time T n′+1 The threat score S′ n′+1 is time T n′ The threat score S′ n′ With the last time T n′-1 The difference between the average threat score within the time period and the decay period t.

2. The method for producing and analyzing threat intelligence based on federated learning according to claim 1, characterized in that: The step 1 also includes: Based on the intelligence calculation submodule, a regular expression is applied to filter the attack source address Ip, attack method At, attack target De, attack number Co, attack time Tm and security log source Eq in the original security log to generate a security log SL. Among them, each security log SL corresponds to a basic intelligence data IoC.

3. The method for producing and analyzing threat intelligence based on federated learning according to claim 1, characterized in that: The step 1 also includes: When it is determined that the attack source addresses IP of any two basic intelligence data IoCs are the same, the basic intelligence data IoCs with the same attack source address IP are merged using the intelligence splicing submodule; When it is determined that the threat score of the merged basic intelligence data IoC is less than the score threshold, the corresponding merged basic intelligence data IoC is deleted.

4. The method for producing and analyzing threat intelligence based on federated learning according to any one of claims 1 to 3, characterized in that: The threat intelligence production and analysis method further includes: In step 5, the federated learning scheduling component confirms the updated part, aligns it horizontally, and returns the updated data to the area where the root node is located. Using the homomorphic encryption mechanism, the gradient update of each intelligence production module is completed, and the threat intelligence in the local model is updated.

5. The method for producing and analyzing threat intelligence based on federated learning according to claim 1, characterized in that: The step 2 specifically includes: Step 201, after storing the intelligence of the root node or regional node, based on the low-frequency point-to-point transmission technology, the stored intelligence is trimmed and restored to obtain basic intelligence data IoC, and the restored basic intelligence data IoC is compressed; Step 202: perform intelligence penetration on the compressed basic intelligence data IoC through SQL statements, penetrate the isolation device, and transmit it to the other regional nodes. Wherein, the isolation device is used to isolate information between the root node and each regional node; Step 203: The other regional nodes restore the compressed intelligence after penetration into basic intelligence data based on the low-frequency point-to-point transmission technology.