A threat identification method and system
By extracting threat features and matching knowledge graphs on the log data of network entity behaviors, unknown advanced persistent threats are identified, which solves the problem of high false negative rate and false positive rate in the existing technology and improves the accuracy of identification of advanced persistent threats. sex.
Patent Information
- Application Number
- CN202211658439.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-12-22
AI Technical Summary
Existing technologies have problems with high false negative and false positive rates, low timeliness, and difficulty in identifying unknown advanced persistent threat behaviors when identifying advanced persistent threats.
By obtaining log data of network entity behavior, extract threat characteristics and compare them with preset advanced persistent threats, and compare the log data with the advanced persistent threat knowledge graph during matching to determine whether the network entity behavior is an advanced persistent threat.
It realizes the identification of unknown advanced persistent threats, reduces the false negative rate and false positive rate, and improves the accuracy and success rate of advanced persistent threat identification.
Smart Images

Figure CN116155548B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security, and in particular to a threat identification method and system. Background Art
[0002] As network security confrontation becomes more intense, advanced persistent threat attack behaviors have brought great challenges to network security. In the network security defense system of enterprises, it is particularly important to be able to timely identify the behaviors of advanced persistent threats in network security. In response to the need to identify advanced persistent threat behaviors in massive logs, one is a traditional simple identification solution: by analyzing security threat intelligence, network behavior and malicious samples, the advanced persistent threat features are obtained and a threat feature library is established, and the threat features of the security logs are compared with the existing known threat feature library, so as to realize the identification of advanced persistent threats. Since this solution can only identify known advanced persistent threats, it can no longer meet the actual needs of network security in the increasingly fierce confrontation. The existing technical solutions are limited to the identification of known threats and identification based on traffic features, and have the disadvantages of high false alarm rate, high false alarm rate and low timeliness. Summary of the invention
[0003] The embodiments of the present invention provide a threat identification method and system to solve the problems of high missed alarm rate and false alarm rate of existing threat identification solutions, and can identify unknown advanced persistent threats.
[0004] To achieve the above objectives, on the one hand, an embodiment of the present invention provides a threat identification method, including:
[0005] Obtain log data generated when network entity behavior occurs;
[0006] Extracting a threat feature from the log data, comparing the threat feature with at least one preset advanced persistent threat, and determining whether the threat feature matches a threat feature included in any advanced persistent threat;
[0007] When it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, the log data is compared with the advanced persistent threat knowledge graph. When it is confirmed that the log data matches the entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat.
[0008] On the other hand, an embodiment of the present invention provides a threat identification system, including:
[0009] A data acquisition unit, used to acquire log data generated when network entity behavior occurs;
[0010] A first judgment unit is used to extract a threat feature from the log data, compare the threat feature with at least one preset advanced persistent threat, and judge whether the threat feature matches the threat feature included in any advanced persistent threat;
[0011] The second judgment unit is used to compare the log data with the advanced persistent threat knowledge graph when it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, and to judge the network entity behavior as an advanced persistent threat when it is confirmed that the log data matches an entity in the advanced persistent threat knowledge graph.
[0012] The above technical solution has the following beneficial effects: obtaining log data generated when each network entity behavior occurs; extracting threat features from the log data, comparing the threat features with advanced persistent threats, and determining whether the threat features match the threat features included in any advanced persistent threat; and achieving a preliminary judgment of the threat.
[0013] If the threat signature matches the threat signature included in any advanced persistent threat, the log data is compared with the advanced persistent threat knowledge graph. If it matches the entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat. The ability to identify unknown advanced persistent threat data from log data solves the current problem of being unable to identify unknown advanced persistent threat behaviors and reduces the underreporting rate and false alarm rate of advanced persistent threat identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 is a flow chart of a threat identification method according to an embodiment of the present invention;
[0016] Figure 2 is a structural diagram of a threat identification system according to an embodiment of the present invention;
[0017] Figure 3 It is a process architecture diagram of identifying threats based on a knowledge graph according to an embodiment of the present invention;
[0018] Figure 4 It is a schematic diagram of constructing an advanced persistent threat knowledge graph according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] like Figure 1 As shown, in combination with an embodiment of the present invention, a threat identification method is provided, comprising:
[0021] S101: Obtaining log data generated when network entity behavior occurs;
[0022] S102: extracting threat features from the log data, comparing the threat features with at least one preset advanced persistent threat, and determining whether the threat features match the threat features included in any advanced persistent threat;
[0023] S103: When it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, the log data is compared with the advanced persistent threat knowledge graph, and when it is confirmed that the log data matches an entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat.
[0024] Preferably, the log data generated when the network entity behavior occurs includes at least one of the following: log data of terminal behavior, log data of download behavior, log data of data transmission, and log data of domain name resolution;
[0025] S101, obtaining log data generated when a network entity behavior occurs, includes at least one of the following:
[0026] S1011: monitoring resources loaded by a network entity during operation, monitoring first call data generated when the network entity calls a sensitive system API, monitoring second call data generated when the network entity calls a network socket, and using at least one of the loaded resources, the first call data, and the second call data as log data of the terminal behavior of the network entity;
[0027] S1012: monitoring log data generated during network downloading of the network entity, and using the log data generated during network downloading as log data of downloading behavior of the network entity;
[0028] S1013: Monitor the data transmission process of the network entity, and obtain instruction control and data transmission flow as log data of the data transmission of the network entity;
[0029] S1014: Monitor the domain name resolution request records of the network entity, and collect the domain name resolution request records as log data of the domain name resolution of the network entity.
[0030] Preferably, the threat identification method further includes:
[0031] S104: Obtain log data generated by each event of multiple network entities, and use the log data as sample events; wherein:
[0032] For the log data generated by the sample event, a plurality of fields with independent meanings are obtained through lexical analysis, and whether the event is an advanced persistent threat is determined according to the plurality of fields with independent meanings; and the log data is marked as a known threat event or an unknown threat event according to the determination result;
[0033] S105: Build an advanced persistent threat list by:
[0034] For all known threat events, threat features are extracted from the log data of the events, and corresponding advanced persistent threats are obtained by learning all the threat features, each of which has a corresponding threat feature; wherein the threat feature includes at least one of the following: the source domain name of the threat, the IP used by the threat, and the category of the file generated by the threat;
[0035] S106: Build an advanced persistent threat map using the following methods:
[0036] S1061: Identify each known threat event, characterize the corresponding known threat event through the identification, and use the identification as entity content;
[0037] S1062: for each known threat event, extract log features from log data generated by the event, perform structured processing on the log features, and use the structured log features as attribute information of the advanced persistent threat; wherein the log features at least include threat features;
[0038] S1063: Determine whether two advanced persistent threat identifiers are related according to the attribute information of the advanced persistent threat, and when the two advanced persistent threat identifiers are related, take the connection between the two advanced persistent threat entity contents as a relationship;
[0039] S1064: Connect the two entities having a relationship, mark the attribute information of the entities, and form an advanced persistent threat knowledge graph.
[0040] Preferably, S103: comparing the log data with the advanced persistent threat knowledge graph, and determining the network entity behavior as an advanced persistent threat when confirming that the log data matches an entity in the advanced persistent threat knowledge graph, includes:
[0041] S1031: performing lexical analysis on the log data generated when the network entity behavior occurs to obtain a corresponding plurality of fields with independent meanings; and obtaining content information of the network entity behavior by identifying the fields with independent meanings;
[0042] S1032: extracting log features from the log data generated when the network entity behavior occurs, and performing structured processing on the log features, and using the structured log features as attribute information of the network entity behavior, wherein the log features at least include threat features;
[0043] S1033: When the content information of the network entity behavior is consistent with the entity content in the advanced persistent threat knowledge graph, determine the network entity behavior as an advanced persistent threat; and / or
[0044] S1034: When the attribute information of the network entity behavior matches the attribute information of the entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat.
[0045] Preferably, the log features also include one or any combination of the following: usage conditions, scope of application, features of generated files;
[0046] The characteristics of the generated file include at least one of the following: a hash value of the generated file, a hash value of the path, and a hash value of the file name.
[0047] Preferably, the threat identification method further includes:
[0048] S107: After the network entity behavior is determined to be an advanced persistent threat, an alarm is issued;
[0049] S108: Stop receiving data sent according to the user account corresponding to the network entity or the IP address used.
[0050] like Figure 2 As shown, in combination with an embodiment of the present invention, a threat identification system is provided, including:
[0051] A data acquisition unit 22, used to acquire log data generated when network entity behavior occurs;
[0052] A first judgment unit 22 is used to extract a threat feature from the log data, compare the threat feature with at least one preset advanced persistent threat, and judge whether the threat feature matches the threat feature included in any advanced persistent threat;
[0053] The second judgment unit 23 is used to compare the log data with the advanced persistent threat knowledge graph when it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, and when it is confirmed that the log data matches an entity in the advanced persistent threat knowledge graph, determine the network entity behavior as an advanced persistent threat.
[0054] Preferably, the log data generated when the network entity behavior occurs includes at least one of the following: log data of terminal behavior, log data of download behavior, log data of data transmission, and log data of domain name resolution;
[0055] The data acquisition unit 21 includes:
[0056] a first monitoring unit, configured to monitor resources loaded by a network entity during operation, monitor first call data generated when the network entity calls a sensitive system API, monitor second call data generated when the network entity calls a network socket, and use at least one of the loaded resources, the first call data, and the second call data as log data of a terminal behavior of the network entity;
[0057] A second monitoring unit is used to monitor the log data generated during the network download of the network entity, and use the log data generated during the network download as the log data of the download behavior of the network entity;
[0058] A third monitoring unit is used to monitor the data transmission process of the network entity, and obtain instruction control and data transmission flow as log data of the data transmission of the network entity;
[0059] The fourth monitoring unit is used to monitor the domain name resolution request record of the network entity, and collect the domain name resolution request record as the log data of the domain name resolution of the network entity.
[0060] Preferably, the threat identification system further includes a sample preparation unit, an advanced persistent threat collection unit, and an advanced persistent threat map construction unit;
[0061] The sample preparation unit is used to obtain log data generated by each event of multiple network entities, and use the log data as sample events; wherein: for the log data generated by the sample event, multiple fields with independent meanings are obtained through lexical analysis, and whether the event is an advanced persistent threat is determined according to the multiple fields with independent meanings; and the log data is marked as a known threat event or an unknown threat event according to the determination result;
[0062] The advanced persistent threat collection unit is used to extract threat features from the log data of all known threat events, and obtain corresponding advanced persistent threats by learning all the threat features, each of which has a corresponding threat feature; wherein the threat feature includes at least one of the following: the source domain name of the threat, the IP used by the threat, and the category of the file generated by the threat;
[0063] The advanced persistent threat graph construction unit includes an entity determination subunit, an attribute determination subunit, a relationship determination subunit and a graph construction subunit, wherein:
[0064] The entity determination subunit is used to identify each known threat event, characterize the corresponding known threat event by the identification, and use the identification as entity content;
[0065] The attribute determination subunit is used to extract log features from log data generated by each known threat event, perform structured processing on the log features, and use the structured log features as attribute information of the advanced persistent threat; wherein the log features at least include threat features;
[0066] The relationship determination subunit is used to determine whether two advanced persistent threat identifiers are related to each other according to the attribute information of the advanced persistent threat, and when the two advanced persistent threat identifiers are related to each other, the relationship between the two advanced persistent threat entity contents is used as the relationship;
[0067] The graph construction subunit is used to connect the two entities having a relationship, mark the attribute information of the entities, and form an advanced persistent threat knowledge graph.
[0068] Preferably, the second judging unit 22 includes:
[0069] A lexical analysis subunit, used for performing lexical analysis on the log data generated when the network entity behavior occurs, to obtain a corresponding plurality of fields with independent meanings;
[0070] An entity determination subunit, configured to obtain content information of the network entity behavior by identifying fields with independent meanings;
[0071] The attribute determination subunit is used to extract log features from the log data generated when the network entity behavior occurs, and perform structured processing on the log features, and use the structured log features as attribute information of the network entity behavior, wherein the log features at least include threat features;
[0072] The graph determination subunit is used to determine the network entity behavior as an advanced persistent threat when the content information of the network entity behavior is consistent with the entity content in the advanced persistent threat knowledge graph; and / or determine the network entity behavior as an advanced persistent threat when the attribute information of the network entity behavior matches the attribute information of the entity in the advanced persistent threat knowledge graph.
[0073] Preferably, the threat identification system further includes:
[0074] an alarm unit, configured to issue an alarm after the network entity behavior is determined to be an advanced persistent threat;
[0075] The tracing unit is used to stop receiving data sent according to the user account corresponding to the network entity or the IP address used.
[0076] Preferably, the log features also include one or any combination of the following: usage conditions, scope of application, features of generated files;
[0077] The characteristics of the generated file include at least one of the following: a hash value of the generated file, a hash value of the path, and a hash value of the file name.
[0078] The beneficial effects achieved by the embodiments of the present invention are as follows:
[0079] Advanced persistent threats are identified based on the advanced persistent threat knowledge graph. For security log data, a variety of advanced persistent threat features are integrated and analyzed. Unknown threat data is identified through scoring and analysis, thereby realizing the identification of advanced persistent threats, especially the identification of unknown advanced persistent threats, which solves the current problem of being unable to identify unknown advanced persistent threat behaviors and reduces the underreporting rate and false alarm rate of advanced persistent threat identification.
[0080] The above technical solution of the embodiment of the present invention is described in detail below in conjunction with specific application examples. For technical details not introduced during the implementation process, please refer to the relevant description in the previous text.
[0081] The embodiment of the present invention is a threat identification method based on a knowledge graph, which is used in the field of privacy compliance of network security. Based on the advanced persistent threat knowledge graph, it performs a fusion analysis on the multiple dimensions of advanced persistent threats, and can identify known advanced persistent threats as well as unknown advanced persistent threats. It solves the current problem that unknown advanced persistent threats cannot be accurately identified, improves the success rate and accuracy of advanced persistent threat identification, and reduces the underreporting rate and false alarm rate of advanced threat identification.
[0082] The advanced persistent threat identification method based on knowledge graph in the embodiment of the present invention comprises the following steps:
[0083] Step 101, data acquisition: collecting log data of terminal behavior, collecting network request downloads, collecting data transmission and collecting domain name resolution.
[0084] Step 102, knowledge graph construction: log data is processed through syntax analysis and threat annotation, and the relationship of threat data is extracted, rules are constructed and semantic associations are made, thereby establishing a knowledge graph.
[0085] The construction of the advanced persistent threat knowledge graph mainly includes three functional modules: advanced persistent threat knowledge extraction, advanced persistent threat knowledge representation, and advanced persistent threat knowledge fusion.
[0086] Step 103, advanced persistent threat identification, refers to analyzing and judging the advanced persistent threat data to determine whether there is an advanced persistent threat, thereby identifying advanced persistent threat behavior. Specifically:
[0087] Obtain log data generated when network entity behavior occurs;
[0088] Extracting a threat feature from the log data, comparing the threat feature with at least one preset advanced persistent threat, and determining whether the threat feature matches a threat feature included in any advanced persistent threat;
[0089] When it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, the log data is compared with the advanced persistent threat knowledge graph. When it is confirmed that the log data matches the entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat.
[0090] Step 104, security alert, alerts the threat data identified as advanced persistent threats.
[0091] like Figure 3 As shown in the figure, the architecture of the threat identification method based on knowledge graph includes three functional levels: data layer, analysis layer and application layer.
[0092] 1. The data layer includes four functional modules: terminal software API call, network request download, data transmission and domain name resolution, so as to realize the collection of threat data in different environments and form threat log data; the log data generated when the network entity behavior occurs includes at least one of the following: log data of terminal behavior, log data of download behavior, log data of data transmission and log data of domain name resolution.
[0093] 1. Monitor the resources loaded by the network entity during operation, monitor the first call data generated when the network entity calls a sensitive system API, monitor the second call data generated when the network entity calls a network socket, and use at least one of the loaded resources, the first call data, and the second call data as the log data of the terminal behavior of the network entity. That is, the terminal software API call module is used to monitor: (1) the resources loaded when the terminal program is running, (2) the call data of the sensitive system API called and the call data of the network socket, so as to collect the log data of the terminal behavior.
[0094] 2. Monitor the log data generated during network downloading of the network entity, and use the log data generated during network downloading as the log data of the downloading behavior of the network entity. Specifically, monitor the network request downloading behavior of the program through the network request downloading module, including monitoring the program request for downloading.
[0095] 3. Monitor the data transmission process of the network entity, obtain command control and data transmission flow, and use it as log data of the data transmission of the network entity. Specifically, the data transmission status of the network entity is monitored through the data transmission function module, and abnormal command control and data transmission flow can be found.
[0096] 4. Monitor the domain name resolution request records of the network entity, collect the domain name resolution request records, and use them as log data of the domain name resolution of the network entity. Specifically, the domain name resolution request records of the network entity are collected through the domain name resolution function module, so as to identify the resolution of malicious domain names of the network entity.
[0097] 2. The analysis layer includes three functional modules: threat log data processing, threat analysis and knowledge base construction.
[0098] The log data generated by each event of multiple network entities is obtained through the data layer, and the log data is used as a sample event; it is used to construct an advanced persistent threat list and an advanced persistent threat map.
[0099] (I) The threat log data processing function module includes lexical analysis and threat labeling of threat data. Threat labeling refers to labeling threat types. For the log data generated by the sample event, multiple fields with independent meanings are obtained through lexical analysis. Based on the multiple fields with independent meanings, it is determined whether the event is an advanced persistent threat; based on the determination result, the log data is labeled as a known threat event or an unknown threat event.
[0100] (II) Threat analysis function module includes: analyzing known and unknown threats of advanced persistent threats. And judging whether there is a real security risk in this threat. If there is a security risk, it needs to be warned or dealt with. Otherwise, there is no security risk and it can be ignored.
[0101] 3. Building an Advanced Persistent Threat List
[0102] For all known threat events, threat features are extracted from the log data of the events, and corresponding advanced persistent threats are obtained by learning all the threat features. Each advanced persistent threat has a corresponding threat feature; wherein the threat feature includes at least one of the following: the source domain name of the threat, the IP used by the threat, and the category of the file generated by the threat.
[0103] By learning the recorded security threat features, we can build rules for advanced persistent threats. In the constructed rules, we determine the domain name, IP address, and generated files corresponding to an advanced persistent threat. Therefore, different advanced persistent threats correspond to different domain names, IP addresses, and generated files; the generated files refer to the files generated when the advanced persistent threat is running, such as driver files, startup files, and executable files generated when malware is running.
[0104] (IV) The knowledge base construction functional module includes three parts: entity extraction, relationship extraction and attribute extraction.
[0105] (1) Advanced persistent threat entity extraction is to identify each known threat event, characterize the corresponding known threat event through identification, and use the identification as entity content (threat behavior). That is, to extract identifications of advanced persistent threats of different scenarios and types from log data. Identification means marking known threats and unknown threats, and marking the name or code of the threat, similar names, and place names for known threats.
[0106] (2) Attribute extraction: For each known threat event, log features are extracted from the log data generated by the event, the log features are structured, and the structured log features are used as attribute information of the advanced persistent threat; wherein the features of the generated file include: the hash value of the generated file, the hash value of the path, and the hash value of the file name, which is only a character value; the log features include at least one of the threat feature, the usage condition, the scope of application, and the generated file.
[0107] Structured refers to data with two-dimensional relationships, which can be stored in a relational database. The formation process includes: the name, size and creation date of unstructured data as one dimension, and the content of structured data as another dimension.
[0108] (3) Advanced persistent threat relationship extraction is the connection between different advanced persistent threats. Determine whether there is a connection between two advanced persistent threat identifiers based on the attribute information of the advanced persistent threat. When there is a connection between the two advanced persistent threat identifiers, the connection between the two advanced persistent threat entity contents is used as the relationship. Specifically: After the advanced persistent threat is determined to be a known advanced persistent threat, the relationship extraction of the advanced persistent threat is to analyze the characteristics of different advanced persistent threats to find out the connection between different advanced persistent threats, thereby establishing the relationship between different advanced persistent threats. Among them, the characteristics refer to the domain name, IP address and generated files in the threat; the connection between different advanced persistent threats is used as the relationship.
[0109] (4) Connect the two entities with a relationship, mark the attribute information of the entities, and form an advanced persistent threat knowledge graph. Specifically, the name of the advanced persistent threat is used as the entity, the connection between different advanced persistent threats is used as the relationship, and the characteristics of the advanced persistent threat are used as the attribute; the knowledge graph is constructed through the entity content, relationship, and attribute information. The overall effect is as follows: Figure 4 shown.
[0110] The automated strategy extracts log data of network threat detection, threat calls, and threat data transmission. In constructing the knowledge graph of advanced persistent threats, "fusion" is to use data from multiple sources (terminal behavior, network request downloads, data transmission, and domain name resolution) as behaviors at different stages of advanced persistent threats, so as to analyze threat characteristics through semantic associations; thus forming different entities, relationships, and attribute representations for advanced persistent threats. The semantic association of entities and relationships is used to prepare for the scoring of the "threat analysis function module" in the subsequent application layer, and can be used to deduce the log data to be identified to identify advanced persistent threats.
[0111] 3. The application layer includes four functional modules: threat assessment, threat analysis, persistent threat warning and threat tracing.
[0112] (1) comparing the log data with the advanced persistent threat knowledge graph, and determining that the network entity behavior is an advanced persistent threat when confirming that the log data matches an entity in the advanced persistent threat knowledge graph, includes:
[0113] Performing lexical analysis on the log data generated when the network entity behavior occurs to obtain a corresponding plurality of fields with independent meanings; obtaining content information of the network entity behavior by identifying the fields with independent meanings; extracting log features from the log data generated when the network entity behavior occurs, and performing structured processing on the log features, using the structured log features as attribute information of the network entity behavior, wherein the log features at least include threat features; determining the network entity behavior as an advanced persistent threat when the content information of the network entity behavior is consistent with the entity content in the advanced persistent threat knowledge graph; and / or determining the network entity behavior as an advanced persistent threat when the attribute information of the network entity behavior matches the attribute information of the entity in the advanced persistent threat knowledge graph.
[0114] The threat assessment function module uses the analysis layer to assess the log data generated by the behavioral characteristics of network entities in different stages and environments based on the advanced persistent threat knowledge graph, evaluates whether there are security risks of advanced persistent threats, and scores them to accurately identify advanced persistent threat behaviors.
[0115] (2) The threat analysis function module analyzes advanced persistent threat behaviors and assists security personnel in further manual analysis of threat events. Security personnel determine whether it is a false alarm based on the information provided.
[0116] (3) The persistent threat alert function module pushes security alerts that are identified as advanced persistent threats to administrators for timely handling.
[0117] (4) The threat tracing function module is used to trace the source of the advanced persistent threat event after handling the threat event. Tracing refers to the further security handling made by security personnel based on the above information. Specifically, security personnel trace the source through the characteristics of the advanced persistent threat (including domain name, IP and file), obtain the cause, hacker team and source of the advanced persistent threat, and stop receiving data sent by the user account corresponding to the network entity or the IP address used, in order to check for deficiencies and combat network attacks.
[0118] The beneficial effects achieved by the embodiments of the present invention are as follows:
[0119] Advanced persistent threats are identified based on the advanced persistent threat knowledge graph. For security log data, a variety of advanced persistent threat features are integrated and analyzed. Unknown threat data is identified through scoring and analysis, thereby realizing the identification of advanced persistent threats, especially the identification of unknown advanced persistent threats, which solves the current problem of being unable to identify unknown advanced persistent threat behaviors and reduces the underreporting rate and false alarm rate of advanced persistent threat identification.
[0120] By monitoring and acquiring data at all stages, accurate identification of encrypted and unencrypted traffic data can be achieved. The data feature dimensions of the advanced persistent threat knowledge graph are multi-dimensional, and it can identify advanced persistent threats from multiple angles, reduce false alarm rates and missed alarm rates, and is highly efficient.
[0121] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0122] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0123] The disclosed embodiments are described above to enable any person skilled in the art to implement or use the present invention. Various modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may also be applied to other embodiments without departing from the spirit and scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments given herein, but is consistent with the broadest scope of the principles and novel features disclosed in this application.
[0124] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
[0125] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.
[0126] The various illustrative logic blocks or units described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0127] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.
[0128] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.
[0129] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A threat identification method, characterized in that: include: Obtain log data generated when network entity behavior occurs; Extracting a threat feature from the log data, comparing the threat feature with at least one preset advanced persistent threat, and determining whether the threat feature matches a threat feature included in any advanced persistent threat; When it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, the log data is compared with the advanced persistent threat knowledge graph, and when it is confirmed that the log data matches an entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat; The comparing the log data with the advanced persistent threat knowledge graph, and determining the network entity behavior as an advanced persistent threat when confirming that the log data matches an entity in the advanced persistent threat knowledge graph, includes: Performing lexical analysis on the log data generated when the network entity behavior occurs to obtain a corresponding plurality of fields with independent meanings; and obtaining content information of the network entity behavior by identifying the fields with independent meanings; Extracting log features from log data generated when the network entity behavior occurs, and performing structured processing on the log features, using the structured log features as attribute information of the network entity behavior, wherein the log features at least include threat features; When the content information of the network entity behavior is consistent with the entity content in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat; and / or When the attribute information of the network entity behavior matches the attribute information of the entity in the advanced persistent threat knowledge graph, the network entity behavior is determined to be an advanced persistent threat.
2. The threat identification method according to claim 1, characterized in that: The log data generated when the network entity behavior occurs includes at least one of the following: log data of terminal behavior, log data of download behavior, log data of data transmission, and log data of domain name resolution; The obtaining of log data generated when the network entity behavior occurs includes at least one of the following: Monitoring resources loaded by a network entity during operation, monitoring first call data generated when the network entity calls a sensitive system API, monitoring second call data generated when the network entity calls a network socket, and using at least one of the loaded resources, the first call data, and the second call data as log data of the terminal behavior of the network entity; Monitoring log data generated during network downloading of the network entity, and using the log data generated during network downloading as log data of downloading behavior of the network entity; Monitoring the data transmission process of the network entity, acquiring instruction control and data transmission flow as log data of the data transmission of the network entity; The domain name resolution request records of the network entity are monitored, and the domain name resolution request records are collected as log data of the domain name resolution of the network entity.
3. The threat identification method according to claim 1, characterized in that: Also includes: Obtaining log data generated by each event of multiple network entities, and using the log data as sample events; Build a list of advanced persistent threats and a map of advanced persistent threats; among them: For the log data generated by the sample event, a plurality of fields with independent meanings are obtained through lexical analysis, and whether the event is an advanced persistent threat is determined according to the plurality of fields with independent meanings; and the log data is marked as a known threat event or an unknown threat event according to the determination result; The Advanced Persistent Threat List is constructed by: For all known threat events, threat features are extracted from the log data of the events, and corresponding advanced persistent threats are obtained by learning all the threat features, each of which has a corresponding threat feature; wherein the threat feature includes at least one of the following: the source domain name of the threat, the IP used by the threat, and the category of the file generated by the threat; The Advanced Persistent Threat Map is constructed by: Identify each known threat event, characterize the corresponding known threat event through the identification, and use the identification as entity content; For each known threat event, extract log features from log data generated by the event, perform structured processing on the log features, and use the structured log features as attribute information of the advanced persistent threat; wherein the log features at least include threat features; Determining whether two advanced persistent threat identifiers are related according to the attribute information of the advanced persistent threat, and when the two advanced persistent threat identifiers are related, taking the connection between the two advanced persistent threat entity contents as a relationship; The two entities having a relationship are connected, and the attribute information of the entities is marked to form an advanced persistent threat knowledge graph.
4. The threat identification method according to claim 1 or 3, characterized in that: The log features also include one or any combination of the following: usage conditions, scope of application, and features of the generated files; The characteristics of the generated file include at least one of the following: a hash value of the generated file, a hash value of the path, and a hash value of the file name.
5. The threat identification method according to claim 1, characterized in that: Also includes: After the network entity behavior is determined to be an advanced persistent threat, an alert is issued; Stop receiving data sent according to the user account corresponding to the network entity or the IP address used.
6. A threat identification system, characterized in that: include: A data acquisition unit, used to acquire log data generated when network entity behavior occurs; A first judgment unit is used to extract a threat feature from the log data, compare the threat feature with at least one preset advanced persistent threat, and judge whether the threat feature matches the threat feature included in any advanced persistent threat; A second judgment unit is configured to compare the log data with an advanced persistent threat knowledge graph when it is confirmed that the threat feature matches the threat feature included in any advanced persistent threat, and to judge the network entity behavior as an advanced persistent threat when it is confirmed that the log data matches an entity in the advanced persistent threat knowledge graph; The second judging unit includes: A lexical analysis subunit, used for performing lexical analysis on the log data generated when the network entity behavior occurs, to obtain a corresponding plurality of fields with independent meanings; An entity determination subunit, configured to obtain content information of the network entity behavior by identifying fields with independent meanings; The attribute determination subunit is used to extract log features from the log data generated when the network entity behavior occurs, and perform structured processing on the log features, and use the structured log features as attribute information of the network entity behavior, wherein the log features at least include threat features; The graph determination subunit is used to determine the network entity behavior as an advanced persistent threat when the content information of the network entity behavior is consistent with the entity content in the advanced persistent threat knowledge graph; and / or determine the network entity behavior as an advanced persistent threat when the attribute information of the network entity behavior matches the attribute information of the entity in the advanced persistent threat knowledge graph.
7. The threat identification system according to claim 6, characterized in that: The log data generated when the network entity behavior occurs includes at least one of the following: log data of terminal behavior, log data of download behavior, log data of data transmission, and log data of domain name resolution; The data acquisition unit includes at least one of the following: a first monitoring unit, configured to monitor resources loaded by a network entity during operation, monitor first call data generated when the network entity calls a sensitive system API, monitor second call data generated when the network entity calls a network socket, and use at least one of the loaded resources, the first call data, and the second call data as log data of a terminal behavior of the network entity; A second monitoring unit is used to monitor the log data generated during the network download of the network entity, and use the log data generated during the network download as the log data of the download behavior of the network entity; A third monitoring unit is used to monitor the data transmission process of the network entity, and obtain instruction control and data transmission flow as log data of the data transmission of the network entity; The fourth monitoring unit is used to monitor the domain name resolution request record of the network entity, and collect the domain name resolution request record as the log data of the domain name resolution of the network entity.
8. The threat identification system according to claim 6, characterized in that: It also includes a sample production unit, an advanced persistent threat collection unit, and an advanced persistent threat map construction unit; The sample preparation unit is used to obtain log data generated by each event of multiple network entities, and use the log data as sample events; wherein, for the log data generated by the sample events, multiple fields with independent meanings are obtained through lexical analysis, and whether the event is an advanced persistent threat is determined according to the multiple fields with independent meanings; and the log data is marked as a known threat event or an unknown threat event according to the determination result; The advanced persistent threat collection unit is used to extract threat features from the log data of all known threat events, and obtain corresponding advanced persistent threats by learning all the threat features, each of which has a corresponding threat feature; wherein the threat feature includes at least one of the following: the source domain name of the threat, the IP used by the threat, and the category of the file generated by the threat; The advanced persistent threat graph construction unit includes an entity determination subunit, an attribute determination subunit, a relationship determination subunit and a graph construction subunit, wherein: The entity determination subunit is used to identify each known threat event, characterize the corresponding known threat event by the identification, and use the identification as entity content; The attribute determination subunit is used to extract log features from log data generated by each known threat event, perform structured processing on the log features, and use the structured log features as attribute information of the advanced persistent threat; wherein the log features at least include threat features; The relationship determination subunit is used to determine whether two advanced persistent threat identifiers are related to each other according to the attribute information of the advanced persistent threat, and when the two advanced persistent threat identifiers are related to each other, the relationship between the two advanced persistent threat entity contents is used as the relationship; The graph construction subunit is used to connect the two entities having a relationship, mark the attribute information of the entities, and form an advanced persistent threat knowledge graph.
9. The threat identification system according to claim 6, characterized in that: Also includes: an alarm unit, configured to issue an alarm after the network entity behavior is determined to be an advanced persistent threat; The tracing unit is used to stop receiving data sent according to the user account corresponding to the network entity or the IP address used.
