Command and control C&C domain name verification method, device and electronic device
By determining the survival status of the C&C domain name and obtaining the corresponding IP address, combined with family homology analysis and network traffic monitoring, the verification accuracy of the C&C domain name is improved, solving the problem of low verification accuracy in the existing technology, and providing a more reliable The basis for blocking malicious domain names.
Patent Information
- Application Number
- CN202011429638.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-12-07
AI Technical Summary
The verification accuracy of suspected command and control (C&C) domain names in the existing technology is low, and it is difficult to effectively block malicious C&C domain names.
By determining the survival status of the target C&C domain name to be verified, obtaining the corresponding IP address, and adopting different verification schemes based on the survival status and IP address, including family homology analysis and network traffic quintuple information monitoring, to improve Verification accuracy.
It improves the verification credibility and accuracy of C&C domain names and provides reliable basis for subsequent blocking of malicious C&C domain names.
Smart Images

Figure CN114615003B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a command and control (C&C) domain name verification method, device and electronic equipment. Background Art
[0002] With the rapid development of computer network technology and communication technology, command and control (C&C) domain name technology is also constantly updated, and the confrontation between offense and defense is becoming more and more intense. By changing the mapping relationship between C&C domain names and Internet Protocol (IP) addresses, malicious control of the network is achieved. In order to block access to malicious C&C domain names and IPs, defenders need to pay a great price.
[0003] Blocking maliciously deployed botnets by manually analyzing malicious samples is inefficient and requires high standards from analysts. Existing technical solutions mostly use machine learning algorithm models to detect C&C domain names, with the aim of improving detection efficiency and reducing personnel involvement. However, the detected suspected malicious C&C domain names still need further verification. Currently, malicious C&C domain names are confirmed through existing domain name blacklists or feature analyzers, which are limited to discovered malicious samples and have a low verification accuracy. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device and electronic device for verifying a command and control C&C domain name, so as to solve the problem of low verification accuracy of suspected C&C domain names in the prior art.
[0005] To achieve the above object, an embodiment of the present invention provides a method for verifying a command and control C&C domain name, including:
[0006] Determine the survival status of the target C&C domain name to be verified;
[0007] According to the survival status, an Internet protocol IP corresponding to the target C&C domain name is obtained, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a Domain Name System (DNS) service for the target C&C domain name;
[0008] When the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database, verifying the target C&C domain name according to the family homology of the first domain name set;
[0009] In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
[0010] Optionally, determining the survival status of the target C&C domain name to be verified includes:
[0011] Determine whether the target C&C domain name has a bound IP according to the Domain Name System (DNS) database;
[0012] If the target C&C domain name has a bound IP, it is determined that the target C&C domain name is in a live state; if the target C&C domain name has no bound IP, it is determined that the C&C domain name is in a non-live state.
[0013] Optionally, obtaining the Internet protocol IP corresponding to the target C&C domain name according to the survival status includes the following:
[0014] When the target C&C domain name is alive, obtaining a first target IP bound to the target C&C domain name from a domain name system database;
[0015] When the target C&C domain name is in a non-survival state and the target C&C domain name has been used, obtaining a first target IP bound to the target C&C domain name from a domain name system database;
[0016] When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is activated within a preset period, obtaining a first target IP bound when the target C&C domain name is activated;
[0017] When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is not activated within a preset period, a second target IP for requesting a DNS service for the target C&C domain name within the preset period is obtained.
[0018] Optionally, when the IP includes the first target IP, before verifying the target C&C domain name according to the family homology of the first domain name set, the method further includes:
[0019] Determine, according to a domain name system DNS database, a first IP set for requesting to query the target C&C domain name and a first domain name set already used by the first target IP;
[0020] The first domain name set is matched with a blacklist database.
[0021] Optionally, the method further comprises:
[0022] When the first domain name set successfully matches the blacklist database, the target C&C domain name is determined to be a domain name to be blocked.
[0023] Optionally, verifying the target C&C domain name according to the family homology of the first domain name set includes:
[0024] Determining whether the domain names in the first domain name set meet family homology conditions according to family characteristics of the domain name family;
[0025] When a domain name in the first domain name set meets the family homology condition, determining the target C&C domain name as a domain name to be blocked;
[0026] When there is at least one domain name in the first domain name set that does not satisfy the family homology condition, the target C&C domain name is verified according to the network traffic quintuple information.
[0027] Optionally, the family homology condition includes:
[0028] The domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
[0029] Optionally, when there is at least one domain name in the first domain name set that does not meet the family homology condition, verifying the target C&C domain name according to the network traffic quintuple information includes:
[0030] Monitoring, based on the five-tuple information, traffic behavior of a first IP set requesting to query the target C&C domain name;
[0031] When abnormal traffic behavior is detected in the first IP set, determining the target C&C domain name as a domain name to be blocked;
[0032] When it is monitored that the first IP set does not have abnormal traffic behavior, it is determined that the target C&C domain name is a false positive domain name.
[0033] Optionally, when the IP includes the second target IP, verifying the target C&C domain name according to the number of the second target IP includes:
[0034] When the number of the second target IPs reaches a preset threshold, the target C&C domain name is determined to be a domain name to be blocked, otherwise, the target C&C domain name is determined to be a false positive domain name.
[0035] Optionally, the method further comprises:
[0036] Model detection is performed on the domain name system DNS log to obtain the target C&C domain name and domain name family.
[0037] To achieve the above object, an embodiment of the present invention provides a command and control C&C domain name verification device, including:
[0038] A first determination module, used to determine the survival status of the target C&C domain name to be verified;
[0039] A first acquisition module is used to acquire an Internet protocol IP corresponding to the target C&C domain name according to the survival status, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name;
[0040] A first verification module, configured to verify the target C&C domain name according to the family homology of the first domain name set when the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database;
[0041] Used to verify the target C&C domain name according to the number of the second target IPs when the IP includes the second target IP.
[0042] Optionally, the first determining module is specifically configured to:
[0043] Determine whether the target C&C domain name has a bound IP according to the Domain Name System (DNS) database;
[0044] If the target C&C domain name has a bound IP, it is determined that the target C&C domain name is in a live state; if the target C&C domain name has no bound IP, it is determined that the C&C domain name is in a non-live state.
[0045] Optionally, the first acquisition module includes one of the following:
[0046] A first acquisition unit, configured to acquire, when the target C&C domain name is in a live state, a first target IP bound to the target C&C domain name from a domain name system database;
[0047] A second acquisition unit is used to acquire a first target IP bound to the target C&C domain name from a domain name system database when the target C&C domain name is in a non-survival state and the target C&C domain name has been used;
[0048] A third acquisition unit is used to acquire the first target IP bound when the target C&C domain name is activated, when the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is activated within a preset period;
[0049] The fourth acquisition unit is used to acquire a second target IP for requesting DNS service for the target C&C domain name within the preset period when the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is not activated within the preset period.
[0050] Optionally, when the IP includes the first target IP, the apparatus further includes:
[0051] A second determination module is used to determine, according to a domain name system DNS database, a first IP set requesting to query the target C&C domain name and a first domain name set already used by the first target IP;
[0052] A matching module is used to match the first domain name set with a blacklist database.
[0053] Optionally, the device further comprises:
[0054] The third determination module is used to determine that the target C&C domain name is a domain name to be blocked when the first domain name set successfully matches the blacklist database.
[0055] Optionally, the first verification module includes:
[0056] A first determining unit, configured to determine whether the domain names in the first domain name set meet a family homology condition according to family characteristics of the domain name family;
[0057] A second determining unit, configured to determine that the target C&C domain name is a domain name to be blocked if a domain name in the first domain name set meets the family homology condition;
[0058] A verification unit is used to verify the target C&C domain name according to the network traffic quintuple information when there is at least one domain name in the first domain name set that does not meet the family homology condition.
[0059] Optionally, the family homology condition includes:
[0060] The domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
[0061] Optionally, the verification unit includes:
[0062] A monitoring subunit, configured to monitor, according to the five-tuple information, the traffic behavior of the first IP set requesting to query the target C&C domain name;
[0063] A first determination subunit is used to determine that the target C&C domain name is a domain name to be blocked when abnormal traffic behavior is detected in the first IP set;
[0064] The second determination subunit is used to determine that the target C&C domain name is a false alarm domain name when it is monitored that there is no abnormal traffic behavior in the first IP set.
[0065] Optionally, the first verification module is specifically configured to: when the number of the second target IPs reaches a preset threshold, determine that the target C&C domain name is a domain name to be blocked; otherwise, determine that the target C&C domain name is a false positive domain name.
[0066] Optionally, the device further comprises:
[0067] The second acquisition module is used to perform model detection on the domain name system DNS log to obtain the target C&C domain name and domain name family.
[0068] To achieve the above object, an embodiment of the present invention provides an electronic device, including a processor and a transceiver, wherein:
[0069] The processor is used to: determine the survival status of the target C&C domain name to be verified;
[0070] The transceiver is used to: obtain an Internet protocol IP corresponding to the target C&C domain name according to the survival status, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name;
[0071] The processor is further configured to: verify the target C&C domain name according to the family homology of the first domain name set when the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database;
[0072] In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
[0073] Optionally, when the processor determines the survival status of the target C&C domain name to be verified, it is specifically used to:
[0074] Determine whether the target C&C domain name has a bound IP according to the Domain Name System (DNS) database;
[0075] If the target C&C domain name has a bound IP, it is determined that the target C&C domain name is in a live state; if the target C&C domain name has no bound IP, it is determined that the C&C domain name is in a non-live state.
[0076] Optionally, when the transceiver obtains the Internet protocol IP corresponding to the target C&C domain name according to the survival status, the method includes the following:
[0077] When the target C&C domain name is alive, obtaining a first target IP bound to the target C&C domain name from a domain name system database;
[0078] When the target C&C domain name is in a non-survival state and the target C&C domain name has been used, obtaining a first target IP bound to the target C&C domain name from a domain name system database;
[0079] When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is activated within a preset period, obtaining a first target IP bound when the target C&C domain name is activated;
[0080] When the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is not activated within a preset period, a second target IP for requesting a DNS service for the target C&C domain name within the preset period is obtained.
[0081] Optionally, the processor is further used to: determine, based on a domain name system DNS database, a first IP set requesting to query the target C&C domain name and a first domain name set already used by the first target IP; and match the first domain name set with a blacklist database.
[0082] Optionally, the processor is further configured to: when the first domain name set successfully matches the blacklist database, determine that the target C&C domain name is a domain name to be blocked.
[0083] Optionally, when the processor verifies the target C&C domain name according to the family homology of the first domain name set, it is specifically configured to:
[0084] Determining whether the domain names in the first domain name set meet family homology conditions according to family characteristics of the domain name family;
[0085] When a domain name in the first domain name set meets the family homology condition, determining the target C&C domain name as a domain name to be blocked;
[0086] When there is at least one domain name in the first domain name set that does not satisfy the family homology condition, the target C&C domain name is verified according to the network traffic quintuple information.
[0087] Optionally, the family homology condition includes:
[0088] The domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
[0089] Optionally, when there is at least one domain name in the first domain name set that does not satisfy the family homology condition, the processor verifies the target C&C domain name according to the network traffic quintuple information, specifically for:
[0090] Monitoring, based on the five-tuple information, traffic behavior of a first IP set requesting to query the target C&C domain name;
[0091] When abnormal traffic behavior is detected in the first IP set, determining the target C&C domain name as a domain name to be blocked;
[0092] When it is monitored that the first IP set does not have abnormal traffic behavior, it is determined that the target C&C domain name is a false positive domain name.
[0093] Optionally, when the IP includes the second target IP, the processor verifies the target C&C domain name according to the number of the second target IP, specifically for:
[0094] When the number of the second target IPs reaches a preset threshold, the target C&C domain name is determined to be a domain name to be blocked, otherwise, the target C&C domain name is determined to be a false positive domain name.
[0095] Optionally, the transceiver is further used to: perform model detection on a domain name system DNS log to obtain the target C&C domain name and domain name family.
[0096] To achieve the above-mentioned purpose, an embodiment of the present invention provides an electronic device, including a transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the processor executes the program or instruction, the verification method of the command and control C&C domain name as described above is implemented.
[0097] To achieve the above objective, an embodiment of the present invention provides a readable storage medium having a program or instruction stored thereon, which implements the steps in the command and control C&C domain name verification method as described above when the program or instruction is executed by a processor.
[0098] The beneficial effects of the above technical solution of the present invention are as follows:
[0099] The embodiments of the present invention determine the survival status of the target C&C domain name to be verified, obtain corresponding IPs for different survival statuses, and verify the target C&C domain name using different schemes based on the existing network environment according to the differences in survival status and obtained IPs. This can improve the credibility and accuracy of the verification and provide a reliable basis for the subsequent blocking of the malicious C&C domain name determined by the verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] Figure 1 This is a flowchart of a method for verifying a command and control C&C domain name according to an embodiment of the present invention;
[0101] Figure 2 The second flowchart of the command and control C&C domain name verification method of the embodiment of the present invention;
[0102] Figure 3 A schematic diagram of the structure of a command and control C&C domain name verification device according to an embodiment of the present invention;
[0103] Figure 4 This is one of the structural schematic diagrams of an electronic device according to an embodiment of the present invention;
[0104] Figure 5 This is a second structural schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0105] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0106] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0107] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0108] Additionally, the terms "system" and "network" are often used interchangeably herein.
[0109] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0110] like Figure 1 As shown, a method for verifying a command and control C&C domain name according to an embodiment of the present invention includes:
[0111] Step 101: Determine the survival status of the target C&C domain name to be verified.
[0112] The target C&C domain name may be a suspected malicious domain name detected by a machine learning algorithm model, and the suspected malicious domain name needs to be further verified to determine whether it is a malicious C&C domain name or a false positive caused by a detection error. DNS log data may be used as the input of a machine learning algorithm model, and after model detection, the suspected malicious C&C domain name is output, i.e., the target C&C domain name to be verified.
[0113] The survival status of the target C&C domain name refers to whether the domain name is currently active. For each target C&C domain name in a survival state, it has a bound IP address; for a non-survival target C&C domain name, it may have or have had a bound IP address, or it may not have a bound IP address but has an IP address that requests the DNS service of the domain name.
[0114] Step 102: According to the survival status, obtain the Internet Protocol IP corresponding to the target C&C domain name, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name.
[0115] The first target IP may be the IP currently bound to the target C&C domain name or the IP to which the target C&C domain name has been bound. According to the determined survival status of the target C&C domain name, an IP address related to the target C&C domain name is obtained. For different survival statuses of the target C&C domain name, the obtained IP address may be the first target IP address currently bound to the target C&C domain name, or the first target IP address to which the target C&C domain name has been bound, or the second target IP address for which the DNS service is requested for the target C&C domain name.
[0116] Step 103: When the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database, verify the target C&C domain name according to the family homology of the first domain name set;
[0117] In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
[0118] For different survival states of the target C&C domain name, the obtained IP address may be different, and the verification method is different. Among them, when the obtained IP includes the first target IP, it is necessary to obtain a set of domain names bound to the first target IP (including those that have been bound), that is, the first domain name aggregation, and match each domain name in the first domain name set with the blacklist database. If the match is successful, it means that the matched domain name is in the blacklist database, and the target C&C domain name is a malicious domain name; if the match fails, it is necessary to perform family homology analysis on each domain name in the first domain name set, and verify the target C&C domain name according to the family homology analysis results.
[0119] When the acquired IP includes the second target IP, that is, the IP only requests the DNS service of the target C&C domain name and is not bound to the target C&C domain name, the target C&C domain name is verified according to the number of the second target IPs requesting DNS service.
[0120] The embodiments of the present invention determine the survival status of the target C&C domain name to be verified, obtain corresponding IPs for different survival statuses, and verify the target C&C domain name using different schemes based on the existing network environment according to the differences in survival status and obtained IPs. This can improve the credibility and accuracy of the verification and provide a reliable basis for the subsequent blocking of the malicious C&C domain name determined by the verification.
[0121] Among them, since the DNS log data is used as the input of the machine learning algorithm model, before using the DNS log data, the DNS log data can be filtered, such as: de-duplication filtering, filtering out common access domain names (such as the top 1000 domain names with high activity: Alax top 1000), etc.; the DNS log data after filtering can be persistently stored to establish a passive DNS database (DNSDB, DNS Database), and the field format of the DNS database can be as shown in Table 1, including field name, field type and remarks, wherein the field name includes: source IP, domain name, request time, request type, parsing code, parsing result; field type includes string (String) and data (Date); source IP refers to the IP address requesting DNS query; domain name refers to the domain name requesting query; request time refers to the time of requesting query; request type refers to the type of DNS record requested: such as A, AAAA, etc.; parsing codes include: 0-NOERROR (no error), 1-FORMERR (Format Error, format error), 2-SERVFAIL (Server Failure (server-side problem), 3-NAMEERROR (domain name does not exist), 4-NOTIMP (Not Implemented), 5-REFUSED (request rejected), 6~15-reserved.
[0122] Table 1:
[0123]
[0124] In addition, a local C&C domain name blacklist database (C&C_DB) can also be established, and the blacklist database is used to store verified malicious C&C domain names. The fields contained in the C&C domain name blacklist database are shown in Table 2, including domain name, confirmation time, and domain name bound IP. The domain name refers to the verified C&C malicious domain name, the confirmation time refers to the time when the malicious domain name is verified, and the domain name bound IP refers to the IP bound when the domain name is verified.
[0125] Table 2:
[0126] ID Fields Remark domain name String Verified C&C malicious domain names Confirmation time Date Malicious domain name verification time IP bound to the domain name String The IP bound to the domain name during verification
[0127] Optionally, the method further includes: performing model detection on a domain name system DNS log to obtain the target C&C domain name and domain name family.
[0128] In this embodiment, when the DNS log data is used as the input of the machine learning algorithm model and the suspected malicious C&C domain name (i.e., the target C&C domain name) is output after model detection, the domain name family is also output. The domain name family that can be output establishes a database (Family_DB) for storing the general characteristics of the domain name family. The fields included in the domain name family database are shown in Table 3, including: domain name family, which refers to the name of the domain name family; top-level domain name range, which refers to the top-level domain name range of the family distribution; second-level domain name length, which refers to the length of the second-level domain name of the family; whether the family depends on the time seed, including dependence (True) and non-dependence (False); family first discovery time, which refers to the time when the family was first discovered; family last update time, which refers to the time when the domain name list of the family was last updated.
[0129] Table 3:
[0130]
[0131] Optionally, determining the survival status of the target C&C domain name to be verified includes: determining whether the target C&C domain name has a bound IP according to a domain name system DNS database; if the target C&C domain name has a bound IP, determining that the target C&C domain name is in a survival state; if the target C&C domain name has no bound IP, determining that the C&C domain name is in a non-survival state.
[0132] For the suspected malicious C&C domain name detected (i.e. the target C&C domain name to be verified), a survival determination is made, and whether the target C&C domain name has a bound IP is obtained by querying from the DNSDB. For the domain name bound to the IP, it is marked as alive, and for the domain name without a bound IP, it is marked as dead.
[0133] The following first describes a method for verifying the target C&C domain name by using a specific embodiment when the first target IP is obtained according to the survival status of the target C&C domain name. It should be noted that the first target IP can be an IP bound when the target C&C domain name is in a survival state, or an IP that the target C&C domain name has been bound to when it is in a non-survival state, or an IP bound when the target C&C domain name is activated from a non-survival state.
[0134] Specifically, when the IP includes the first target IP, before verifying the target C&C domain name according to the family homology of the first domain name set, the method may further include:
[0135] According to a domain name system DNS database, determining a first IP set for requesting to query the target C&C domain name and a first domain name set already used by the first target IP; matching the first domain name set with a blacklist database. The method further includes: if the first domain name set successfully matches the blacklist database, determining the target C&C domain name as a domain name to be blocked.
[0136] When obtaining the IP corresponding to the target C&C domain name according to the survival status of the target C&C domain name, if the IP obtained according to the survival status is the first target IP bound to the target C&C domain name (including having been bound before), then the DNSDB database is searched for the set of all IPs requesting to query the target C&C domain name (i.e., the suspected zombie set), and the set of all domain names that the first target IP has used (including being bound or having been bound), i.e., the first domain name set, which includes the following information: domain name, earliest time the domain name was found to be used, and most recently time the domain name was found to be used.
[0137] Query whether all the domain names in the first domain name set are in the blacklist database. If there is a hit, it means that the first target IP has been bound to a malicious C&C domain name, and the first target IP is considered unsafe. At this time, the target C&C domain name bound to the first target IP is also a malicious C&C domain name, that is, the domain name to be blocked. The target C&C domain name and the first target IP can be entered into the blacklist database to identify the target C&C domain name as a malicious C&C domain name; if the domain names in the first domain name set are not successfully matched with the blacklist database, the target C&C domain name is verified according to the family homology of the first domain name set.
[0138] Specifically, verifying the target C&C domain name according to the family homology of the first domain name set may include:
[0139] According to the family characteristics of the domain name family, determine whether the domain names in the first domain name set meet the family homology condition; if the domain names in the first domain name set meet the family homology condition, determine the target C&C domain name as the domain name to be blocked.
[0140] Optionally, the family homology condition includes: the domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
[0141] In this embodiment, if all the domain names in the first domain name set are not in the blacklist database, a family homology analysis module is used to perform a family homology analysis on the first domain name set according to the characteristics of each domain name family, and the family characteristics are taken from the domain name family database Family_DB; in addition, it is determined whether the time to live (TTL) time of each domain name in the first domain name set falls in the same interval; if all domain names fall in the domain name family where the target C&C domain name is located, and the TTL time also falls in the same interval (for example: the time to live of all domain names in the first domain name set is 2 hours, and the error range is 10 minutes), then the target C&C domain name is determined to be a malicious domain name, that is, the domain name to be blocked, and the target C&C domain name and its bound first target IP can be stored in the domain name blacklist database C&C_DB to identify the target C&C domain name as a malicious C&C domain name.
[0142] Optionally, when there is at least one domain name in the first domain name set that does not meet the family homology condition, the target C&C domain name is verified according to the network traffic quintuple information. Specifically, it can include: according to the quintuple information, monitoring the traffic behavior of the first IP set that requests to query the target C&C domain name; when monitoring the first IP set for abnormal traffic behavior, determining the target C&C domain name as a domain name to be blocked; when monitoring the first IP set for no abnormal traffic behavior, determining the target C&C domain name as a false positive domain name.
[0143] In this embodiment, if at least one of the domain names in the first domain name set does not satisfy at least one of the family homology conditions, for example, a domain name in the first domain name set is not in the family where the target C&C domain name is located, or the survival time of a domain name in the first domain name set is not in the same interval as other domain names, then the target C&C domain name and all suspected botnet IP sets (i.e., the first IP set) requesting to query the domain name are added to the existing network IP monitoring module, and the five-tuple information of the network flow (Net flow) is obtained in real time, including: source IP, destination IP, port, protocol, and statistics of network activities with the same characteristics are counted within the monitoring period, and the statistical characteristics include but are not limited to those shown in the following Table 4:
[0144] Table 4:
[0145]
[0146]
[0147] After obtaining the feature aggregation of the above monitoring statistics, the traffic behavior of the specified IP set can be monitored in the existing network through a network device with a full traffic analysis function to discover abnormal behavior, and then analyze whether the monitored IP (i.e., the IP in the first IP set) has intensive network activities in a certain period of time, for example: sending a synchronization (Synchronize, SYN) request to a specific port (port segment) of the same destination IP or the same IP segment in a certain time period, or session communication with the destination suspected C&C host IP port (80, 8080, 443, etc.) in the time period of 0-5 am. The malicious C&C domain name can be verified through the actual attack behavior in the existing network. If it meets the statistical threshold, it is verified that the target C&C domain name is a malicious C&C domain name. The target C&C domain name can be added to the blacklist database and labeled as a malicious C&C domain name. Otherwise, the verification is determined to be a false alarm.
[0148] The following describes a process of verifying the target C&C domain name according to different acquired IP addresses when the target C&C domain name is in different survival states through a specific embodiment.
[0149] Specifically, obtaining the Internet protocol IP corresponding to the target C&C domain name according to the survival status may include one of the following:
[0150] (1): When the target C&C domain name is alive, obtain the first target IP bound to the target C&C domain name from the domain name system database.
[0151] For the target C&C domain name to be verified in the alive state, the IP address bound to it is obtained through the DNSDB database. In addition, a passive DNS query module can be used to find out the set of all IPs that request to query the domain name in the DNSDB database, as well as the set of all domain names that the IP has ever used, that is, the first domain name set, and query whether the domain names in the first domain name set are in the domain name blacklist database C&C_DB. If there is a hit, the target C&C domain name and its bound IP are stored in the domain name blacklist database C&C_DB, and the domain name is marked as a malicious C&C domain name.
[0152] (2): When the target C&C domain name is in a non-survival state and the target C&C domain name has been used, obtain a first target IP bound to the target C&C domain name from a domain name system database.
[0153] (3): When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is activated within a preset period, obtain the first target IP bound to the target C&C domain name when it is activated.
[0154] (4): When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is not activated within a preset period, obtain a second target IP for requesting a DNS service for the target C&C domain name within the preset period.
[0155] In this embodiment, for the target C&C domain name to be verified in the dead state, there are two possible situations. The first situation is that the target C&C domain name has been used; the second situation is that the target C&C domain name has not been used. For the first situation, the passive DNSDB is queried to see whether the target C&C domain name has a bound IP, or whether it has ever been bound to an IP. The IP bound to the target C&C domain name and the IP that has been bound can both be defined as the first target IP. If the target C&C domain name is bound or has been bound to an IP (or IP set), that is, the situation in (2) above, the step of "determining the first IP set for requesting to query the target C&C domain name and the first domain name set used by the first target IP according to the domain name system DNS database; matching the first domain name set with the blacklist database" is performed.
[0156] For the second case, if the target C&C domain name has not been bound to any IP, the target C&C domain name is added to the domain name monitoring module, and the monitoring period (i.e., the preset period) is the domain name life span of the domain name family to which the target C&C domain name belongs. If the target C&C domain name is activated and used during the monitoring period, i.e., the case in (3) above, the target C&C domain name is bound to a certain IP during the monitoring period, and the bound IP is the first target IP, then the step of "determining, according to the domain name system DNS database, the first IP set for requesting to query the target C&C domain name and the first domain name set used by the first target IP; matching the first domain name set with the blacklist database" is executed.
[0157] For the second case, the target C&C domain name has not been bound to any IP, and the target C&C domain name has never been activated during the monitoring period, then the IP that requests DNS service for the target C&C domain name during the monitoring period, i.e., the second target IP, is counted and collected as an abnormal access IP, i.e., the case in (4) above.
[0158] For the situation in (4) above, optionally, when the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IPs, including: when the number of the second target IPs reaches a preset threshold, determining the target C&C domain name as a domain name to be blocked; otherwise, determining the target C&C domain name as a false positive domain name.
[0159] In this embodiment, when the number of the second target IPs reaches a preset threshold (which can be set based on experience), it can be considered that a domain name without an IP bound has a considerable number of DNS query requests, which is an abnormal behavior. The target C&C domain name is verified to be a malicious C&C domain name, that is, the domain name to be blocked, and the target C&C domain name is entered into the blacklist database and marked with a malicious C&C domain name label; if the number of the second target IPs does not reach the preset threshold and is determined to be a false alarm, then the target C&C domain name is not a malicious C&C domain name.
[0160] After obtaining the corresponding IP address according to the different survival states of the target C&C domain name and verifying the target C&C domain name according to the obtained IP address, the entire verification process completes a closed loop. With the increase of the domain name blacklist database C&C_DB, the efficiency of subsequent verification of other C&C domain names can be continuously improved; since the verification process is monitored in the existing network environment, the credibility and accuracy of the verification can be guaranteed, which is conducive to the subsequent blocking of the verified malicious C&C domain name and its bound IP.
[0161] The overall implementation process of the command and control C&C domain name verification method according to an embodiment of the present invention is described below with reference to the accompanying drawings.
[0162] like Figure 2 As shown, step S1: whitelist filtering is performed on the DNS log to filter out common access domain names and duplicate domain names, format and store the filtered DNS log data, and establish a passive DNSDB. The functions supported by the DNSDB may include: querying domain names by IP, querying IP by domain name, querying subdomain names by domain name, etc.
[0163] Step S2: Establish a local C&C domain name blacklist database: C&C_DB. The C&C domain name labels in the blacklist database may include: malicious C&C domain name, family, risk value, and credibility;
[0164] When the model detection is performed on the DNS log, output 1: suspected C&C domain name, output 2: C&C domain name family;
[0165] Step S3: Establish a domain name family database for the output C&C domain name family: Family_DB;
[0166] Step S4: Make a survival judgment on the detected suspected C&C domain name, and query from DNSDB to obtain whether the C&C domain name has a bound IP. For a bound domain name, output 3: alive, for a domain name without a bound IP, output 4: dead;
[0167] Step S5: For the C&C domain name to be confirmed in the alive state, after obtaining the bound IP from the DNSDB, find out from the DNSDB database the set of all IPs that request to query the domain name (suspected botnet IP set), as well as the set of all domain names that the bound IP has ever used, which may include: domain name, earliest discovery time, and latest discovery time. Step S5-1: According to C&C_DB, query whether the domain names in the domain name set are in the blacklist database. If so, add the suspected C&C domain name to be verified and the bound IP to the blacklist database, marking this domain name as a malicious C&C domain name; if there is no hit, proceed to step S6;
[0168] Step S6: If all domain names are not hit in the blacklist database C&C_DB, analyze the family homology of the domain names in the domain name set in the above step S5 and the TTL time of these domain names to determine whether the domain names in the above domain name set are homologous to the suspected C&C domain name to be verified this time. If the judgment conditions are met, all domain names in the domain name set fall into the family where the suspected C&C domain name to be verified is located, and the TTL time also falls in the same interval, then the suspected C&C domain name to be verified and the bound IP are added to the blacklist database, marking this domain name as a malicious C&C domain name; otherwise, proceed to step S7;
[0169] Step S7: If at least one of the two judgment conditions in step S6 is not met, the suspected botnet IP set obtained in step S5 is added to the existing network IP monitoring range; Step S7-1: Real-time acquisition of Netflow quintuple information (including source / destination IP, port, protocol), full flow analysis based on the quintuple information, and analysis of alarm logs;
[0170] Step S8: Monitor whether the IPs in the suspected botnet IP set have centralized communications with specific IPs or IP segments (e.g., same port protocol, same time period, with specific characteristics); for example: sending SYN requests to the same destination IP or a specific port of the same IP segment within a certain time period, or conducting session communications with the destination suspected C&C host IP port (80, 8080, 443, etc.) during the 0-5 am time period.
[0171] If the monitored IP has the above behaviors, the verified suspected malicious C&C domain name is determined to be a malicious C&C domain name, added to the blacklist database C&C_DB, and labeled as a malicious C&C domain name. Otherwise, the verification is determined to be a false positive.
[0172] Step S9: For the suspected malicious C&C domain name in the dead state to be verified, there are two possible situations, one is that the suspected malicious C&C domain name has been used; the other is that the suspected malicious C&C domain name has not been used. In the first case, query the passive DNSDB to see whether the suspected malicious C&C domain name has a bound IP, or has ever been bound to an IP. If it has been bound to an IP (or IP set), jump to step S5 to continue execution;
[0173] Step S9-1: For the second case, if the suspected malicious C&C domain name has not been bound to any IP, the C&C domain name to be verified is added to the domain name monitoring module, and the monitoring period is the maximum domain name survival time of the domain name family to which the domain name belongs;
[0174] Step S9-2: During the monitoring period, the status of the suspected malicious C&C domain name is monitored in real time from the latest DNS log and the IP address accessing the domain name is counted. If the suspected malicious C&C domain name becomes active during the monitoring period, i.e., it is activated and bound to a certain IP address, then the process jumps to step S5 to continue the process.
[0175] Step S9-3: If the suspected malicious C&C domain name has never been activated during the monitoring period, the IPs requesting DNS services for this domain name during the monitoring period are counted after the detection period ends, and it is determined whether the number of abnormal access IPs reaches the preset threshold. If the number of such IPs reaches the threshold, it is considered that a domain name without an IP bound has a considerable number of DNS query requests, which is an abnormal behavior. The suspected malicious C&C domain name is verified to be a malicious C&C domain name, added to the list database, and marked with a malicious C&C domain name label. Otherwise, it is determined to be a false alarm.
[0176] Step S10: The entire verification process is closed-loop, and the domain name determined to be a malicious C&C domain name is blocked. With the increase of the domain name blacklist database C&C_DB, the efficiency of subsequent C&C domain name verification can be continuously improved. The verification process is monitored in the existing network environment, which can ensure the credibility and accuracy of the verification and provide a basis for blocking the determined malicious C&C domain name and its bound IP.
[0177] The embodiments of the present invention determine the survival status of the target C&C domain name to be verified, obtain corresponding IPs for different survival statuses, and verify the target C&C domain name using different schemes based on the existing network environment according to the differences in survival status and obtained IPs. This can improve the credibility and accuracy of the verification and provide a reliable basis for the subsequent blocking of the malicious C&C domain name determined by the verification.
[0178] like Figure 3As shown, the embodiment of the present application also provides a command and control C&C domain name verification device 300, including:
[0179] A first determination module 310, configured to determine the survival status of a target C&C domain name to be verified;
[0180] A first acquisition module 320 is used to acquire an Internet protocol IP corresponding to the target C&C domain name according to the survival status, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name;
[0181] A first verification module 330 is used to verify the target C&C domain name according to the family homology of the first domain name set when the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database;
[0182] In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
[0183] Optionally, the first determining module 310 is specifically configured to:
[0184] Determine whether the target C&C domain name has a bound IP according to the Domain Name System (DNS) database;
[0185] If the target C&C domain name has a bound IP, it is determined that the target C&C domain name is in a live state; if the target C&C domain name has no bound IP, it is determined that the C&C domain name is in a non-live state.
[0186] Optionally, the first acquisition module 320 includes one of the following:
[0187] A first acquisition unit, configured to acquire, when the target C&C domain name is in a live state, a first target IP bound to the target C&C domain name from a domain name system database;
[0188] A second acquisition unit is used to acquire a first target IP bound to the target C&C domain name from a domain name system database when the target C&C domain name is in a non-survival state and the target C&C domain name has been used;
[0189] A third acquisition unit is used to acquire the first target IP bound when the target C&C domain name is activated, when the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is activated within a preset period;
[0190] The fourth acquisition unit is used to acquire a second target IP for requesting DNS service for the target C&C domain name within the preset period when the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is not activated within the preset period.
[0191] Optionally, when the IP includes the first target IP, the apparatus further includes:
[0192] A second determination module is used to determine, according to a domain name system DNS database, a first IP set requesting to query the target C&C domain name and a first domain name set already used by the first target IP;
[0193] A matching module is used to match the first domain name set with a blacklist database.
[0194] Optionally, the device further comprises:
[0195] The third determination module is used to determine that the target C&C domain name is a domain name to be blocked when the first domain name set successfully matches the blacklist database.
[0196] Optionally, the first verification module 330 includes:
[0197] A first determining unit, configured to determine whether the domain names in the first domain name set meet a family homology condition according to family characteristics of the domain name family;
[0198] A second determining unit, configured to determine that the target C&C domain name is a domain name to be blocked if a domain name in the first domain name set meets the family homology condition;
[0199] A verification unit is used to verify the target C&C domain name according to the network traffic quintuple information when there is at least one domain name in the first domain name set that does not meet the family homology condition.
[0200] Optionally, the family homology condition includes:
[0201] The domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
[0202] Optionally, the verification unit includes:
[0203] A monitoring subunit, configured to monitor, according to the five-tuple information, the traffic behavior of the first IP set requesting to query the target C&C domain name;
[0204] A first determination subunit is used to determine that the target C&C domain name is a domain name to be blocked when abnormal traffic behavior is detected in the first IP set;
[0205] The second determination subunit is used to determine that the target C&C domain name is a false alarm domain name when it is monitored that there is no abnormal traffic behavior in the first IP set.
[0206] Optionally, the first verification module is specifically configured to: when the number of the second target IPs reaches a preset threshold, determine that the target C&C domain name is a domain name to be blocked; otherwise, determine that the target C&C domain name is a false positive domain name.
[0207] Optionally, the device further comprises:
[0208] The second acquisition module is used to perform model detection on the domain name system DNS log to obtain the target C&C domain name and domain name family.
[0209] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned C&C domain name verification method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as those in the method embodiment will not be specifically repeated here.
[0210] like Figure 4 As shown, an electronic device 400 according to an embodiment of the present invention includes a processor 410 and a transceiver 420, wherein:
[0211] The processor 410 is used to: determine the survival status of the target C&C domain name to be verified;
[0212] The transceiver 420 is used to: obtain the Internet protocol IP corresponding to the target C&C domain name according to the survival status, and the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name;
[0213] The processor 410 is further configured to: verify the target C&C domain name according to the family homology of the first domain name set when the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database;
[0214] In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
[0215] Optionally, when the processor 410 determines the survival status of the target C&C domain name to be verified, it is specifically configured to:
[0216] Determine whether the target C&C domain name has a bound IP according to the Domain Name System (DNS) database;
[0217] If the target C&C domain name has a bound IP, it is determined that the target C&C domain name is in a live state; if the target C&C domain name has no bound IP, it is determined that the C&C domain name is in a non-live state.
[0218] Optionally, when the transceiver 420 obtains the Internet protocol IP corresponding to the target C&C domain name according to the survival status, the following is included:
[0219] When the target C&C domain name is alive, obtaining a first target IP bound to the target C&C domain name from a domain name system database;
[0220] When the target C&C domain name is in a non-survival state and the target C&C domain name has been used, obtaining a first target IP bound to the target C&C domain name from a domain name system database;
[0221] When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is activated within a preset period, obtaining a first target IP bound when the target C&C domain name is activated;
[0222] When the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is not activated within a preset period, a second target IP for requesting a DNS service for the target C&C domain name within the preset period is obtained.
[0223] Optionally, the processor 410 is further used to: determine, based on a domain name system DNS database, a first IP set requesting to query the target C&C domain name and a first domain name set already used by the first target IP; and match the first domain name set with a blacklist database.
[0224] Optionally, the processor 410 is further configured to: when the first domain name set successfully matches the blacklist database, determine that the target C&C domain name is a domain name to be blocked.
[0225] Optionally, when the processor 410 verifies the target C&C domain name according to the family homology of the first domain name set, it is specifically configured to:
[0226] Determining whether the domain names in the first domain name set meet family homology conditions according to family characteristics of the domain name family;
[0227] When a domain name in the first domain name set meets the family homology condition, determining the target C&C domain name as a domain name to be blocked;
[0228] When there is at least one domain name in the first domain name set that does not satisfy the family homology condition, the target C&C domain name is verified according to the network traffic quintuple information.
[0229] Optionally, the family homology condition includes:
[0230] The domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
[0231] Optionally, when there is at least one domain name in the first domain name set that does not satisfy the family homology condition, the processor 410 verifies the target C&C domain name according to the network traffic quintuple information, specifically for:
[0232] Monitoring, based on the five-tuple information, traffic behavior of a first IP set requesting to query the target C&C domain name;
[0233] When abnormal traffic behavior is detected in the first IP set, determining the target C&C domain name as a domain name to be blocked;
[0234] When it is monitored that the first IP set does not have abnormal traffic behavior, it is determined that the target C&C domain name is a false positive domain name.
[0235] Optionally, when the IP includes the second target IP, the processor verifies the target C&C domain name according to the number of the second target IP, specifically for:
[0236] When the number of the second target IPs reaches a preset threshold, the target C&C domain name is determined to be a domain name to be blocked, otherwise, the target C&C domain name is determined to be a false positive domain name.
[0237] Optionally, the transceiver 420 is further used to: perform model detection on a domain name system DNS log to obtain the target C&C domain name and domain name family.
[0238] It should be noted that the above-mentioned electronic device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned command and control C&C domain name verification method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0239] An electronic device according to another embodiment of the present invention, such as Figure 5As shown, it includes a transceiver 510, a processor 500, a memory 520, and a program or instruction stored in the memory 520 and executable on the processor 500; when the processor 500 executes the program or instruction, the verification method for command and control C&C domain name is implemented.
[0240] The transceiver 510 is used to receive and send data under the control of the processor 500 .
[0241] Among them, Figure 5 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 500 and memory represented by memory 520. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 510 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.
[0242] The processor 500 is responsible for managing the bus architecture and general processing, and the memory 520 can store data used by the processor 500 when performing operations.
[0243] A readable storage medium according to an embodiment of the present invention stores a program or instruction thereon. When the program or instruction is executed by a processor, the steps in the command and control C&C domain name verification method as described above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0244] The processor is the processor in the verification method of the command and control C&C domain name described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0245] It should be further explained that the electronic devices described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.
[0246] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0247] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0248] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0249] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0250] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for verifying a command and control C&C domain name, characterized in that: include: Determine the survival status of the target C&C domain name to be verified; the target C&C domain name includes a suspected malicious domain name detected by a machine learning algorithm model; According to the survival status, obtaining an Internet protocol IP corresponding to the target C&C domain name, the IP including: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name; When the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database, verifying the target C&C domain name according to the family homology of the first domain name set; In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
2. The method according to claim 1, characterized in that Determining the survival status of the target C&C domain name to be verified includes: Determine whether the target C&C domain name has a bound IP according to the Domain Name System (DNS) database; If the target C&C domain name has a bound IP, it is determined that the target C&C domain name is in a live state; if the target C&C domain name has no bound IP, it is determined that the C&C domain name is in a non-live state.
3. The method according to claim 1, characterized in that The obtaining, according to the survival status, an Internet protocol IP corresponding to the target C&C domain name, includes the following: When the target C&C domain name is alive, obtaining a first target IP bound to the target C&C domain name from a domain name system database; When the target C&C domain name is in a non-survival state and the target C&C domain name has been used, obtaining a first target IP bound to the target C&C domain name from a domain name system database; When the target C&C domain name is in a non-survival state, the target C&C domain name is not in use, and the target C&C domain name is activated within a preset period, obtaining a first target IP bound when the target C&C domain name is activated; When the target C&C domain name is in a non-survival state, the target C&C domain name is not used, and the target C&C domain name is not activated within a preset period, a second target IP for requesting a DNS service for the target C&C domain name within the preset period is obtained.
4. The method according to claim 1, characterized in that In the case where the IP includes the first target IP, before verifying the target C&C domain name according to the family homology of the first domain name set, the method further includes: Determine, according to a domain name system DNS database, a first IP set requesting to query the target C&C domain name and a first domain name set already used by the first target IP; The first domain name set is matched with a blacklist database.
5. The method according to claim 4, characterized in that The method further comprises: When the first domain name set successfully matches the blacklist database, the target C&C domain name is determined to be a domain name to be blocked.
6. The method according to claim 1, characterized in that The verifying the target C&C domain name according to the family homology of the first domain name set includes: Determining whether the domain names in the first domain name set meet family homology conditions according to family characteristics of the domain name family; When a domain name in the first domain name set meets the family homology condition, determining the target C&C domain name as a domain name to be blocked; When there is at least one domain name in the first domain name set that does not satisfy the family homology condition, the target C&C domain name is verified according to the network traffic quintuple information.
7. The method according to claim 6, characterized in that The family homologous conditions include: The domain names in the first domain name set are in the family where the target C&C domain name is located, and the survival time of each domain name in the first domain name set is in the same interval.
8. The method according to claim 6, characterized in that When there is at least one domain name in the first domain name set that does not meet the family homology condition, verifying the target C&C domain name according to the network traffic quintuple information includes: Monitoring, based on the five-tuple information, traffic behavior of a first IP set requesting to query the target C&C domain name; When abnormal traffic behavior is detected in the first IP set, determining the target C&C domain name as a domain name to be blocked; When it is monitored that the first IP set does not have abnormal traffic behavior, it is determined that the target C&C domain name is a false positive domain name.
9. The method according to claim 1, characterized in that: In a case where the IP includes the second target IP, verifying the target C&C domain name according to the number of the second target IP includes: When the number of the second target IPs reaches a preset threshold, the target C&C domain name is determined to be a domain name to be blocked, otherwise, the target C&C domain name is determined to be a false positive domain name.
10. The method according to claim 1, characterized in that The method further comprises: Model detection is performed on the domain name system DNS log to obtain the target C&C domain name and domain name family.
11. A command and control C&C domain name verification device, characterized in that: include: A first determination module is used to determine the survival status of a target C&C domain name to be verified; the target C&C domain name includes a suspected malicious domain name detected by a machine learning algorithm model; A first acquisition module is used to acquire an Internet protocol IP corresponding to the target C&C domain name according to the survival status, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name; A first verification module, configured to verify the target C&C domain name according to the family homology of the first domain name set when the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database; In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
12. An electronic device, characterized in that: include: transceivers and processors; The processor is used to: determine the survival status of the target C&C domain name to be verified; the target C&C domain name includes a suspected malicious domain name detected by a machine learning algorithm model; The transceiver is used to: obtain an Internet protocol IP corresponding to the target C&C domain name according to the survival status, wherein the IP includes: a first target IP bound to the target C&C domain name or a second target IP requesting a domain name system DNS service for the target C&C domain name; The processor is further configured to: verify the target C&C domain name according to the family homology of the first domain name set when the IP includes the first target IP and the first domain name set bound to the first target IP fails to match the blacklist database; In the case that the IP includes the second target IP, the target C&C domain name is verified according to the number of the second target IP.
13. An electronic device comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; characterized in that when the processor executes the program or instruction, the method for verifying the command and control C&C domain name as described in any one of claims 1-10 is implemented.
14. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by the processor, the steps in the command and control C&C domain name verification method as described in any one of claims 1 to 10 are implemented.
