This application claims priority of Taiwan Patent Application No. 099101730 filed on Jan. 22, 2010, the entirety of which is incorporated by reference herein.
1. Technical Field
The application relates to fast-flux domain name system (DNS) attacks, and more particularly, to network attack detection devices and methods for detecting a fast-flux domain name system attack.
2. Related Art
In 2007, a fast-flux domain name system (DNS) attack was discovered. The fast-flux domain name system (DNS) attack is different from conventional attacks because the fast-flux domain name system (DNS) attack can evade conventional blacklist mechanisms and can extend the time allotted for hacking. Fast-flux domain name system (DNS) attacks are mostly used by Botnet for malicious behavior such as spamming, phishing and malicious file download etc.
Current fast-flux domain name system (DNS) attack detection methods, detect fast-flux domain name system (DNS) attacks according to time delay information. Accordingly, when applied, delay detection problems may occur.
There are two types of fast-flux domain name system (DNS) attack detection methods which are based on different temporal characteristics. One is based on the information of internet protocol addresses. For example, there is a 99% accuracy rate when using the method, applying time to live (TTL) time differences, such as an autonomous system number (ASN), which correspond to internet protocol addresses and an AI method for automatic detection. However, delay detection problems occur.
The second method is based on the information of domain name systems (DNS) and internet protocol addresses. Since the TTL time of most malicious attacks is below three hours, accuracy rate may be increased by applying information of domain name systems, such as the application time of a domain name. The detection time is determined according to the TTL time of every domain name, and the waiting time is 1-3 hours. In addition, there is a 99% accuracy rate when also adding a naive Bayes classifier for automatic detection. However, delay detection problems also occur.
One aspect of the invention is to provide a network attack detection device for detecting a fast-flux domain name system attack, comprising: a spatial coordinate database for storing spatial coordinate data; a standard time zone database for storing standard time zone data; a domain name system packet collector for collecting a domain name system packet; a spatial snapshot feature extractor for extracting a plurality of internet protocol addresses corresponding to the domain name system packet according to the domain name system packet, and generating spatial feature data corresponding to the internet protocol addresses according to the internet protocol addresses, the spatial coordinate data and the standard time zone data; and an attack detector for determining whether the domain name system packet is an attack according to the spatial feature data and a spatial snapshot detection model, and when determining that the domain name system packet is an attack, sending a warning to indicate the attack, wherein the spatial feature data comprises time zone coordinate data and scatter degree data.
Another aspect of the invention is to provide a network attack detection method for detecting a fast-flux domain name system attack, comprising: collecting a domain name system packet; extracting a plurality of internet protocol addresses corresponding to the domain name system packet according to the domain name system packet; generating spatial feature data corresponding to the internet protocol addresses according to the internet protocol addresses, spatial coordinate data and standard time zone data; and determining whether the domain name system packet is an attack according to the spatial feature data and a spatial snapshot detection model, and when determining that the domain name system packet is an attack, sending a warning to indicate the attack, wherein the spatial feature data comprises time zone coordinate data and scatter degree data.
The advantage and spirit of the application may be better understood by the following recitations and the appended drawings.
The application can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
The following description could be a contemplated mode of carrying out the application. This description is made for the purpose of illustrating the general principles of the application and should not be taken in a limiting sense. The scope of the application is best determined by reference to the appended claims.
For example, as shown in
The spatial coordinate database 500 stores spatial coordinate data, wherein the spatial coordinate data is data which comprises correspondence information between the internet protocol addresses and the spatial geographical coordinates. Therefore, an internet protocol address only corresponds to a longitude and latitude of a spatial geographical coordinate. As shown in
The standard time zone database 600 in the network attack detection device 10 stores standard time zone data, wherein the standard time zone data is data which comprises correspondence information between the spatial geographical coordinates and the time zone coordinate data. For example, the spatial geographical coordinate of the known interne protocol address (A1) is longitude 37.356 and latitude 128.896, and the time zone coordinate data corresponding to longitude 37.356 and latitude 128.896 is obtained according to the standard time zone data stored in the standard time zone database 600.
The spatial snapshot feature extractor 700 extracts the first internet protocol address group in the answer section and the second Internet protocol address group in the authority section corresponding to the domain name system packet DNSPa according to the domain name system packet DNSPa. The spatial snapshot feature extractor 700 generates the spatial feature data corresponding to the domain name system packet DNSPa according to the first internet protocol address group and the second internet protocol address group, the spatial coordinate data stored in the spatial coordinate database 500 and the standard time zone data stored in the standard time zone database 600, wherein the spatial feature data comprises time zone coordinate data and scatter degree data.
The spatial snapshot feature attack detector 800 determines whether the domain name system packet DNSPa is an attack or not according to the spatial feature data and a spatial snapshot detection model DM generated by the spatial snapshot profiling mode module 20. For example, the spatial snapshot feature attack detector 800 determines probability as to whether the domain name system packet DNSPa is an attack or is normal, and then determines whether the domain name system packet DNSPa is an attack or not according to the probabilities. When the domain name system packet DNSPa is an attack, a warning is output to indicate the attack. The warning database 900 receives the warning, wherein the warning comprises the spatial feature data of the domain name system packet corresponding to the attack and packet data such that network managers may use and analyze the data.
The spatial snapshot profiling mode module 20 in the network attack detection device 10 generates and provides the spatial snapshot detection model DM to the spatial snapshot feature attack detector 800 to determine whether the domain name system packet DNSPa is an attack. The spatial snapshot profiling mode module 20 comprises a spatial snapshot labeled DNS database 100, a spatial snapshot detection model constructor 200 and a spatial snapshot detection modeler 300.
The spatial snapshot labeled DNS database 100 stores a plurality of known DNS spatial feature data which is provided by an expert or detection result of the system. The spatial snapshot detection model DM is mainly profiled according to the data. The spatial snapshot detection model constructor 200 generates a dependence graph and conditional probability parameters corresponding to the known DNS spatial feature data according to the known DNS spatial feature data. The spatial snapshot detection modeler 300 generates the spatial snapshot detection model DM according to the dependence graph and the conditional probability parameters. Thus, the spatial snapshot detection model DM has a joint probability distribution table of the parameters of the spatial feature data.
Furthermore, the spatial snapshot detection model constructor 200 comprises a spatial snapshot dependence graph constructor 2001 and a spatial snapshot dependence graph parameter estimator 2002. The spatial snapshot dependence graph constructor 2001 generates the dependence graph corresponding to the known DNS spatial feature data according to the known DNS spatial feature data. The spatial snapshot dependence graph parameter estimator 2002 generates the conditional probability parameters according to the dependence graph and the known DNS spatial feature data. Then the dependence graph and the conditional probability parameters are output to the spatial snapshot detection modeler 300 to generate the spatial snapshot detection model DM.
The internet protocol address extractor 7001 extracts the internet protocol addresses in an answer section and the authority section corresponding to the domain name system packet DNSPa according to the domain name system packet DNSPa. For example, the first internet protocol address group of the answer section in the domain name system packet DNSPa and the second internet protocol address group of the authority section in the domain name system packet DNSPa are extracted, as shown in the
The spatial address finding agent 7002 generates spatial geographical coordinates corresponding to the internet protocol addresses according the internet protocol addresses and the spatial coordinate data. For example, a first spatial geographical coordinate group and a second spatial geographical coordinate group corresponding to the first internet protocol address group of the answer section in the domain name system packet DNSPa and second internet protocol address group of the authority section in the domain name system packet DNSPa, respectively, are located, as shown in the
The time zone distribution estimator 7003 generates the time zone coordinate data corresponding to the spatial geographical coordinates according to the spatial geographical coordinates and the standard time zone data. For example, the first spatial geographical coordinate group corresponds to the first time zone coordinate group and the second spatial geographical coordinate group corresponds to the second time zone coordinate group, and time zone distribution of the first time zone coordinate group and the second time zone coordinate group is estimated by information theory. Time zone entropy provides spatial distribution quantification. As shown in the
Therefore, the entropy value of the answer section is obtained for the spatial distribution of the first spatial geographical coordinate group and the entropy value of the authority section is obtained for the spatial distribution of the second spatial geographical coordinate group. The time zone coordinate data is output to the spatial snapshot feature attack detector 800, wherein the time zone coordinate data comprises the entropy value of the answer section and the entropy value of the authority section.
The spatial service relationship estimator 7004 estimates variance and an average of spatial service relationship distances according to the first spatial geographical coordinate group and the second spatial geographical coordinate group to generate the scatter degree data, wherein the spatial service relationship distance is defined as the shortest distance between one of the first spatial geographical coordinate groups and all of second spatial geographical coordinate groups. As shown in the
Therefore, the variance and average of the spatial service relationship distances MSD1 and MSD2 may be obtained. The scatter degree data is obtained according to the variance and an average of spatial service relationship distances MSD1 and MSD2. In other words, the variance and average are the scatter degree data, and then the scatter degree data is output to the spatial snapshot feature attack detector 800.
Therefore, the spatial service relationship distance MSD1 is defined as the distance between the internet protocol address (A1) and internet protocol address (NS1) and the spatial service relationship distance MSD2 is defined as the distance between the internet protocol address (A2) and internet protocol address (NS3).
With the example and explanations above, the features and spirit of the application are hopefully well described. Those skilled in the art will readily observe that numerous modifications and alterations of the embodiments may be made while retaining the teachings of the application. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
099101730 | Jan 2010 | TW | national |