A method, device, equipment and storage medium for building security threat intelligence
By obtaining and parsing the user's killing logs using existing technology, calculating entity similarity and building security threat intelligence, it solves the problem of virus sample analysis lag and resurgence, and achieves timely identification and interception of security threats.
Patent Information
- Application Number
- CN202011233265.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-11-06
AI Technical Summary
In the existing technology, there is a time lag in cracking virus samples, and virus samples that have been discovered and effectively intercepted have a high probability of resurgence. Manual analysis makes it difficult to track other virus samples that are key to the virus sample.
By obtaining the user's killing logs, parsing and calculating the similarity between entities, dividing entity sets with high similarity, building security threat intelligence to identify similar entities associated with entities that pose security threats, and then constructing a complete security threat intelligence.
It effectively solves the problem of time lag in cracking virus samples and the resurgence of virus samples, and improves the ability to timely identify and intercept security threats.
Smart Images

Figure CN112347474B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, computer equipment and computer-readable storage medium for constructing security threat intelligence. Background Art
[0002] In the prior art, when a security threat event is discovered or disclosed, security analysts will perform static analysis on the virus sample, and then use tools such as sandboxes or honeypots to observe the behavior of the virus sample, identify the virus sample and the remote site that interacts with the virus sample to form a security threat intelligence.
[0003] However, the inventors have found that the logic of virus samples is designed to be very complex to increase the difficulty of analysis by security analysts. Therefore, after spending a lot of time and energy analyzing virus samples, security analysts may only be able to crack part of the logic of the virus samples, which is time-delayed. In addition, a security threat event may be related to multiple virus samples, and new virus samples and new remote sites will be generated over time. Due to the many limitations of manual analysis, it is likely that other virus samples that are critically related to the virus samples will not be tracked, thereby increasing the probability of the resurgence of virus samples that have been discovered and effectively intercepted.
[0004] There is currently no effective solution to the technical problems in the existing technology of time lag in cracking virus samples and a high probability of resurfacing of virus samples that have been discovered and effectively intercepted. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device, computer equipment and computer-readable storage medium for constructing security threat intelligence, which can solve the technical problems in the prior art that there is a time lag in cracking virus samples and that there is a high probability of resurgence of virus samples that have been discovered and effectively intercepted.
[0006] One aspect of the present invention provides a method for constructing security threat intelligence, the method comprising: obtaining a user's detection and killing log within a preset time range; parsing the obtained detection and killing log to obtain an entity used to evaluate a security threat event; determining the number of users associated with the entity, and calculating the similarity between two entities in an entity pair consisting of any two entities based on the determined number of users; dividing entities whose similarities meet a preset similarity threshold into an entity set; and when a security threat is detected for a certain entity, constructing security threat intelligence based on the entities in the entity set where the entity with the security threat is located.
[0007] Optionally, the step of determining the number of users associated with the entity and calculating the similarity between two entities in an entity pair consisting of any two entities based on the determined number of users includes: separately determining the number of first users associated with the entity pair consisting of any two entities and the number of second users associated with each entity in the entity pair; and calculating the ratio of the first number of users to the second number of users as the similarity between the two entities in the entity pair.
[0008] Optionally, the step of constructing security threat intelligence based on entities in an entity set where entities posing security threats are located includes: when the entity obtained by parsing is a virus sample, determining a virus sample in a virus sample set where the virus sample posing security threat is located; for each of the determined virus samples, determining a remote site that interacts with the virus sample; determining a remote site set corresponding to the remote site; and constructing the security threat intelligence based on the determined virus samples and the remote site set.
[0009] Optionally, the step of constructing security threat intelligence based on the entity set where the entity with security threat is located includes: when the entity obtained by parsing is a remote site, determining the remote site in the remote site set where the remote site with security threat is located; for each of the determined remote sites, determining the virus samples that interact with the remote site; determining the virus sample set corresponding to the virus sample; and constructing the security threat intelligence based on the determined remote site and the virus sample set.
[0010] Optionally, the step of determining the number of users associated with the entity includes: when the entity obtained by parsing is a virus sample, determining whether the user has executed the virus sample; when the user has executed the virus sample, determining that there is an association relationship between the user and the entity; and counting the number of users associated with the entity based on the association relationship.
[0011] Optionally, the step of determining the number of users associated with the entity includes: when the entity obtained by parsing is a remote site, determining whether the user has executed a virus sample for interacting with the remote site; when the user has executed a virus sample for interacting with the remote site, determining that there is an association relationship between the user and the entity; and counting the number of users associated with the entity based on the association relationship.
[0012] Another aspect of the present invention provides a device for constructing security threat intelligence, the device comprising: an acquisition module for acquiring a user's detection and killing log within a preset time range; a parsing module for parsing the acquired detection and killing log to obtain an entity for evaluating a security threat event; a determination module for determining the number of users associated with the entity; a calculation module for calculating the similarity between two entities in an entity pair consisting of any two entities based on the determined number of users; a division module for dividing entities whose similarities meet a preset similarity threshold into an entity set; and a construction module for constructing security threat intelligence based on entities in the entity set where the entity with the security threat is located when a security threat is detected in a certain entity.
[0013] Optionally, the determination module determines the number of first users associated with an entity pair consisting of any two entities, and the number of second users associated with each entity in the entity pair; the calculation module calculates the ratio of the first number of users to the second number of users as the similarity between the two entities in the entity pair.
[0014] Another aspect of the present invention provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for constructing security threat intelligence described in any of the above embodiments when executing the computer program.
[0015] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for constructing security threat intelligence described in any of the above embodiments is implemented.
[0016] The method for constructing security threat intelligence provided by the present invention determines entities with high similarity in the killing log based on the killing log of the user and forms an entity set. Specifically, the entity-user relationship can be obtained by determining the relationship between the entity and the user, and then the similarity between the entity-user relationship is compared to determine the similarity of the corresponding entity. When the similarity meets the preset similarity threshold, the corresponding entity is divided into an entity set, that is, the entities included in the entity set are all entities with high similarity. Once a security threat is detected in a certain entity, security threat intelligence can be constructed according to similar entities included in the entity set where the entity with security threat is located. In this embodiment, by dividing entities with high similarity into an entity set, when any entity has a security threat, an entity similar to the entity with security threat can be determined, which solves the defect of time lag in cracking virus samples in the prior art. Moreover, since entities with high similarity to the entity with security threat can be determined, even if there is a deformation of the security threat entity in these entities, since security threat intelligence has been constructed through these entities, these entities can be effectively intercepted, thereby solving the defect of a high probability of resurgence of virus samples that have been discovered and effectively intercepted in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0018] Figure 1 A flowchart schematically shows a method for constructing security threat intelligence according to an embodiment of the present invention;
[0019] Figure 2 A flowchart of a similarity calculation method according to an embodiment of the present invention is schematically shown;
[0020] Figure 3 A block diagram schematically shows a device for constructing security threat intelligence according to an embodiment of the present invention;
[0021] Figure 4 A block diagram of a computer device suitable for implementing a method for constructing security threat intelligence according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0023] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0024] The inventor has found that a security threat event generally involves a group of mutually cooperating virus samples (or remote sites), which often appear on the user side in a process chain or release chain in a short time. By setting a sliding time window for the user's killing log, intercepting the killing log within the preset time range, and analyzing and counting it, it is possible to find a combination of virus samples (or remote sites) that often coexist in time sequence. Then, when a virus sample (or remote site) is detected to have a security threat (a virus sample with a security threat can be called a virus sample), the corresponding combination can be retrieved, and the virus sample (or remote site) in the combination can be used to construct security threat intelligence, so as to more comprehensively discover other virus samples (or remote sites) that work in coordination with the virus sample (or remote site) with a security threat. Among them, there are generally one or more remote sites in a network security event, and the virus sample receives commands, updates logic, and feeds back user information to these remote sites. Through the analysis of the user's killing log, the remote site corresponding to the virus sample and the virus sample corresponding to the remote site can be found. When the virus sample changes shape over time, the changed virus sample can be found from the new virus sample that contacts the remote site, so that the corresponding security threat can always be intercepted.
[0025] Specifically, Figure 1 The flowchart of the method for constructing security threat intelligence according to an embodiment of the present invention is schematically shown. Figure 1 As shown, the method for constructing security threat intelligence may include steps S1 to S5, wherein:
[0026] Step S1, obtaining the user's anti-virus log within a preset time range.
[0027] In this embodiment, the killing log of each user in one, two or more users within a preset time range can be obtained. Preferably, the killing logs of multiple users are obtained. The killing log can be a killing log in various forms, such as a cloud killing log. The cloud killing log refers to when a virus sample with an unknown security level appears on the user side, it needs to be uploaded to the cloud. The virus killing engine on the cloud checks the security level of the uploaded virus sample and leaves a killing log on the cloud. This log is called a cloud killing log.
[0028] Step S2, parsing the acquired antivirus log to obtain entities for evaluating security threat events.
[0029] The entity may include a virus sample or a remote site that interacts with the virus sample, wherein the remote site may include the IP address of the remote site and the domain name of the remote site. For any type of entity, the corresponding entity set may be divided through steps S3 to S4. For example, for a virus sample, the corresponding virus sample set may be divided through steps S3 to S4; for a remote site, the corresponding remote site set may be divided through steps S3 to S4.
[0030] Step S3, determining the number of users associated with the entity, and calculating the similarity between two entities in an entity pair consisting of any two entities based on the determined number of users.
[0031] The relationship between each entity and each user includes an associated relationship and may also include a non-associated relationship. The entity-user relationship includes the relationship between a certain entity and the user obtained in step S1.
[0032] As an optional embodiment, when the entity is a virus sample, if the user has executed the virus sample, the user is associated with the virus sample. In this case, the user is considered to be associated with the virus sample. Otherwise, the user is considered to be unassociated with the virus sample. By determining whether the user has executed the virus sample, the users associated with the entity can be accurately obtained, and then the number of users associated with the entity can be counted.
[0033] For example, assuming that m virus samples are obtained through analysis and there are n users, an m*n matrix can be formed. Each row in the matrix can be used as an entity-user relationship. If a user (i.e., a user terminal) executes a virus sample, the relationship between the user and the virus sample is an association relationship, assuming that the association relationship is represented by the number 1. Otherwise, the relationship between the user and the virus sample is a non-association relationship, assuming that the non-association relationship is represented by the number 0. In this way, each entity-user relationship is a 0 / 1 vector with a length of n.
[0034] As another optional embodiment, when the entity is a remote site, since each virus sample will interact with the corresponding remote site, if the user has executed a virus sample that has interacted with a remote site, there is a certain association between the user and the remote site. At this time, it is considered that the user and the remote site are in an associated relationship. Otherwise, it is considered that the user and the remote site are not in an associated relationship. In this embodiment, when the user executes a virus sample that interacts with the remote site, it is determined that the user and the entity are in an associated relationship; and then the number of users associated with the entity is counted based on the associated relationship.
[0035] For example, suppose that m remote sites are obtained through analysis, and there are n users, which can form an m*n matrix. Each row in the matrix can be used as an entity-user relationship. If a user (i.e., a user terminal) executes a virus sample that interacts with a remote site, then the relationship between the user and the remote site is an association relationship, and it is assumed that the association relationship is represented by the number 1. Otherwise, the relationship between the user and the remote site is a non-association relationship, and it is assumed that the non-association relationship is represented by the number 0. In this way, each entity-user relationship is a 0 / 1 vector with a length of n.
[0036] The method for calculating similarity in this embodiment may include multiple solutions, specifically:
[0037] Solution 1: using the cosine similarity or Pearson similarity in the prior art for calculation.
[0038] Solution 2: Since the number of virus samples (or remote sites) every day reaches tens of millions or even hundreds of millions, if the similarity is calculated using Solution 1, the amount of calculation will be very large. Therefore, this embodiment optimizes the calculation process. Specifically, step S3 may include steps S31 to S32, wherein:
[0039] Step S31, respectively determining the number of first users associated with an entity pair consisting of any two entities, and the number of second users associated with each entity in the entity pair;
[0040] Step S32: Calculate the ratio of the first number of users to the second number of users as the similarity between the two entities in the entity pair.
[0041] The above similarity calculation uses the ratio of the first number of users to the second number of users. This is only used as a convenient operation logic, indicating that the similarity is positively correlated with the ratio of the first number of users to the second number of users, that is, the larger the ratio, the higher the similarity. This is only used as an optional implementation method, and the ratio of the second number of users to the first number of users may also be used. When this scheme is adopted, it indicates that the similarity is negatively correlated with the ratio of the second number of users to the first number of users, that is, the smaller the ratio, the higher the similarity.
[0042] In addition to the above solution, in another optional implementation of the present application, a new processing solution is also provided. Specifically, the number of users associated with an entity is determined, and based on the determined number of users, the similarity between two entities in an entity pair consisting of any two entities can be calculated using the following solution:
[0043] Obtain the number of associated users of each entity, obtain the number of all users, calculate the ratio of the number of associated users to the number of all users, compare with the preset constant, and identify all entities that are greater than a certain constant as having high similarity, and directly assign the preset similarity. For example, if the parsed entities include three entities, namely entity 1, entity 2, and entity 3, and the total number of users is 100, the number of users associated with entity 1 is 98, the number of users associated with entity 2 is 95, and the number of users associated with entity 3 is 1, the above method is used to calculate the ratio of the number of associated users to the number of all users, the corresponding ratio of entity 1 is 0.98, the corresponding ratio of entity 2 is 0.95, and the corresponding ratio of entity 3 is 0.01, the preset constant is 0.9, and the ratios of the number of associated users corresponding to entity 1 and entity 2 to the number of all users are both greater than the preset constant, then it is directly determined that entity 1 and entity 2 have high similarity, and the similarity value of entity 1 and entity 2 is directly assigned, for example, 90% similarity (0.9). In this solution, the constant value is set between 0 and 1. The closer the constant is to 1, the closer the entity is to being associated with all users when the ratio is greater than the constant. In this case, it is directly determined that entities greater than the constant are highly similar, and a similarity value is directly assigned to these entities greater than the constant. This directly assigned similarity value is a similarity value greater than the preset similarity threshold mentioned in the subsequent step S4. For example, when the similarity threshold set in step S4 is 0.5, the similarity value directly assigned in this solution is greater than 0.5, such as 0.9, which can trigger the action of dividing the entity set in step S4, that is, dividing the high-similarity entities into the entity set recorded subsequently.
[0044] In addition, considering the order of magnitude issue again, we can also make full use of the distributed computing capabilities of the cluster, that is, decompose the entire similarity calculation process into a series of map / reduce processes, and then summarize the final calculation results.
[0045] Step S4: divide entities whose similarities meet a preset similarity threshold into an entity set.
[0046] For entities whose similarity satisfies a preset similarity threshold, it indicates that the entities are relatively similar, so these entities can be divided into an entity set. The entity set is, for example, a virus sample set or a remote site set. The similarity satisfies the preset similarity threshold, which means that the similarity is greater than or equal to the preset similarity threshold.
[0047] Optionally, step S4 may include: sorting entities whose similarities satisfy a preset similarity threshold according to the magnitude of their similarities; and dividing the sorted entities into an entity set.
[0048] In order to simply and clearly observe which entities in the entity set have a high degree of similarity, the entities can be sorted according to the degree of similarity, and then the sorted entities can be divided into the entity set in order from large to small. In this way, in addition to representing the entities in the entity set as highly similar, you can also more intuitively understand which entities are more similar through the order, which can provide a basis for considering priorities when building threat intelligence.
[0049] Step S5, when a security threat is detected in a certain entity, security threat intelligence is constructed according to entities in the entity set where the entity with the security threat is located.
[0050] Once a security threat is detected in a certain entity, security threat intelligence can be constructed based on similar entities included in the pre-divided entity set. It should be noted that all entities in the entity set can be selected to construct security threat intelligence, so that the constructed security threat intelligence is more complete. In some other embodiments, some entities in the entity set can also be selected to construct security threat intelligence. For example, several entities with high similarity are selected to construct security threat intelligence. Although some security threat intelligence may be omitted at this time, the constructed security threat intelligence is often a specific type of security threat intelligence that users are more concerned about, so that precise strikes can be implemented with fewer resources. Users can choose which entities in the entity set to use to construct security threat intelligence according to actual needs.
[0051] As an optional embodiment, in order to ensure the integrity of security threat intelligence, when the entity is a virus sample, constructing security threat intelligence based on entities in an entity set where the entity with security threats is located in step S5 may include: when the parsed entity is a virus sample, determining virus samples in a virus sample set where the virus samples with security threats are located; for each determined virus sample, determining a remote site that interacts with the virus sample; determining a remote site set corresponding to the remote site; and constructing security threat intelligence based on the determined virus samples and remote site set.
[0052] The step of determining the remote site set corresponding to the remote site can refer to step S3 to step S4, which is specifically: determining the number of users associated with the remote site, and calculating the similarity between two remote sites in an entity pair formed by any two remote sites based on the determined number of users; and dividing the remote sites whose similarity meets the preset similarity threshold into a remote site set. In addition, in this embodiment, the virus samples and remote sites related to the virus samples with security threats are fully mined, so as to form relatively complete security threat intelligence.
[0053] As another optional embodiment, in order to ensure the integrity of security threat intelligence, when the entity is a remote site, constructing security threat intelligence according to entities in an entity set where the entity with security threat is located in step S5 may include: when the parsed entity is a remote site, determining a remote site in a remote site set where the remote site with security threat is located; for each determined remote site, determining a virus sample that interacts with the remote site; determining a virus sample set corresponding to the virus sample; and constructing security threat intelligence according to the determined remote site and virus sample set.
[0054] The step of determining the virus sample set corresponding to the virus sample can refer to step S3 to step S4, which is specifically: determining the number of users associated with the virus sample, and calculating the similarity between two virus samples in an entity pair composed of any two virus samples according to the determined number of users; dividing the virus samples whose similarity meets the preset similarity threshold into a virus sample set. In this embodiment, all remote sites and virus samples related to remote sites with security threats are mined, thereby forming relatively complete security threat intelligence.
[0055] The method for constructing security threat intelligence provided by the present invention determines entities with high similarity in the killing log based on the killing log of the user and forms an entity set. Specifically, the entity-user relationship can be obtained by determining the relationship between the entity and the user, and then the similarity between the entity-user relationship is compared to determine the similarity of the corresponding entity. When the similarity meets the preset similarity threshold, the corresponding entity is divided into an entity set, that is, the entities included in the entity set are all entities with high similarity. Once a security threat is detected in a certain entity, security threat intelligence can be constructed according to similar entities included in the entity set where the entity with security threat is located. In this embodiment, by dividing entities with high similarity into an entity set, when any entity has a security threat, an entity similar to the entity with security threat can be determined, which solves the defect of time lag in cracking virus samples in the prior art. Moreover, since entities with high similarity to the entity with security threat can be determined, even if there is a deformation of the security threat entity in these entities, since security threat intelligence has been constructed through these entities, these entities can be effectively intercepted, thereby solving the defect of a high probability of resurgence of virus samples that have been discovered and effectively intercepted in the prior art.
[0056] Figure 2 The flowchart of the similarity calculation method according to the embodiment of the present invention is schematically shown.
[0057] like Figure 2As shown, taking the killing log as the cloud killing log as an example, the cloud killing log of each user is used as input and sorted by time, a sliding time window is set, the range of the sliding time window is a preset time range, the cloud killing log of the user within the sliding time window is obtained, and then the obtained cloud killing logs are processed, wherein any two virus samples can be called a sample pair, the sample can be called an entity user relationship, and the number of users of each sample pair is counted, that is, the intersection m of the two entity user relationships is counted, the number of users of each sample n1 and n2 is counted, and they are associated to determine the union of the two entity user relationships, that is, n1+n2-m, and then the similarity of the two entity user relationships is calculated using the intersection as the numerator and the union as the denominator.
[0058] The embodiment of the present invention provides a device for constructing security threat intelligence, which corresponds to the method for constructing security threat intelligence in the above embodiment. The corresponding technical features and technical effects are not described in detail in this embodiment. For relevant parts, reference can be made to the method for constructing security threat intelligence. Specifically, Figure 3 A block diagram of a device for constructing security threat intelligence according to an embodiment of the present invention is schematically shown. Figure 3 As shown, the security threat intelligence construction device 300 may include an acquisition module 301, a parsing module 302, a determination module 303, a calculation module 304, a division module 305 and a construction module 306, wherein:
[0059] The acquisition module 301 is used to obtain the user's anti-virus log within a preset time range;
[0060] The parsing module 302 is used to parse the acquired killing log to obtain entities for evaluating security threat events;
[0061] A determination module 303, used to determine the number of users associated with the entity;
[0062] A calculation module 304, configured to calculate the similarity between two entities in an entity pair consisting of any two entities according to the determined number of users;
[0063] A division module 305 is used to divide entities whose similarities meet a preset similarity threshold into an entity set;
[0064] The construction module 306 is used to construct security threat intelligence according to entities in the entity set where the entity with the security threat is located when a security threat is detected in a certain entity.
[0065] Optionally, the determination module determines the number of first users associated with an entity pair consisting of any two entities, and the number of second users associated with each entity in the entity pair; the calculation module calculates the ratio of the statistically determined first number of users to the second number of users as the similarity between the two entities in the entity pair.
[0066] Optionally, the partitioning module is further used to: sort the entities whose similarities satisfy a preset similarity threshold according to the corresponding similarity magnitudes; and partition the sorted entities into an entity set in order of magnitude.
[0067] Optionally, when constructing security threat intelligence based on entities in an entity set where entities posing security threats are located, the construction module is also used to: when the parsed entity is a virus sample, determine the virus samples in the virus sample set where the virus samples posing security threats are located; for each determined virus sample, determine the remote site that interacts with the virus sample; determine the remote site set corresponding to the remote site; and construct security threat intelligence based on the determined virus samples and the remote site set.
[0068] Optionally, when constructing security threat intelligence based on entities in an entity set where entities with security threats are located, the construction module is also used to: when the parsed entity is a remote site, determine a remote site in a remote site set where the remote site with security threats is located; for each determined remote site, determine a virus sample that interacts with the remote site; determine a virus sample set corresponding to the virus sample; and construct security threat intelligence based on the determined remote site and virus sample set.
[0069] Optionally, when the entity obtained by parsing is a virus sample, the determination module determines whether the user has executed the virus sample; when the user has executed the virus sample, determines that there is an association relationship between the user and the entity; and counts the number of users associated with the entity based on the association relationship.
[0070] Optionally, when the entity obtained by parsing is a virus sample, the determination module determines whether the user has executed the virus sample; when the user has executed the virus sample, determines that there is an association relationship between the user and the entity; and counts the number of users associated with the entity based on the association relationship.
[0071] Figure 4 The block diagram of a computer device suitable for implementing a method for constructing security threat intelligence according to an embodiment of the present invention is schematically shown. In this embodiment, the computer device 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server or a server cluster composed of multiple servers) that executes a program. Figure 4As shown, the computer device 400 of this embodiment includes at least but is not limited to: a memory 401, a processor 402, and a network interface 403 that can be interconnected through a system bus. It should be noted that Figure 4 Only computer device 400 is shown with components 401 - 403 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0072] In this embodiment, the memory 403 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 401 can be an internal storage unit of the computer device 400, such as a hard disk or memory of the computer device 400. In other embodiments, the memory 401 can also be an external storage device of the computer device 400, such as a plug-in hard disk equipped on the computer device 400, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 401 can also include both the internal storage unit of the computer device 400 and its external storage device. In this embodiment, the memory 401 is generally used to store the operating system and various application software installed on the computer device 400, such as the program code of the method for constructing security threat intelligence, etc. In addition, the memory 401 can also be used to temporarily store various types of data that have been output or are to be output.
[0073] In some embodiments, the processor 402 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 402 is generally used to control the overall operation of the computer device 400. For example, the program code of the method for constructing security threat intelligence such as executing control and processing related to data interaction or communication with the computer device 400.
[0074] In this embodiment, the method for constructing security threat intelligence stored in the memory 401 can also be divided into one or more program modules and executed by one or more processors (processor 402 in this embodiment) to complete the present invention.
[0075] The network interface 403 may include a wireless network interface or a wired network interface, and the network interface 403 is generally used to establish a communication link between the computer device 400 and other computer devices. For example, the network interface 403 is used to connect the computer device 400 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 400 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0076] This embodiment also provides a computer-readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., on which a computer program is stored, and when the computer program is executed by a processor, a method for constructing security threat intelligence is implemented.
[0077] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0079] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for constructing security threat intelligence, It is characterized in that The method comprises: Get the user's anti-virus log within the preset time range; Parsing the acquired antivirus log to obtain an entity for evaluating a security threat event; wherein the entity is a virus sample or a remote site; Determine the number of users associated with the entity, and calculate the similarity between two entities in an entity pair consisting of any two entities based on the determined number of users; Entities whose similarity meets a preset similarity threshold are divided into an entity set; When a security threat is detected in a certain entity, security threat intelligence is constructed based on entities in the entity set where the entity with the security threat is located; specifically, security threat intelligence is constructed based on similar entities included in the pre-divided entity set; The step of determining the number of users associated with the entity and calculating the similarity between two entities in an entity pair consisting of any two entities according to the determined number of users comprises: Determine the number of first users associated with an entity pair consisting of any two entities, and the number of second users associated with each entity in the entity pair; A ratio of the first number of users to the second number of users is calculated as the similarity between the two entities in the entity pair.
2. The method according to claim 1, It is characterized in that The steps of building security threat intelligence based on entities in the entity set where entities with security threats are located include: When the entity obtained by parsing is a virus sample, determining a virus sample in a virus sample set where the virus sample posing a security threat is located; For each of the determined virus samples, determining a remote site that interacts with the virus sample; Determine a remote site set corresponding to the remote site; The security threat intelligence is constructed based on the determined virus samples and the remote site set.
3. The method according to claim 1, It is characterized in that The step of constructing security threat intelligence according to the entity set where the entity with security threat exists includes: When the entity obtained by parsing is a remote site, determining a remote site in a remote site set where a remote site with a security threat is located; For each of the determined remote sites, determine a virus sample that interacts with the remote site; Determining a virus sample set corresponding to the virus sample; The security threat intelligence is constructed according to the determined remote site and the virus sample set.
4. The method according to claim 1, It is characterized in that The step of determining the number of users associated with the entity comprises: When the entity obtained by parsing is a virus sample, determining whether the user has executed the virus sample; When the user executes the virus sample, determining that the user has an association relationship with the entity; The number of users associated with the entity is counted based on the association relationship.
5. The method according to claim 1, It is characterized in that The step of determining the number of users associated with the entity comprises: When the entity obtained by parsing is a remote site, determining whether the user has executed a virus sample that interacts with the remote site; When the user executes a virus sample that interacts with the remote site, determining that the user has an association relationship with the entity; The number of users associated with the entity is counted based on the association relationship.
6. A device for constructing security threat intelligence for implementing the method according to any one of claims 1 to 5, It is characterized in that The device comprises: The acquisition module is used to obtain the user's anti-virus log within a preset time range; A parsing module, used for parsing the acquired killing log to obtain entities for evaluating security threat events; a determination module, configured to determine the number of users associated with the entity; A calculation module, used for calculating the similarity between two entities in an entity pair consisting of any two entities according to the determined number of users; A partitioning module, used to partition entities whose similarities meet a preset similarity threshold into an entity set; The building module is used to build security threat intelligence according to entities in an entity set where the entity with the security threat is located when a security threat is detected in a certain entity.
7. The device according to claim 6, It is characterized in that The determination module determines the number of first users associated with an entity pair consisting of any two entities, and the number of second users associated with each entity in the entity pair; The calculation module calculates a ratio of the first number of users to the second number of users as the similarity between the two entities in the entity pair.
8. A computer device, wherein the computer device include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
