This application claims the priority benefit of Taiwan application serial no. 99134925, filed on Oct. 13, 2010. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of specification.
1. Field of the Invention
The invention relates to a method for processing a network event and a related system. Particularly, the invention relates to a method for detecting a network intrusion event and a related system.
2. Description of Related Art
In today's information age, computers all over the world can be connected through the Internet, and enterprises or individuals generally use the Internet to transmit or access data. However, with popularity of the Internet, network attacks are rapidly increased, so that network security gradually draws attention. In a well-known network security mechanism, an intrusion detection system (IDS) plays an important role. The IDS is mainly used to surveille network or system events, and classifies the events into attack events or non-attack events according to pre-established rules. When an attack event is surveilled, besides sending a warning message to a network administrator, the system may also take a necessary measure to deal with the attack event, such as block a source Internet protocol (IP). Therefore, an excellent IDS can effectively enhance security of the network system.
Generally, a conventional IDS can establish classifying rules according to a batch offline learning method. However, when a new type of attack event is encountered, re-batch offline learning is required. Now, the IDS has to be offline and stops detecting, and the new type of attack event has to be added to original sample events, and then all of the events are relearned, and a whole rule database is re-established.
The invention is directed to an intrusion detecting system and a method for establishing classifying rules thereof, by which the classifying rules for detecting intrusion events can be adjusted in real-time.
The invention provides a method for establishing classifying rules of an intrusion detecting system, which includes the following steps. First, at least one decision tree is provided. Internal nodes of the decision tree respectively represent an attribute judgment condition, and leaf nodes of the decision tree respectively represent an attack event or a non-attack event. Next, a plurality of attribute data of at least one new attack event is received. Then, a tree structure of the decision tree is adjusted according to the attribute data. Afterwards, at least one attack rule or at least one non-attack rule is outputted according to the adjusted decision tree.
In an embodiment of the invention, the step of adjusting the tree structure of the decision tree includes adjusting the tree structure of the decision tree according to an incremental tree induction method.
In an embodiment of the invention, before the step of adjusting the tree structure of the decision tree, the method for establishing classifying rules of the intrusion detecting system further includes normalizing the attribute data into a plurality of numerical data, wherein the numerical data are greater than or equal to 0 and are smaller than or equal to 1.
In an embodiment of the invention, before the step of adjusting the tree structure of the decision tree, the method for establishing classifying rules of the intrusion detecting system further includes finding the decision tree corresponding to the new attack event according to a clustering algorithm, so as to adjust the decision tree corresponding to the new attack event.
In an embodiment of the invention, before the step of adjusting the tree structure of the decision tree, the method for establishing classifying rules of the intrusion detecting system further includes selecting at least one significant attribute data from the attribute data according to a significant attribute list, so as to execute the clustering algorithm according to the significant attribute data.
In an embodiment of the invention, the step of providing the decision tree includes learning a plurality of training events in batch and online real-time to establish the decision tree.
The invention provides an intrusion detecting system including a decision tree module, a preprocessing module, a clustering module, an adjustment module, a rule output module and an attack rule database. The decision tree module is used for storing at least one decision tree. Internal nodes of the decision tree respectively represent an attribute judgment condition, and leaf nodes of the decision tree respectively represent an attack event or a non-attack event. The preprocessing module is used for receiving a plurality of attribute data of at least one new attack event. The clustering module is used for clustering similar attribute data in a same group. The adjustment module is used for adjusting a tree structure of the decision tree according to the attribute data. The rule output module is used for outputting at least one attack rule or at least one non-attack rule according to the adjusted decision tree. The attack rule database is used for storing the attack rule or the non-attack rule.
In an embodiment of the invention, the intrusion detecting system further includes a clustering module. The clustering module finds the decision tree corresponding to the new attack event according to a clustering algorithm, so as to adjust the decision tree corresponding to the new attack event.
In an embodiment of the invention, the intrusion detecting system further includes a significant attribute list module for storing a significant attribute list. The clustering module selects at least one significant attribute data from the attribute data according to the significant attribute list, so as to execute the clustering algorithm according to the significant attribute data.
In an embodiment of the invention, the intrusion detecting system further includes a warning message generating module and a warning message database. The warning message generating module is used for sending a warning message according to the attack rule database when being under attack. The warning message database is used for storing the warning message.
According to the above descriptions, the tree structure of the decision tree can be adjusted according to the new attack event, so as to correspondingly output the attack or non-attack rule. Therefore, the rules for intrusion detection can be updated in real-time without relearning all of the samples, so that a capability for intrusion detection is improved.
In order to make the aforementioned and other features and advantages of the invention comprehensible, several exemplary embodiments accompanied with figures are described in detail below.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
It should be noticed that when a new type of attack event is discovered, as long as the decision tree is adjusted according to the new type of attack event, the classifying rules can be updated in real-time online without relearning all of training samples offline.
Referring to
Referring to
Then, in step S240, the clustering module 270 selects at least one significant attribute data from the attribute data according to the significant attribute list, so as to execute the clustering algorithm according to the significant attribute data for grouping. Namely, the attack events or the normal events of similar services or the same service (for example, a HTTP service) are grouped into a same group. In the present embodiment, significant attributes of known attacks can be artificially defined in the significant attribute list. In the significant attribute list, 0 represents an insignificant attribute, and the clustering module 270 neglects the insignificant attribute without processing; 1 represents a significant attribute, and the clustering 270 processes the significant attribute, and calculates a distance of each event attribute, so as to cluster the events of similar distance into the same group.
Then, in step S250, the clustering module 270 finds a decision tree corresponding to the new attack event according to the clustering algorithm. Then, in step S260, an adjustment module 230 adjusts a tree structure of the decision tree corresponding to the new attack event according to an incremental tree induction method. In another embodiment that is not illustrated, the tree structure of the decision tree can also be adjusted according to a concept of a height balanced binary search tree (AVL-tree). Then, in step S270, a rule output module 240 outputs at least one attack rule or at least one non-attack rule to the attack rule database 250 according to the adjusted decision tree.
Then, in step S340, the adjustment module 230 generates decision trees corresponding to the groups according to the attribute data of the attack events and the normal events of different groups. Then, in step S350, the rule output module 240 outputs at least one attack rule or at least one non-attack rule to the attack rule database 250 according to the decision trees corresponding to different groups.
In summary, in the invention, the clustering method is first used to cluster the similar events in a same group, and then the decision tree is updated according to the new attack event. In this way, relearning of the whole system is unnecessary even if more severe attacks such as user to root attacks and remote to local attacks are appeared.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
99134925 | Oct 2010 | TW | national |