APPARATUS AND METHOD FOR SAMPLING SECURITY EVENT BASED ON CONTENTS OF THE SECURITY EVENT

There are provided an apparatus and method for sampling a security event based on contents of the security event, the apparatus including: a security event accumulation module collecting security events occurring in a network system and storing the security events for each type according to contents of the security event; a security event analysis module calculating distribution of the security events for each type by analyzing the stored security events; and a security event extraction module sampling the stored security events according to the calculated distribution of the security events for each type. The apparatus and method may improve speed of visualization of a security event and a security event analysis apparatus and may increase accuracy thereof.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
TECHNICAL FIELD

The present invention relates to a security event sampling apparatus and method to protect characteristic information of security events, and more particularly, to an apparatus and method for sampling a security event received from a network system by using contents of the security event to protect characteristic information of the security event.

The work related to the present invention was partly supported by the IT R&D program of MIC/IITA [2005-S-022-01, Title: The Development of Smart Monitoring and Tracing System against Cyber-attack in AII-IP Network].

BACKGROUND ART

Recently, as sampling methods used in collecting and analyzing security events on a network, there are a systematic sampling method extracting security events at regular intervals, a random sampling method randomly extracting a security event from security events, and a stratified random sampling method dividing security events into homogeneous layers and randomly extracting from the homogeneous layers.

In association with this, there is Korean Patent Application No. 10-2005-032363 entitled An apparatus for capturing Internet Protocol (IP) packet with sampling and signature searching function, and a method thereof, which embodies sampling function and signature searching function in hardware and supports periodical sampling, random sampling, and Hash-based sampling to improve performance of sampling. However, there is still a problem of distortions of content characteristics of security events before and after sampling.

Generally, contents of security events include a source Internet protocol (IP) address, a destination IP address, a source port, a destination port, and a protocol. Distribution of information included in the contents of the security events becomes important characteristics to determine a security state of a network.

Also, cyber attacks presently performed on a network use a method of fixing both of a source port and a destination port, a method of fixing a source port and randomly varying a destination port, and a method of randomly varying both of a source port and a destination port. Accordingly, distribution of a relation between a source port and a destination port plays an important role in analyzing and visualizing a cyber attack state.

Since security events are sampled without using content characteristic information of the security events in conventional sampling methods, content characteristics of security events after sampling become different from content characteristics of security events prior to sampling. That is, when sampling without using contents of security events, information on distribution of a relation between a source port and destination port is damaged, thereby deteriorating performance of a network visualization and analysis apparatus.

DISCLOSURE OF INVENTION Technical Problem

An aspect of the present invention provides a security event sampling apparatus and method capable of maintaining content characteristic information of security events prior to sampling and content characteristic information after the sampling to be identical without change when sampling security events received from network systems existing on a network.

Technical Solution

According to an aspect of the present invention, there is provided an apparatus for sampling a security event based on contents of the security event, the apparatus including: a security event accumulation module collecting security events occurring in a network system and storing the security events for each type according to contents of the security event; a security event analysis module calculating distribution of the security events for each type by analyzing the stored security events; and a security event extraction module sampling the stored security events according to the calculated distribution of the security events for each type.

The apparatus may further include a security event storage unit having a plurality of storage areas storing the security events for each type.

The apparatus may further include a sampling ratio determination module determining a sampling ratio in proportion to processing performance of a system and an average number of received security events per second for a set T amount of time.

According to another aspect of the present invention, there is provided a method of sampling a security event based on contents of the security event, the method including: collecting security events occurring in a network system; classifying and storing the security events for each type according to a relation between a source port and a destination port of contents of the collected security event; analyzing the number of the security events stored for each type and calculating a port relation distribution; and sampling the security event by using the calculated port relation distribution.

The method may further include determining a sampling ratio of the security event by comparing the set maximum number of the processed the security events for each stage and an average number of security events received per second for a T amount of time, before the calculating the port relation distribution.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a configuration diagram illustrating an apparatus for sampling a security event based on contents of the security event, according to an exemplary embodiment of the present invention;

FIG. 2 is a flowchart illustrating a method of sampling a security event based on contents of the security event, according to an exemplary embodiment of the present invention;

FIG. 3 is a flowchart illustrating an algorithm of determining a sampling ratio of a sampling ratio determination module 120 according to an exemplary embodiment of the present invention; and

FIG. 4 is a flowchart illustrating a process of calculating content relation distribution with respect to security events stored for each type in an event analysis module 130 according to an exemplary embodiment of the present invention.

BEST MODE FOR CARRYING OUT THE INVENTION

Hereinafter, exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

Only, in describing operations of the exemplary embodiments in detail, when it is considered that a detailed description on related well-known functions or constitutions unnecessarily may make essential points of the present invention be unclear, the detailed description will be omitted.

In the drawings, the same reference numerals are used throughout to designate the same or similar components.

Throughout the specification, when it is describe that a part is “connected to” another part, this includes not only a case of “being directly connected to” but also a case of “being electrically connected to” interposing another device therebetween.

Also, when it is described that an apparatus “includes” an element while there is no opposite description thereof, this is not designate that the apparatus excludes other elements but designates that the apparatus may further include other elements.

The term of “module” indicates a unit for processing a certain function or operation, which can be embodied by software, hardware, or a combination of software and hardware.

FIG. 1 is a diagram illustrating an apparatus for sampling security events based on contents of the security events, according to an exemplary embodiment of the present invention.

Referring to FIG. 1, the apparatus includes a security event storage unit 100, a security event accumulation module 110, a sampling ratio determination module 120, a security event analysis module 130, and a security event extraction module 140.

The security event accumulation module 110 collects security events generated from a network system existing in a network, classifies contents of the collected security events for each type, and stores in respective memories 101 to 104 of the event security storage unit 100.

That is, in the respective memories 101 to 104 of the security event storage unit 100, there are stored only security events corresponding to four types classified by the security event analysis module 130 according to a port relation between a source port and a destination port in the contents.

In this case, contents of a security event include a source Internet Protocol (IP) address, a source port, a destination IP address, a destination port, and a protocol. The contents are important to determine a security state of a network.

Accordingly, in the present invention, there is used port relation distribution where security events are classified for each port relation between the source port and the destination port in the contents of the security event. Also, instead of the port relation distribution, there may be used IP address relation distribution where IP addresses are classified for each country or domain.

Also, the sampling ratio determination module 120 determines a sampling ratio by comparing an average number of security events received per second for a preset T amount of time with a maximum number of processed security events, which is previously defined security event processing performance of a system for each stage. A process of determining the sampling ratio by the sampling ratio determination module 120 will be described in detail with reference to FIG. 3.

The security event analysis module 130 calculates port relation distribution by analyzing a number of security events stored in the respective memories 101 to 104. That is, the security event analysis module 130 calculates the port relation distribution by calculating an existence ratio of the number of security events stored in the respective memories 101 to 104 with respect to a number of overall security events.

Also, the security event analysis module 130 sets and previously defines a type of a security event according to a port relation between a source port and a destination port in contents of the security event in such a way that the security event accumulation module 110 stores the security events in a plurality of storage areas in the security event storage unit 100. A process of calculating the port relation distribution by the security event analysis module 130 will be described in detail with reference to FIG. 4.

The security event extraction module 140 extracts and samples security events by using the sampling ratio determined by the sampling ratio determination module 120 and the port relation distribution calculated by the security event analysis module 130 and transmits the sampled security events.

FIG. 2 is a flowchart illustrating a method of sampling a security event based on contents of the security event, according to an exemplary embodiment of the present invention.

Referring to FIG. 2, the security event accumulation module 110 collects security events from network systems present in a network (S100).

The security event accumulation module 110 classifies the security events for each type according to a port relation between a source port and destination port in contents of the collected security event and stores in respective memories 101 to 104 of the security event storage unit 100.

In this case, each type of security events stored in each of the memories 101 to 104 of the security event storage unit 100 is previously defined by the security event analysis module 130. For example, based on well-known 1024th port, there are four types in the port relation between a source port and destination port.

Instead of the well-known 1024 port, a security event type may be defined by classifying IP addresses for each country or domain.

The sampling ratio determination module 120 determines a sampling ratio of the security events by comparing an average number A of received security events per second for a T amount of time set by a user with a maximum number of processing security events, which is previously defined security event processing performance of a system for each of a plurality of stages (S120).

The security event analysis module 130 calculates port relation distribution of the security event by analyzing a number of security events for each type stored in each of the memories 101 to 104 of the security event storage unit 100 (S130).

The security event extraction module 140 samples the security events stored in the security event storage unit 100 by using the sampling ratio determined by the sampling ratio determination module 120 and the port relation distribution calculated by the security event analysis module 130 (S140).

On the other hand, in the present invention, the sampling ratio may be fixed without performing S120.

FIG. 3 is a flowchart illustrating the process where the sampling ratio determination module 120 determines the sampling ratio by comparing the average number of received security events per second for a T amount of time with the maximum number of processing security events, which is the previously defined security event processing performance of the system for each stage.

To sample suitably for system performance, a maximum number of security events capable of being processed for each stage of security event processing performance of the system is defined. An initial value of the maximum number P of presently processing security events in the system is a maximum number of Pt of processing security events at a t stage corresponding to present processing performance of the system (P=R*Pt, R is a constant).

As described above, in a state where a maximum number of security events for each processing performance of the system is determined, when collecting a number of security events is finished, the sampling ratio determination module 120 calculates the average number A of the received security events per second for the T amount of time set by the user by using a number of security events received per second (S200).

After that, it is checked whether the average number A of the received security events per second is greater than the maximum number of Pt presently set in the system (P=R*Pt, R is a constant) (S210).

As a result of the checking in S210, when the average number A of the received security events per second is identical to or greater than the maximum number of processing security events (P=R*Pt, R is a constant), the sampling ratio is increased by increasing from at stage to a t+1 stage among stages defining processing performance of a system. In addition, a maximum number of processing security events in a present system is increased to a t+1 stage.

Accordingly, a sampling ratio S of the present system and a maximum number P of processing security events are adjusted to K*St+1 and K*Pt+1 (K is a constant) (S220).

On the other hand, as a result of S210, when the average number A of the received security events per second is not identical to nor greater than a present maximum number of processing security events (P=R*Pt, R is a constant), it is checked whether the average number A of the received security events per second is close to a maximum number (Pt−1) of processing security events corresponding to a t−1 stage lower than the present t stage (S230).

As a result of the checking in S230, when the average number A of the received security events is smaller than the maximum number Pt−1 of processing security events at the t−1 stage, an adjacent stage is searched by comparing each of maximum numbers Pt−2, Pt−3, . . . , and Pt−n stored in each of stages t−2, t−3, . . . , and t−n, substitute t=t−1) with the average number A of the received security events while decreasing a level of a stage (S240).

As a result of the searching in S240, when the average number A of the received security events gets close to the maximum number Pt−n of processing security events at the t−n stage, the sampling ratio S of the present system and the maximum number P of processing security events are changed into S=K*St−n, P=K*Pt−n (K is a constant) to be suitable for the close t−n stage (S250).

According to this, a suitable sampling ratio is set to processing performance of the present system.

FIG. 4 is a flowchart illustrating a detailed process where the security event analysis module 130 calculates relation distribution by analyzing a number of security events stored in each of the memories 101 to 104 of the security event storage unit 100.

Generally, there are shown a lot of network attacks in a type of randomly varying a source port or a destination port smaller than 1024 port and well-known or randomly varying both of the source port and destination port while performing the network attack.

Also, since most of cases when both of the source port and the destination port are smaller than the well-known 1024 port are normal network traffics, it becomes very important characteristics whether both of the source port and the destination port are well-known and smaller than 1024 port.

Accordingly, the security event analysis module 130 defines a type of a security event based on 1024 port as one of following four types.

(1) a case where both of a source port and destination port are smaller than 1024 port

(2) a case where a source port is smaller than 1024 port and a destination port is greater than 1024 port

(3) a case where a source port is greater than 1024 port and a destination port is smaller than 1024 port

(4) a case where both of a source port and destination port are greater than 1024 port

Accordingly, the security event accumulation module 110 classifies received security events according to the four types defined as described above and stores the security events in the respective memories 101 to 104 of the security event storage unit 100.

Then, the security event analysis module 130 analyzes a number of security events for each type present in the four memories 101 to 104 of the security event storage unit 100 (S300), calculates an existence ratio of the number of security events for each type with respect to a number of overall security events (S310), and calculates port relation distribution X (S320).

For example, when there are security events corresponding to four types such as (1), (2), (3), and (4) in four memories of the security event storage unit 100 as 10, 20, 40, and 30, respectively, since port relation distribution X of the security events is an existence ratio (10/100, 20/100, 40/100, and 30/100) of each of the types with respect to a number of overall security events (10+20+40+30=100), the port relation distribution X becomes {0.1, 0.2, 0.4, and 0.3}.

Accordingly, as a result of calculating the port relation distribution X, since a number of the security events of (3) type is largest, sampling is performed in such a way that a number of the security events of (3) types is largest when transmitting the security events after sampling.

The invention can also be embodied as computer readable codes on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system.

Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet).

The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

Also, functional programs, codes, and code segments for accomplishing the present invention can be easily construed by programmers skilled in the art to which the present invention pertains.

While the present invention has been shown and described in connection with the exemplary embodiments, it will be apparent to those skilled in the art that modifications and variations can be made without departing from the spirit and scope of the invention as defined by the appended claims.

Claims

1. An apparatus for sampling a security event based on contents of the security event, the apparatus comprising:

a security event accumulation module collecting security events occurring in a network system and storing the security events for each type according to contents of the security event;
a security event analysis module calculating distribution of the security events for each type by analyzing the stored security events; and
a security event extraction module sampling the stored security events according to the calculated distribution of the security events for each type.

2. The apparatus of claim 1, wherein the contents of the security event comprises a source Internet Protocol (IP) address, a destination IP address, a source port, a destination port, and a protocol.

3. The apparatus of claim 1, further comprising a security event storage unit having a plurality of storage areas for storing the security events for each type.

4. The apparatus of claim 3, wherein the security event analysis module analyzes a number of the security events stored in the plurality of storage areas, obtains an existence ratio of the security events for each type stored in each of the plurality of storage areas with respect to the entire security events, and calculates port relation distribution.

5. The apparatus of claim 4, wherein the security events for each type are classified into four types based on 1024 port with respect to the source port and destination port of the contents.

6. The apparatus of claim 5, wherein the four types are a case where both of the source port and destination port of the contents are smaller than 1024 port, a case where the source port is smaller than 1024 port and the destination port is greater than 1024 port, a case where the source port is greater than 1024 port and the destination port is smaller than 1024 port, and a case where both of the source port and the destination port are greater than 1024 port.

7. The apparatus of claim 4, wherein the security events for each type are classified according to references set with respect to the source IP address and the destination IP address of the contents.

8. The apparatus of claim 1, further comprising a sampling ratio determination module determining a sampling ratio in proportion to processing performance of a system and an average number of received security events per second for a set T amount of time.

9. The apparatus of claim 8, wherein the sampling ratio determination module compares the average number of the received security events per second for the set T amount of time with a previously defined maximum number of processing the security events for each stage, obtains a maximum number of processing the security events of an adjacent stage, and controls the sampling ratio to be corresponding to the obtained maximum number of processing the security events of the stage.

10. The apparatus of claim 9, wherein the security event extraction module samples the security events by using the distribution of the security events for each type calculated by the security event analysis module and the sampling ratio determined by the sampling ratio determination module.

11. A method of sampling a security event based on contents of the security event, the method comprising:

collecting security events occurring in a network system;
classifying and storing the security events for each type according to a relation between a source port and a destination port of contents of the collected security event;
analyzing a number of the security events stored for each type and calculating a port relation distribution; and
sampling the security event by using the calculated port relation distribution.

12. The method of claim 11, wherein, in the classifying and storing the security events for each type, the types of the security events are divided, based on 1024 port, into a case where both of the source port and destination port of the contents are smaller than 1024 port, a case where the source port is smaller than 1024 port and the destination port is greater than 1024 port, a case where the source port is greater than 1024 port and the destination port is smaller than 1024 port, and a case where both of the source port and the destination port are greater than 1024 port.

13. The method of claim 12, further comprising, before the calculating the port relation distribution:

dividing a security event processing process into a plurality of stages and setting a maximum number of processed security events and a sampling ratio for each stage; and
determining a sampling ratio of the security event by comparing the set maximum number of the processed the security events for each stage and an average number of security events received per second for a T amount of time.

14. The method of claim 13, wherein the determining a sampling ratio of the security event comprises:

calculating the average number A of the security events received per second for the T amount of time;
checking whether the average number A of the security events received per second for the T amount of time is close to a maximum number Pt of security events processed in at stage corresponding to present security event processing performance; and
increasing the sampling ratio and the security event processing performance of the system from the t stage to a t+1 stage when the average number A of the security events received per second is close to the maximum number Pt of the security events processed in the t stage as a result of the checking.

15. The method of claim 14, wherein, when the average number of the security events received per second is not close to the maximum number Pt of the security events processed in the t stage as the result of the checking, the determining a sampling ratio of the security event comprises:

checking whether the average number A of the security events received per second is close to a maximum number Pt−1 of security events processed in a t−1 stage lower than the present t stage and adjusting the sampling ratio and the security event processing performance of the system to be suitable for the t−1 stage when the average number A of the security events received per second is close to the maximum number Pt−1 of the security events processed in the t−1 stage;
searching a t−n stage that is close by comparing the average number A of the security events received per second with maximum numbers of security events processed in the respective stages obtained by dividing the security event processing performance of the system when the average number A of the security events received per second is not close to the maximum number Pt−1 of the security events processed in the t−1 stage; and
adjusting the sampling ratio and the security event processing performance of the system to be suitable for the t−n stage when a maximum number of security events processed in the t−n stage to which the average number A of the security events received per second is close is searched.
Patent History
Publication number: 20110016208
Type: Application
Filed: Nov 19, 2007
Publication Date: Jan 20, 2011
Patent Grant number: 8140671
Applicant: Electronics and Telecommunications Research Institute (Daejeon)
Inventors: Chi Yoon Jeong (Daejeon), Beom Hwan Chang (Daejeon), Seon Gyoung Sohn (Daejeon), Geon Lyang Kim (Daejeon), Jong Hyun Kim (Daejeon), Jong Ho Ryu (Cheonan), Jung Chan Na (Daejeon), Jong Soo Jang (Daejeon), Sung Won Sohn (Daejeon)
Application Number: 12/667,130
Classifications
Current U.S. Class: Computer Network Monitoring (709/224)
International Classification: G06F 15/173 (20060101);