Threat intelligence production method, device, equipment, medium and program product

By obtaining and parsing log information, configuring alarm policies, calculating similarity and using deep neural networks to generate threat intelligence, the problems of thick granularity, indetails and inefficiency in the existing technology are solved, and the automated generation of threat intelligence and Improved timeliness.

CN118972091APending Publication Date: 2024-11-15BEIJING YOUTEJIE INFORMATION TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410928257.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing technology has coarse granularity and insufficient details in threat intelligence production, inconsistent equipment strategies, low manual analysis efficiency, lagging update speed, and lack of automation.

Method used

By obtaining the original log information, standardized analysis obtains log key field information, configures alarm security policies, calculates the similarity of alarm information for aggregation, and uses deep neural networks to generate classified confidence in threat intelligence, improving the reliability and timeliness of threat intelligence.

Benefits of technology

It realizes the automated generation of threat intelligence, improves the reliability and timeliness of intelligence, avoids unreliability, enriches the information content, and improves the generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972091A_ABST
    Figure CN118972091A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a threat intelligence production method, device and equipment, a medium and a program product. The method comprises the following steps: acquiring original log information, and performing standardized analysis on the original log information to obtain log key field information; configuring an alarm security policy according to the original log information, alarming the log key field information according to the alarm security policy, and generating alarm information; the alarm security strategy comprises an alarm mode and alarm context information; calculating the similarity between the alarm information, and aggregating the alarm information according to the similarity to obtain an aggregation result; performing feature coding on the alarm information in the aggregation result, and inputting a feature code into a deep neural network to obtain the classification confidence of the threat intelligence; and carrying out standardization processing on the alarm information and the classification confidence to generate threat information. The reliability of threat intelligence can be improved by configuring an alarm security policy and classification confidence; threat intelligence content can be enriched through alarm context information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a method, device, equipment, medium and program product for producing threat intelligence. Background Art

[0002] With the development of science and technology, threat intelligence technology has become an indispensable part of enterprise security construction. Threat intelligence helps to warn and perceive potential network threats in advance, enhance network defense and emergency response, and optimize security decision-making and resource allocation.

[0003] Usually, enterprises obtain threat intelligence through channels including: external threat intelligence service providers, institutional information, security vendors, and internal enterprise data analysis. External threat intelligence is global and real-time. However, local threat intelligence is closer to the enterprise's specific network environment and can provide more accurate and customized security defense measures.

[0004] Therefore, analyzing the internal data of the enterprise and generating local threat intelligence is an important means of network defense. However, the existing threat intelligence production method is mainly based on existing security events, resulting in a coarse granularity of threat intelligence and a lack of details; and the security policies of the devices are not unified, resulting in the generation of threat intelligence of varying quality. In addition, the threat intelligence of the existing technology is mainly based on manual analysis, lacks automation, is inefficient, and has a slow update speed. Summary of the invention

[0005] The present invention provides a method, device, equipment, medium and program product for producing threat intelligence, so as to automatically generate threat intelligence based on log information, and improve the reliability of threat intelligence by configuring alarm security strategy and classification confidence.

[0006] According to one aspect of the present invention, a method for producing threat intelligence is provided, the method comprising:

[0007] Obtaining original log information, and performing standardized parsing on the original log information to obtain log key field information;

[0008] Configure an alarm security policy based on the original log information, and issue an alarm for the key field information of the log according to the alarm security policy to generate alarm information;

[0009] The alarm security strategy includes: alarm mode and alarm context information;

[0010] Calculate the similarity between each alarm information, and aggregate the alarm information according to the similarity to obtain an aggregated result;

[0011] Perform feature encoding on the warning information in the aggregation results, and input the feature encoding into the deep neural network to obtain the classification confidence of the threat intelligence;

[0012] Standardize the warning information and classification confidence to generate threat intelligence.

[0013] According to another aspect of the present invention, a threat intelligence production device is provided, the device comprising:

[0014] The log key field information acquisition module is used to acquire the original log information and perform standardized analysis on the original log information to obtain the log key field information;

[0015] An alarm information generating module is used to configure an alarm security policy according to the original log information, and to generate alarm information for the key field information of the log according to the alarm security policy;

[0016] The alarm security strategy includes: alarm mode and alarm context information;

[0017] The aggregation result determination module is used to calculate the similarity between each alarm information, and aggregate the alarm information according to the similarity to obtain the aggregation result;

[0018] The classification confidence determination module is used to perform feature encoding on the alarm information in the aggregation result, and input the feature encoding into the deep neural network to obtain the classification confidence of the threat intelligence;

[0019] The threat intelligence generation module is used to standardize the alarm information and classification confidence to generate threat intelligence.

[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0021] at least one processor; and

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the threat intelligence production method described in any embodiment of the present invention.

[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for producing threat intelligence described in any embodiment of the present invention when executed.

[0025] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method for producing threat intelligence according to any embodiment of the present invention is implemented.

[0026] The technical solution of the embodiment of the present invention obtains the original log information and performs standardized analysis on the original log information to obtain the key field information of the log; configures the alarm security policy according to the original log information, and alarms the key field information of the log according to the alarm security policy to generate alarm information; wherein the alarm security policy includes: an alarm mode and an alarm context information; calculates the similarity between each alarm information, and aggregates the alarm information according to the similarity to obtain an aggregated result; performs feature encoding on the alarm information in the aggregated result, and inputs the feature encoding into a deep neural network to obtain the classification confidence of the threat intelligence; standardizes the alarm information and the classification confidence to generate threat intelligence, thereby solving the problem of local threat intelligence production. The scheme can improve the reliability of threat intelligence generation by configuring the alarm security policy according to the log information, and avoids the unreliability of directly extracting threat intelligence from the alarm information; the alarm context information can enrich the threat intelligence content; the classification confidence can further improve the reliability of threat intelligence; and the threat intelligence generation efficiency can be improved by automatically generating threat intelligence, thereby ensuring the timeliness of intelligence.

[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0029] Figure 1 is a flow chart of a method for producing threat intelligence provided according to Embodiment 1 of the present invention;

[0030] Figure 2 is a flowchart of another method for producing threat intelligence provided according to the first embodiment of the present invention;

[0031] Figure 3 This is a schematic diagram of the structure of a threat intelligence production device provided according to Embodiment 2 of the present invention;

[0032] Figure 4It is a structural schematic diagram of an electronic device for implementing the method for producing threat intelligence according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] Embodiment 1

[0036] Figure 1 This is a flowchart of a method for producing threat intelligence according to the first embodiment of the present invention. This embodiment is applicable to the situation where threat intelligence is generated by performing data analysis based on internal data in an enterprise. The method can be executed by a threat intelligence production device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device such as a computer. Figure 1 As shown, the method includes:

[0037] Step 110: Obtain original log information, and perform standardized analysis on the original log information to obtain log key field information.

[0038] Among them, the acquisition of log information is only obtained after authorization by the user, and the method of acquisition is reasonable and legal. In an embodiment of the present invention, a lightweight agent (Agent) can be deployed on the device to collect original log information. For example, the system log (Syslog) protocol is used to uniformly collect log messages from security devices such as the website application-level intrusion prevention system (Web Application Firewall, WAF), intrusion detection system (Intrusion Detection System, IDS), and intrusion prevention system (Intrusion Prevention System, IPS). Alternatively, log files in servers and application systems can also be collected. In addition, other methods can also be used to collect logs from different devices to ensure comprehensive log data coverage.

[0039] Standardized analysis of raw log information can be used to enrich data based on the raw log information, which is convenient for subsequent data analysis and processing. For example, for the IP address in the log, the IP geolocation database can be used to parse the corresponding geolocation information, including country, region, and city. In addition, the original timestamp in the log can be converted to a standard date and time format. When performing timestamp conversion, time zone conversion is considered to facilitate event correlation analysis across time zones.

[0040] In an optional implementation of the embodiment of the present invention, the key field information of the log includes at least one of the following: timestamp, source IP address, destination IP address and event type. Each key field information of the log includes corresponding rich data.

[0041] For example, for the log of IDS system <12> May 16 14:21:36(none):{"dt":"VENUS_IDS_0700R0200B20140925112801","level":30,"id":"152521921","type":"AlertLo g","time":1526632591831,"source":{"ip":"192.168.2.132","port":64548,"mac":"F7-C8-4A-55-81-CB"},"destin ation":{"ip":"192.168.3.123","port":445,"mac":"78-C6-1B-B1-F5-77"},"protocol":"HTTP","subject":"HTTP_SQL error information disclosure_3","message":"nic=1;Host=;URL=;URL length=0;Http protocol header length=0;Access file=;Return content=b0 90 5c d0 ed 2f 42 57 61 01 39 34 81 00 08 00 80 38c7 81b0 89be 22 0d86 62 65 11f8 20 64 62 6d 73 5f 61 71 69 6e2e 61 71 24 5f 64 65 71 75 80 2100c0 65 75 65 5f 69 6e 28 64 32 81 7b 65 20 20 20 23 22 3d 3e 20 3f 2c 20 7375 62 73 63 72 69 62 65 72 23 22 83 47ee f0 21 22e4 c3 6d 73 67 69 64 21 2228 22e4c3 51 84 72 65 6c 61 2f 6f 6e 25 22e4 c3 26 27 6d 91 23 24 22e4c3 6e61 76 69 11 62f1 98 24 22 04 20 9c 98 20 20e4 c3 76 69 7369 62 69 6c 69 74 792c 22 77 61 69 74 26 22 24 22e4 c3 65 6e 64; "}", which can be parsed as "timestamp:2024 / 05 / 16 / 14:21:36; subject:HTTP_SQL error information leakage_3; protocol:HTTP; src_ip:192.168.2.132; src_port:64548; dst_ip:192.168.3.123; dst_port:445". Among them, "timestamp" is the timestamp, "subject" is the event type, "protocol" is the protocol, "src_ip" is the source IP address, "src_port" is the source port number, "dst_ip" is the destination IP address, and "dst_port" is the destination port number.

[0042] By comprehensively collecting log information and performing standardized processing, such as adding IP geolocation resolution information, the consistency and availability of data can be improved.

[0043] Step 120: configure an alarm security policy according to the original log information, and issue an alarm for the key field information of the log according to the alarm security policy to generate alarm information.

[0044] The alarm security policy can be a unified policy for different device configurations, which can avoid the problem of unreliable threat intelligence generation caused by uneven device alarm security policies. The alarm security policy can be configured through the Security Information and Event Management Platform (SIEM). Among them, the alarm security policy includes: alarm method and alarm context information. Through the configuration of the alarm security policy, the system can be helped to accurately identify, analyze and respond to various security threats, and provide detailed context information.

[0045] In an optional implementation of an embodiment of the present invention, an alarm security policy is configured according to the original log information, and an alarm is issued for key field information of the log according to the alarm security policy to generate alarm information, including: configuring at least one of the following alarm modes according to the original log information: direct alarm, aggregated statistical alarm, and correlation analysis alarm; configuring at least one of the following alarm context information according to the original log information: threat type, threat description, threat level, attack stage, and attack technology; and issuing an alarm for key field information of the log according to the alarm mode and the alarm context information to generate alarm information.

[0046] Direct alerts can be real-time alerts for high-risk events (such as SQL injection attacks and DDoS attacks). Aggregate statistical alerts can be used to perform statistical analysis on frequently occurring events to help identify and track long-term trends and abnormal patterns. Correlation analysis alerts identify complex attack behaviors such as advanced persistent threats (APT) by correlating different log events. Through the configuration of alert security policies, the system can accurately identify, analyze and respond to various security threats and provide detailed contextual information.

[0047] In an embodiment of the present invention, the alarm information can be converted to a standard format. For example, the alarm information can be converted to a lightweight data exchange format (JavaScript Object Notation, JSON). By converting the alarm information into a unified structure format, data processing can be made more efficient. The alarm information in JSON format can be stored in a centralized database for further query and analysis. The alarm information may include: alarm timestamp, event type, source IP address, target IP address, threat type, threat description, threat level, attack stage, and attack technique.

[0048] Exemplarily, the warning information may be:

[0049] {"timestamp":"2024 / 05 / 16 12:13:23"

[0050] “threat_name”:”SQL injection attack”,

[0051] "threat_type":"WEB attack",

[0052] "src_ip":"192.168.32.13",

[0053] "dst_ip":"192.168.23.12",

[0054] “desc”:”Attack source: 192.168.32.13 attempted to launch a WEB attack on 192.168.23.12. The attack result was: Attack failed”,

[0055] “result”:”Attack failed”,

[0056] "threat_level":"high risk",

[0057] .....}

[0058] Among them, "threat_name" is the threat name, "threat_type" is the threat type, "desc" is the threat description, "result" is the attack result, and "threat_level" is the threat level.

[0059] Step 130: Calculate the similarity between each piece of alarm information, and aggregate the alarm information according to the similarity to obtain an aggregated result.

[0060] The similarity of the alarm information can be calculated in one or more dimensions. For example, the similarity between the alarm information can be calculated in the dimensions of attack time and / or victim. For another example, on this basis, the similarity of the alarm information can also be calculated from the dimensions of threat type or threat description. The similarity calculation method includes cosine similarity calculation or Euclidean distance. When the similarity of the alarm information reaches a preset similarity threshold, the alarm information can be merged.

[0061] In an optional implementation of an embodiment of the present invention, calculating the similarity between each alarm information includes: obtaining the attack time and the attacked person in each alarm information; calculating the similarity between each alarm information according to the distance between the attack times in each alarm information and whether the attacked persons are the same. When the attack times of the alarm information are closer, the similarity of the alarm information is higher. When the attacked persons are the same, the similarity of the alarm information is high. When calculating the similarity of the alarm information, the distance between the attack times and whether the attacked persons are the same can be considered as two dimensions.

[0062] On the basis of the above implementation, optionally, according to the distance of attack time in each alarm information and whether the attacked persons are the same, the similarity between the alarm information is calculated, including: according to the formula Determine the time similarity of the attack time in each alarm information; where α is a constant, t i With t j are the attack time of the i-th and j-th alarm information respectively; according to the formula Determine the similarity of the attacked party of each alarm information; where D i With D j are the attacked sets of the i-th and j-th alarm information respectively, and D i ∩D j With D i ∪D j are the number of elements in the set intersection and the set union respectively; the similarity between each alarm information is calculated based on the time similarity and the attacked similarity.

[0063] Among them, the time similarity can be calculated by the exponential decay formula. The closer the attack time of two alarm information is, the higher the similarity of the alarm information is. The similarity of the two alarm messages can be mapped in the interval [0,1]. When the attack time of the two alarm messages is exactly the same, the time similarity is 1; the longer the interval between the attack times of the two alarm messages is, the smaller the time similarity is.

[0064] The similarity of the attacked is calculated by the intersection and union of the attacked sets. The more similar the sets are, the higher the similarity. The victim similarity can be mapped in the interval [0,1]. When the victims of two alarm messages are exactly the same, the victim similarity is 1; the greater the difference between the victims of the two alarm messages, the smaller the victim similarity.

[0065] When calculating the similarity between each alarm information based on the time similarity and the attacked similarity, the weight parameter can be used to optimize the similarity. For example, the formula S(i,j)=ω1×S t +ω2×S d Determine the similarity between alarm information. t is the time similarity between the i-th and j-th alarm information, S d is the similarity of the attacked party between the i-th and j-th alarm information. ω1 and ω2 are the weights of the time similarity and the attacked party similarity respectively. The weights can be adjusted and optimized according to the requirements.

[0066] Step 140: feature encode the alarm information in the aggregation result, and input the feature code into the deep neural network to obtain the classification confidence of the threat intelligence.

[0067] Among them, the feature encoding of the alarm information is to use a deep neural network to perform model training to obtain the classification confidence corresponding to the alarm information. The feature encoding of the alarm information can be feature extraction based on each dimension in the alarm information. In an optional implementation of an embodiment of the present invention, the alarm information in the aggregation result is feature encoded, and the feature encoding is input into a deep neural network to obtain the classification confidence of the threat intelligence, including: performing feature encoding of at least one of the following items on the alarm information in the aggregation result: timestamp encoding, intelligence source encoding, attack type encoding, threat level encoding, attack result encoding, and attack count encoding within a preset time period; constructing a deep neural network through activation functions and randomized connection weights and performing model training; inputting the feature encoding into the deep neural network to obtain a multidimensional feature vector output by the multi-layer network of the deep neural network; using a classifier to classify the multidimensional feature vector to obtain the classification confidence of the threat intelligence.

[0068] In the embodiment of the present invention, the timestamp is an important indicator for evaluating threat intelligence. Threat intelligence has a strong timeliness. The closer the time is to the release time of threat intelligence, the less likely it is to be invalid. For example, the timestamp encoding can record the system current time and the attack timestamp. If the system current time is encoded as t now =1716345725, the attack timestamp is coded as t latest =1716343211.

[0069] Intelligence source coding can be to code the source of the original log information, for example, to code the alarm log source in the SIEM platform. Different devices have different strategies. Intelligence sources can reflect the credibility of threat intelligence, so intelligence sources can be coded. Intelligence source coding can use one-hot coding to ensure the independence of the characteristics of each intelligence source.

[0070] For example, the intelligence source code may be: when the intelligence comes from WAF, the code is 1000…00; when the intelligence comes from IDS, the code is 0100…00; when the intelligence comes from SIEM, the code is 0010…00; and the codes of other intelligence sources are similar. The length of the intelligence source code corresponds to the number of intelligence source types.

[0071] The attack type code can also be encoded in a one-hot manner, and different types can be mapped to different dimensions. For example, when SQL injection occurs, the code is 1000...00; when XSS attack occurs, the code is 0100...00; when DDoS attack occurs, the code is 0010...00; and the codes for other attack types are similar. The attack type code length corresponds to the attack type.

[0072] The threat level code can also be encoded in a one-hot manner. For example, when the threat level is low, the code is 1000...00; when the threat level is medium, the code is 0100...00; when the threat level is high, the code is 0010...00, and so on. The threat level code length corresponds to the threat level type.

[0073] The attack result code indicates the success or failure of the attack and its impact, and can be encoded in a one-hot encoding method. When the attack result is successful, it is encoded as 1000...00; when the attack result is failed, it is encoded as 0100...00; when the attack result is unknown, it is encoded as 0010...00, and so on. The attack result code length corresponds to the type of attack result.

[0074] For example, the number of attacks within the preset time period can be the number of attacks in the past 7 days. The number of attacks in the past 7 days can be the number of attacks on a certain IP address in the alarm information in the past 7 days. Exemplarily, the attacks and their results related to the IP address can be queried through the search query language (SPL) as an important feature for evaluating the credibility of threat intelligence. The number of attacks within the preset time period can be encoded as a specific numerical feature. For example, the number of attacks within the preset time period is encoded as 5 times.

[0075] For example, the warning information is: "Current time: 2024-05-20 15:00; attack timestamp: 2024-05-2014:35; intelligence source: IDS; attack type: SQL injection; threat level: high risk; attack result: success; number of attacks in the past 7 days: 5". The corresponding feature code can be: "Timestamp code: 1500 (expressed as time difference: 1716188400-1716186900=1500); intelligence source code is 0100...00; attack type code is 100...00; threat level code is 100...00; attack result code is 100...00; number of attacks in the preset time period is coded as 5 (directly as a numerical feature)".

[0076] In the embodiment of the present invention, the deep neural network may include a multi-layer network, and in each layer of the network, the activation function and the randomized connection weights are used to initialize the network. For example, the connection weights are randomized and the activation function is used to obtain the first layer connection weight set; then the first layer training result is used to obtain the next layer connection weight set by random connection weights and activation function, and so on, until the last layer connection weight set is obtained.

[0077] The randomized connection weights can be determined by taking random numbers in the interval [0,1]. The activation function can be selected And linear function Among them, x i is the input of the previous layer of neurons in the deep neural network, ω i is the connection weight between the previous layer neurons and the current layer neurons.

[0078] The multidimensional feature vector output by the multi-layer network of the neural network can be classified by a classifier. For example, the confidence of threat intelligence is classified by a Softmax classifier. Among them, z k is the probability of the output layer of the deep neural network corresponding to category k. The categories of threat intelligence can include high, medium, and low. The final threat intelligence category is the category corresponding to the maximum probability, and the corresponding classification confidence is its probability value.

[0079] When training the deep neural network model, the security operation personnel can use the annotated data of the alarm information in SIEM for supervised training. Through the error between the annotated data and the predicted data, the model parameters can be continuously adjusted to improve the prediction accuracy. Through feature extraction and encoding, the threat intelligence is deeply analyzed from multiple dimensions, and the deep neural network algorithm is used to classify the confidence of the threat intelligence. Combined with the actual disposal results of security operations, the error back propagation algorithm and gradient descent optimization algorithm are used to continuously optimize the model and improve the accuracy of classification, realizing the automatic generation of threat intelligence and ensuring that the system can continuously improve and adapt to new threat intelligence.

[0080] Step 150: Standardize the alarm information and classification confidence to generate threat intelligence.

[0081] Among them, the standardized processing of alarm information and classification confidence can meet the open standard format of threat intelligence (Structured Threat Information Expression, STIX 2.1).

[0082] For example, threat intelligence can be:

[0083]

[0084]

[0085]

[0086] By converting threat intelligence to the STIX 2.1 format, standardization and interoperability of threat intelligence can be ensured, making it easier to share and exchange with other systems and platform processes.

[0087] The technical solution of this embodiment obtains the original log information and performs standardized analysis on the original log information to obtain the key field information of the log; configures the alarm security policy according to the original log information, and issues an alarm for the key field information of the log according to the alarm security policy to generate alarm information; wherein the alarm security policy includes: an alarm method and an alarm context information; calculates the similarity between each alarm information, and aggregates the alarm information according to the similarity to obtain an aggregated result; performs feature encoding on the alarm information in the aggregated result, and inputs the feature encoding into a deep neural network to obtain the classification confidence of the threat intelligence; standardizes the alarm information and the classification confidence to generate threat intelligence, thereby solving the problem of local threat intelligence production. The solution can improve the reliability of threat intelligence generation by configuring the alarm security policy according to the log information, and avoids the unreliability of directly extracting threat intelligence from the alarm information; the alarm context information can enrich the threat intelligence content; the classification confidence can further improve the reliability of threat intelligence; and the threat intelligence generation efficiency can be improved by automatically generating threat intelligence, thereby ensuring the timeliness of the intelligence.

[0088] Figure 2 FIG. 1 is a flowchart of another method for producing threat intelligence according to the first embodiment of the present invention. Figure 2 As shown, raw log collection can be performed on IDS, WSF, and IPS devices, or on Windows and Linux systems, or on VPN and bastion hosts. For the collected raw log information, key fields can be extracted and enriched, such as timestamp parsing, IP geographic location parsing, and field standardization, to obtain log key field information. After that, security alarm policies can be configured to generate alarm information. Among them, the alarm security policy includes: alarm mode and alarm context information. The alarm mode includes: direct alarm, aggregated statistical alarm, and correlation analysis alarm. The alarm context information includes: threat type, threat description, threat level, attack stage, and attack technology. The alarm information can be standardized into JSON format, and time similarity and attacked similarity calculations are performed to aggregate the alarm information. Feature extraction is performed on the aggregated alarm information, and the classification confidence of the threat intelligence is obtained through a machine learning algorithm (deep neural network). Among them, the feature extraction dimensions include but are not limited to: timestamp, intelligence source, attack type, threat level, and the number of attacks in the past 7 days. According to the alarm information and classification confidence, STIX2 format conversion is performed to obtain threat intelligence, thereby improving the efficiency of threat response and providing strong support for the security operations of enterprises and organizations.

[0089] Embodiment 2

[0090] Figure 3Schematic diagram of a threat intelligence production device according to the second embodiment of the present invention. Figure 3 As shown, the device includes: a log key field information acquisition module 310, an alarm information generation module 320, an aggregation result determination module 330, a classification confidence determination module 340 and a threat intelligence generation module 350. Among them:

[0091] The log key field information acquisition module 310 is used to acquire the original log information and perform standardized analysis on the original log information to obtain the log key field information;

[0092] The alarm information generating module 320 is used to configure the alarm security policy according to the original log information, and to generate alarm information for the key field information of the log according to the alarm security policy;

[0093] Among them, the alarm security strategy includes: alarm mode and alarm context information;

[0094] The aggregation result determination module 330 is used to calculate the similarity between each alarm information, and aggregate the alarm information according to the similarity to obtain an aggregation result;

[0095] A classification confidence determination module 340 is used to perform feature encoding on the alarm information in the aggregation result, and input the feature encoding into a deep neural network to obtain the classification confidence of the threat intelligence;

[0096] The threat intelligence generation module 350 is used to standardize the alarm information and classification confidence to generate threat intelligence.

[0097] Optionally, the aggregation result determination module 330 includes:

[0098] An attack time and attacked person acquisition unit, used to acquire the attack time and attacked person in each alarm information;

[0099] The similarity calculation unit is used to calculate the similarity between each alarm information according to the distance of the attack time in each alarm information and whether the attacked persons are the same.

[0100] Optionally, a similarity calculation unit includes:

[0101] The temporal similarity calculation subunit is used to calculate the temporal similarity according to the formula Determine the time similarity of the attack time in each alarm information; where α is a constant, t i With t j are the attack time of the i-th and j-th alarm information respectively;

[0102] The attacked similarity calculation subunit is used to calculate the similarity of the attacked Determine the similarity of the attacked party of each alarm information; where D i With D j are the attacked sets of the i-th and j-th alarm information respectively, and D i ∩D j With D i ∪D j are the number of elements in the set intersection and the set union respectively;

[0103] The similarity calculation subunit is used to calculate the similarity between each alarm information according to the time similarity and the attacked similarity.

[0104] Optionally, the alarm information generating module 320 includes:

[0105] An alarm mode configuration unit, used to configure at least one of the following alarm modes according to the original log information: direct alarm, aggregated statistical alarm and correlation analysis alarm;

[0106] An alarm context information configuration unit, configured to configure at least one of the following alarm context information according to the original log information: threat type, threat description, threat level, attack stage and attack technology;

[0107] The alarm information generating unit is used to generate alarm information for the key field information of the log according to the alarm mode and the alarm context information.

[0108] Optionally, the classification confidence determination module 340 includes:

[0109] A feature coding unit, used to perform feature coding of at least one of the following items on the alarm information in the aggregation result: timestamp coding, intelligence source coding, attack type coding, threat level coding, attack result coding, and attack count coding within a preset time period;

[0110] A deep neural network training unit is used to construct a deep neural network and perform model training through activation functions and randomized connection weights;

[0111] A multi-dimensional feature vector acquisition unit, used to input the feature code into the deep neural network, and obtain the multi-dimensional feature vector output by the multi-layer network of the deep neural network;

[0112] The classification confidence determination unit is used to classify the multi-dimensional feature vector using a classifier to obtain the classification confidence of the threat intelligence.

[0113] Optionally, the log key field information includes at least one of the following: timestamp, source IP address, destination IP address, and event type.

[0114] The threat intelligence production device provided in the embodiment of the present invention can execute the threat intelligence production method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0115] In the technical solutions of the embodiments of the present invention, the collection, storage, use, processing, transmission, provision and disclosure of user personal information (such as log information, etc.) are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0116] Embodiment 3

[0117] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0118] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0119] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0120] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a method for producing threat intelligence.

[0121] In some embodiments, the method for producing threat intelligence may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for producing threat intelligence described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for producing threat intelligence in any other appropriate manner (e.g., by means of firmware).

[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0123] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0124] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0125] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0126] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0127] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0129] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for producing threat intelligence, characterized in that: include: Obtaining original log information, and performing standardized parsing on the original log information to obtain log key field information; Configure an alarm security policy based on the original log information, and issue an alarm for the key field information of the log according to the alarm security policy to generate alarm information; The alarm security strategy includes: alarm mode and alarm context information; Calculate the similarity between each alarm information, and aggregate the alarm information according to the similarity to obtain an aggregated result; Perform feature encoding on the warning information in the aggregation results, and input the feature encoding into the deep neural network to obtain the classification confidence of the threat intelligence; Standardize the warning information and classification confidence to generate threat intelligence.

2. The method according to claim 1, characterized in that Calculate the similarity between each alarm information, including: Obtain the attack time and the attacked person in each alarm information; The similarity between the alarm information is calculated based on the distance of the attack time in each alarm information and whether the attacked persons are the same.

3. The method according to claim 2, characterized in that Based on the distance between the attack times in each alarm information and whether the attacked are the same, the similarity between the alarm information is calculated, including: According to the formula Determine the time similarity of the attack time in each alarm information; where α is a constant, t i With t j are the attack time of the i-th and j-th alarm information respectively; According to the formula Determine the similarity of the attacked party of each alarm information; where D i With D j are the attacked sets of the i-th and j-th alarm information respectively, and D i ∩D j With D i ∪D j are the number of elements in the set intersection and the set union respectively; The similarities between the warning information are calculated according to the time similarity and the attacked similarity.

4. The method according to claim 1, characterized in that: Configure an alarm security policy based on the original log information, and generate an alarm for the key field information of the log according to the alarm security policy, including: Configure at least one of the following alarm modes based on the original log information: direct alarm, aggregated statistics alarm, and correlation analysis alarm; Configure at least one of the following alarm context information based on the original log information: threat type, threat description, threat level, attack stage, and attack technology; According to the alarm mode and alarm context information, an alarm is issued for the key field information of the log to generate alarm information.

5. The method according to claim 1, characterized in that The warning information in the aggregation result is feature encoded and input into the deep neural network to obtain the classification confidence of the threat intelligence, including: Performing at least one of the following feature coding on the alarm information in the aggregation result: timestamp coding, intelligence source coding, attack type coding, threat level coding, attack result coding, and attack count coding within a preset time period; Construct a deep neural network and train the model by using activation functions and randomized connection weights; Input the feature code into the deep neural network to obtain a multi-dimensional feature vector output by the multi-layer network of the deep neural network; A classifier is used to classify the multi-dimensional feature vector to obtain the classification confidence of the threat intelligence.

6. The method according to claim 1, characterized in that The key field information of the log includes at least one of the following: timestamp, source IP address, destination IP address and event type.

7. A threat intelligence production device, characterized in that: include: The log key field information acquisition module is used to acquire the original log information and perform standardized analysis on the original log information to obtain the log key field information; An alarm information generating module is used to configure an alarm security policy according to the original log information, and to generate alarm information for the key field information of the log according to the alarm security policy; The alarm security strategy includes: alarm mode and alarm context information; The aggregation result determination module is used to calculate the similarity between each alarm information, and aggregate the alarm information according to the similarity to obtain the aggregation result; The classification confidence determination module is used to perform feature encoding on the alarm information in the aggregation result, and input the feature encoding into the deep neural network to obtain the classification confidence of the threat intelligence; The threat intelligence generation module is used to standardize the alarm information and classification confidence to generate threat intelligence.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for producing threat intelligence according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for producing threat intelligence according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for producing threat intelligence according to any one of claims 1 to 6.

Citation Information

Cited By

  • DDoS attack defense method and device, equipment and storage medium

    CN119996051A