An Enhancement of Optimized Detection Rule of Security Monitoring and Control for Detection of Cyberthreat in Location-Based Mobile System

A lot of mobile applications which provided location information by using a location-based service are being developed recently. For instance, a smart phone would find my location and destination by running a program using a GPS chip in a device. However, the information leakage and the crime that misused the leaked information caused by the cyberattack ofmobile information system occurred. So the interest and importance of information security are increasing. Also the number of users who has used mobile devices in Korea is increasing, and the security of mobile devices is becoming more important. Snort detection system has been used to detect and handle cyberattacks but the policy of Snort detection system is applied differently for each of the different kinds of equipment. It is expected that the security of mobile information system would be improved and information leakage would be blocked by selecting options through optimization of Snort detection policy to protect users who are using location-based service in mobile information system environment in this paper.


Introduction
The importance of location-based services (LBS), which is a wired and wireless Internet service utilizing current and past location information of users with terminal which can track location, is emphasized due to the development of mobile communication technology and the rapid spread of mobile terminals [1].
The location-based service is a service that identifies the user's location using Location Detection Technology and adds related applications.I think it can be used for various purposes, creating added value using application and location information of wired and wireless Internet.
Also, due to the recent development of cyberattack technology, information leakage as hacking and personal information exposure has become a problem.There is a high concern about exposure of personal information to the current location due to the nature of location information services.In the member information exposed through the online site, personal information such as a name, a resident registration number (ID), an address, and a resident registration number may be used for other purposes through theft.Further, the location information of the customer and the identification of the movement trajectory through the location information may already act as direct privacy violation factors.For this reason, concerns about privacy breaches caused by leakage of location-based services are more serious in Korea [2][3][4].
The key to security monitoring is rapid detection of cyberattacks.Among the various security monitoring systems, a network-based intrusion detection system (IDS) is the only system that can detect application attacks such as Table 1: Location-based service utilization [5].

Sort
Field of application Benefit (1) Tracking the location of a young or demented elderly Missing child prevention, accident prevention Police, security, military vehicle management Crime prevention (7) Providing location information of courier and cargo Reducing oil, transportation, and communication costs web hacking most efficiently by installing them between the control network entrances.The function of the intrusion detection system (IDS) is to use a pattern matching method that detects an attack and generates an alarm when a header or Payload information communicating through the network is detected as an attack.However, if an attacker encrypts communication signals due to attack packets or malicious code infections, the intrusion detection system (IDS) only checks the encrypted packets.Even if the attack packet is an actual attack packet, it cannot be detected and waypoint also cannot be detected.In order to detect such an attack, it is necessary to develop a behavior-based detection system that can detect and alert an attack using an unknown attack technique instead of a pattern matching methods [6][7][8].
Currently, security monitoring technology analyzes cyberattack techniques and malicious codes, extracts patterns such as certain strings, and then uses this pattern to develop detection patterns (signature) and apply them to intrusion detection systems.After that, if the cyberattack information matches the detection pattern, it is detected as an accident.If the attack technique is changed, the detection pattern should be corrected in a timely manner so as to maintain the optimized state.However, it is not easy to detect new attacks or malicious codes.
In addition, recent cyberattack techniques such as hacking and distribution of malicious code are developing rapidly and utilizing advanced and intelligent techniques such as double encryption technique to prevent detection by security monitoring or vaccine.So it is not enough to completely detect and block new cyberattacks.
Therefore, in order to efficiently detect and respond to cyberattacks in systems that utilize location-based services in mobile information systems, it is necessary to optimize security monitoring detection techniques to share information among security monitoring centers or to standardize detection patterns according to heterogeneous equipment.

Location-Based Service.
LBS is an acronym for locationbased service.It is generally defined as an application system and service that accurately grasps the location of a person or object based on the mobile communication network and utilizes it.Accordingly, the LBS is a system that grasps the location information of an individual or a vehicle through a mobile communication base station and a GPS (Global Positioning System) and provides various advanced services based on the information [1].
LBS provides various application services based on location information.These include emergency assistance, location information services, traffic congestion and navigation information, and location-based billing.Other applications include Intelligent Transport Systems (ITS), assistive devices for people with disabilities, L-Commerce based on location information, and cell ID-based friends using cell phones (see Table 1).
The current location information acquisition technology of the wireless communication network enables collecting more precise location information by combining the GPS and other location positioning technology and wireless communication network, and it is possible to provide more various application services.As the location information is connected with the mobile communication network, it is possible to provide a general service in the future, and the application service structure provided in the network is changing from a wired/wireless communication network structure with an independent vertical structure to a horizontal structure for wired/wireless integration.Also, all network entities will evolve into an open converged network that provides services based on an equalized All-IP network.Through the development of position location system such as A-GPS (Assistance-GPS) and the paradigm change of ubiquitous and pervasive computing environment, MT (Mobile Terminal) will become a subject of information provision independently and will develop its form to deliver its location information to LBS SP (Service Provider).With these developments, it is necessary to provide the components of location-based services with safety and reliability beyond the conventional wired and wireless network level.Intrusion detection systems can reduce the misuse detection and improve the performance of the system by designing efficient and complete detection rules for cyberthreats.Rules should be as simple and flexible as possible and handle large amounts of network traffic without packet loss.This requires testing procedures to assess the appropriateness before applying the developed rules and periodic optimization to speed up the rules.

Intrusion Detection
For exact detection rules, you must test them before applying them in the intrusion detection system (IDS).Inaccurate rules cause too many false positives and false negatives.A large number of false detection events may cause unnecessary analysis time, prevent detection of normal attack events, or cause the network sensor of the IDS to go down.In order to reduce false detection events, test procedures are required before the system is applied.When testing, efficiency, usability, accuracy, and uniqueness should be considered.
In addition, false positives should be reduced.False positive events occur when you configure detection rules extensively or when you activate unnecessary rules.In order to reduce this, we need to rigorously apply detection rules through precise analysis of the exploit.In addition, it disables the detection rules of the simple information providing format such as "ICMP UNREACH" to reduce the load of the cyberthreat attack event.Inaccurate rules flood false positives and generate false negatives.A large number of false detection events may cause unnecessary analysis time and may prevent detection of cyberthreat attack events.
Until now, the term "security monitoring" has not been defined as a legal rule.In recent years, it has been a step in the process of conceptualization in the academic sense.The term "security control" is used in English as "Security Monitoring" or "Security Monitoring & Control."The dictionary meaning of "Monitoring" is to protect against various errors that may occur during computer program execution.And the Korean dictionary of the Korean language states that "control" means "to control and control by necessity at a country or an airport" [9] (see Figure 1).

Intrusion Detection System. The Snort intrusion detection system is one of the most widely used systems among intrusion detection systems (IDS) and is an open source network-based intrusion detection system (open source NIDS) [12-14].
The rule is divided into Header and Option.As shown in (Figure 2), detailed rules can be distinguished as conditions to be detected in the detection operation, protocol type, source address, source port, traffic transmission direction, destination IP address, and destination port.The elements used in these detailed rules are summarized as shown in Figure 2.
The Rule Header of Snort is an integral part of the detection rule that includes five elements: Rule Action, Protocol, Source, Destination IP, Source, Destination Port, and Traffic Direction.Rule Action specifies what the rule should do if the packet matches the rule.Snort has rule actions such as "pass, log, alert," but in most cases it uses the alert Rule Action [15][16][17][18] (see Table 2).Snort's rule options are divided into General, Payload Detection, and Nonpayload Detection rule options as shown in Table 3.

Optimization of Selected Snort-Based Detection Rule
3.1.Header Detection Rule Optimization.In Rule Action, "alert" generates a warning, "log" leaves a log, "pass" ignores the packet, "activate" sends a warning and activates the specified dynamic rule, and "drop" throws away the packet and leaves a log.Also "reject" leaves the connection and log, and "sdrop" discards the packet and leaves no log.Of these, 6 items including "log," "pass," "activate," "dynamic," "reject," and "sdrop" are excluded.For this reason, "log" and "pass" are options for packet logging or packet ignoring."Activate" and "dynamic" are used mainly for additional logging after detection of attack.They are not suitable for the purpose of notifying the occurrence of attack."Reject" and "sdrop" are excluded because they are additional actions after interception.
In the protocol, "tcp," "udp," "icmp," and "ip" support the TCP, UDP, ICMP, and IP protocols, respectively.In the protocol, "tcp" supports the TCP protocol, "udp" supports the UDP protocol, "icmp" supports the ICMP protocol, and "ip" supports the IP protocol (see Table 4).
In IP, "any" represents All-IP address targets, "numeric IP" represents a specific IP address target, "numeric IP list" supports up to 10, including CIDR among multiple IP addresses, "CIDR" represents the length object of a specific network address, and "negation(!)" represents All-IP address destinations except the specified IP address.In port, "any" represents all port number targets, "static port" represents fixed port number targets, "ranges(:)" represents port range targets, and "negation(!)" represents all port destinations except for specified ports.In Direction, "-> option" indicates the direction of the destination host from the source host, and "<> option" indicates the direction of both the source host and the destination host.The <option lowers the detection efficiency by generating a lot of intrusion detection sensor load.Also, "<-" is to remove the mandatory option because it is necessary to use the -> option by changing the source IP and destination IP (see Table 5).

General Rule Optimization.
In General, "msg" is used as an option to indicate a message to be recorded when detecting security control events."Reference" is a reference to additional information, "gid" is the ID of the alert generation module, sid is used to identify the Snort detection rule, "<100" is the number reserved for future use, "100-1,000,000" indicates the number assigned by Snort, and ">1,000,000" represents a user-defined rule assignment number."Rev" keyword indicates information about the revision of the sid, "classtype" identifies information that can classify the attack, and "priority" indicates the importance of the rule.In General, all options excluding "msg" are excluded.The "reference" case is excluded as an additional option for reference of detection rule information."Gid" and "sid" are excluded  from Snort configuration module as indicating module ID and detection rule ID that generated warning.Also, "rev" is excluded as an option for version control of detection rules, and "classtype" and "priority" are excluded due to lack of usability as an option for sorting and prioritizing detection rules (see Table 6).The http method searches in the HTTP method part.The http uri part searches the HTTP URI part in the fast pattern Eye.This is the command to designate the pattern to search first.However, HTTP related commands can be specified with the content option and can be excluded.Fast pattern excludes string matching as a priority (see Table 7).

Payload Detection and Nonpayload
In Payload Detection, "uricontent" searches patterns from URI information of HTTP, "urilen" checks HTTP URI length, and "isdataat" searches whether Payload has a certain number of bytes."Pcre" searches for a regular expression, byte test compares it to a specific value after a certain byte operation, and "byte jump" jumps to a result value after a certain byte operation."Ftpbounce" detects an FTP bounce attack, "asn1" detects a malicious encoding, and "cvs" detects an invalid entry string in CVS.Also, "dce iface," "dce opnum," and "dce stup data" detect the DCE/RPC request traffic pattern.Of these, "urilen" is excluded because it can be specified using mandatory options, and "ftpbounce," "asn1," "cvs," "dce-iface," "dce-opnum," and "dce stup data" commands should be excluded because these are the options for detecting specific attacks on specific services (see Table 8).
Among the Nonpayload Detection options, the commands related to IP such as fragoffset, fragbits, tos, id, ipopts, and TCP related commands seq, ack, and windows are excluded because they are not useful in creating detection rules (see Table 9).
In Nonpayload Detection, "dsize" checks packet payload size to detect packets of abnormal size, and "flow" defines packet direction in relation to client-server communication stream."Flowbits" is an option to support session-based detection, and "Rpc" acts to identify the rpc service but it is excluded because it can be specified using mandatory options.The "sameip" checks whether the source and destination IPs are the same, and the "stream size" checks the size of the session according to the TCP sequence number, but it is excluded because it can be specified through the "dsize" option.In Rule Thresholds, "Limit" indicates the first occurrence of a warning when a number of identical events occur within a certain time, and "Threshold" indicates a warning when the number of the same events occurring

Comparison Analysis of Existing Snort Detection Options
Optimizing the existing Snort detection grammar will allow the user to understand and analyze the wrong type of policy created without considering the performance and false positives of the detection sensor in the event of a vulnerability attack.Also this can elaborate detection rules.In order to normalize the detection rules; first, if short strings are applied, frequent detection of the intrusion detection system sensor occurs, thereby degrading the performance of the intrusion detection system sensor.Therefore, it is necessary to create a policy that detects a string of at least 4 bytes or more.Second, when a communication string is detected frequently, a large number of detection events are generated, which may cause a false alarm, and the performance of the detection sensor may be reduced, thereby limiting communication traffic in a typical Internet environment.Third, in the PCRE grammar, .
(Dot), * (Asterisk) is a special character that matches any string.Because this matching matches all strings in the packet Payload, the PCRE computation consumes a lot of system resources and leaks from the intrusion detection system sensor.Fourth, if the setting value exceeds the detection string length limit of the intrusion detection system sensor, it may cause a problem that it cannot be detected.In addition, long length PCRE matching causes performance load of the intrusion detection system sensor.Fifth, when searching a continuous pattern of the same character, a looping phenomenon may occur as repeated operations are performed, which causes a heavy load on the CPU usage.
Therefore, there is a purpose to improve these five problems by optimizing Snort detection grammar (see Table 11).

Conclusion
The purpose of this paper is to find a detection rule optimization method for protecting users who use locationbased services in mobile information systems and proving the compatibility of detection rules between different intrusion detection systems (IDS/IPS) introduced in each security control center (cybersafety center) based on IDS Snort in order to prepare for new cyberthreats and cyberattacks.Recent hacking technologies understand cyberattack packet contents in order to detect new cyberthreats that are developing rapidly and present the best intrusion detection rules for network environment.Based on the Snort detection rules, we designed the models and options of the essential detection rules and suggested the most optimized detection rule production standards through understanding and analyzing the wrong policies such as the performance of the detection sensor and the policy that does not consider the false positives.In this paper, we propose an efficient detection and countermeasure of new cyberattacks through the Snort-based detection rule standard requirements.Also, constructing a standardized security management system of the heterogeneous intrusion detection system by maintaining the optimization state by correcting and revising the detection pattern according to the actual situation of each security control center is possible.
This standardization of integrated intrusion detection pattern is expected to establish an efficient operation system of each security control center (cybersafety center) performing security control.
the current location Nearby information services such as theaters, gas stations, restaurants
Detection Rule Optimization.In Payload Detection (Content, Content Modifier), "content" indicates the specific content to be found in the Payload of the packet, and "nocase" means not case sensitive."Rawbytes" ignores the decoding process and indicates raw packet data inspection, offset indicates the pattern search start position, depth indicates the pattern search range, distance indicates a new pattern search start position after the previous pattern matching, and within indicates the pattern search range.The http client body searches in the body part of the HTTP request.The http cookie searches in the cookie part of the HTTP header.The http header searches in the HTTP header part.

Table 4 :
Optimization of Header Rules: Rule Action, Protocol.

Table 5 :
Optimization of Header Rules: IP, Port, Direction.

Table 6 :
Optimization of General Rules.

Table 7 :
Optimization of Payload Detection (Content, Content Modifier) Rules.

Table 8 :
Optimization of Payload Detection Rules.

Table 11 :
Comparison of Snort Detection Rules and Optimization Options.