1. Introduction:
The role of intrusion detection systems is to identify whether the traffic has patterns that represent a network attack or normal traffic. In the event of a classification error, this leads to false positive and negative alarms [1]. Intrusion detection techniques are categorized as follows: anomaly detection and misuse detection [2].
IDS (intrusion detection system) based on the misuse detection model can detect attacks that have signatures and generate fewer false positives (FPA). IDS has a major drawback, however, that novel attacks will go undetected until signatures for those intrusions are known to the IDS. While IDSs based on anomaly detection models have a better chance of detecting novel intrusions, however, they are slow due to exhaustive monitoring and the use of many resources. Also, their rate of generating false positive alarms is higher [2]. There are three types of IDS: network intrusion detection system (NIDS), host intrusion detection system (HIDS) and multi IDS, including HIDS or NIDS, classified into three architectures: distributed intrusion detection system (DIDS), collaborative intrusion detection system (CIDS) and collaborative intrusion detection Network (CIDN) [3], Overall, all three architectures are effective ways to improve the accuracy and efficiency of intrusion detection by leveraging the collective knowledge and resources of multiple IDS systems. The choice between them depends on the specific needs and requirements of the organization or network being protected. Most distributed intrusion detection systems (DIDS) that use a planned framework with various mobile agents and well-supported coordinator agents can resolve the current issues in intrusion detection systems. The remaining of this work is structured as follows:
- Section 2 details the related literature done on single IDS and distributed intrusion detection.
- Section 3 describes the proposed system architecture for the IDS to work, and the communication model of the analysis and detection agent for the agent interaction with other entities.
- Section 4 debates the performed experiments and the corresponding results.
- Section 5 concludes our contributions and findings.
2. Related Work
We studied a wealth of literature that relies on independent intrusion detection systems, both as a single IDS and as a distributed IDS. The most important evaluation criteria and methodology they used are [1]: detection rate (DR), accuracy (ACC), false positive alarm rate (FAR), detection time, and finally fault tolerance (FT). Most research uses central processing (to analyze data and decide whether there is an attack or not) which is at risk of failing if the intrusion detection system fails. Moreover, central processing is not able to detect malicious events occurring at different places at the same time such as a (DDOS) [4]. Some research suggests [5] to transfer data from one place to another over the network for the analysis and detection process or to transfer the analysis and detection process to the location of the data. These actions would cause a load on the network, increase the rate of negative and positive false alarms, and lead to a delay in response time. In all of the reference studies, there is a large chain of agents working together to detect attacks. The size of the payload depends on the mechanism of exchanging data between agents [6], which causes an increase in response time. Most of the proposed solutions give good results in terms of accuracy and detection rate but do not attention to false alarm rates and detection time. also in distributed systems, the system failure condition is not handled. Table 1 resumes our study of the literature.
Evasion Techniques, DOS, Client Side, IP Reputation, Shell Codes, Brute Force, Fragmented Packets, Test Rules
Misuse detection and Migration agents between hosts in subnetworks and controlled by management servers.
* Ok / 5 *
[9]
Implementation of misuse detection, Central supervisor agent controls and manages MASDIDS Agents.
* DOS, U2R, R2L * Ok /5 *
[10]
ok * * * 33 93 * *
11 for DOS,
72 for Dos, 63.11 for U2R, 81 for
18 U2R and 8.3
* * * * for R2L
* * ok * 0.09 * 98 * DOS, U2R, R2L, Probe. NSL-KDD Ok/7 *
* Ok * 6.23 0.21 97 * * DOS, PortScan, Ping scan, Brute force CIC_IDS001 Ok/5 *
24.87 0.43 85 random forest.
99.9 DOS
92.1 Probe
96.1 * DOS, U2R, R2L, Probe. KDD-CUP Ok/4 *
91.1 R2L
The central server works to extract features and publish incoming traffic to all nodes to detect anomalies, using a voting algorithm (weighted majority algorithm ) to classify traffic.
[11]
Anomaly detection based on naïve bayes and random forest. [12]
* OK * * 0.12
Multi-agentbased DIDS used an ensemble data mining approach between (SVM, ANN, and Random forest).
[13]
96.4 U2R
3. The proposed System Architecture
This paper covers a detection engine design and implementation using a machine learning algorithm, called Hybrid ANN-SVM, for anomaly detection. We provide a general framework for testing a hybrid intrusion detection engine that works in a fully distributed IDS (DIDS) fashion in real time. The proposed system consists of two phases, the first phase is the detection engine with a transfer learning-based approach, and the second phase covers a distributed intrusion detection mechanism.
3.1 Detection engine design and implementation
Any decision-making system that deals with a large amount of data requires efficient preparatory processing of the data. Then the system builds the initial structure of the neural network classifier using the full features to compare with later on. The selection of the features affecting the classification process in several stages is based on several techniques to select the most relevant features from the dataset to classify the network traffic. In features extraction we start by calculating the variance values of the features, and eliminating features with zero variances, then finding the highest correlation between the features (by analyzing the activation contribution of each of the input dimensions (features)) to determine the important features in the classification process [14], The selection of features helps in selecting the minimum subset of features necessary for intrusion detection and thus reducing the amount of data processed by the system to detect intrusion more quickly and effectively, and based on the above, the final structure of the neural network classifier for the proposed system was built. Figure 1 depicts the Detection Engine. The basic principle of machine learning was applied to obtain a model that was trained on a data set (NSL-KDD) to detect abnormal behavior (Training Model Offline) [15].
3.2. Distributed intrusion detection system architecture
3.2.1 Scheduler algorithm between Analysis Agents
We consider solving the problem of centralization at the node level in case the Agents Manager fails to elect a new agent manager, which monitors the work of the node and performs the task of an analysis agent in the network branch where it is located. The test environment has the main container including all agents (Sniffer and Analysis) so that each Analysis Agent joined the main container gets a number to represent the priority for working with two behaviors in parallel. The proposed architecture helps to operate with transparency and accessibility for agents and to modify their behavior in real-time, without the analysis agents interfering with each other. Before starting the scheduling algorithm, we must distinguish between the following cases of agents. Table 2. depicts the description of the behavior Analysis Agent.
DESCRIPTION BEHAVIOR STATUS OF ANALYSIS AGENT
Scheduler Algorithm The algorithm of the scheduler is as follows: - If there isn’t any Analysis Agent in the main container then
Make this Analysis Agent as the main agent to work with parallel behavior Change the status of this agent to Active =1. - Else Make this Analysis Agent work as cyclic Behavior, and set the status of this agent to Active =0. - Each Analysis Agent sends a message (keep_alive_IDS) to the Agents Manager every 30 s. - Each Analysis Agent receive message (ok_Keep_Alive) from Agents Manager every 30 s. - If (30) seconds have passed and the Analysis Agent didn’t receive (ok_Keep_Alive) from the Agents Manager o The Analysis Agents within the IDS node elect a new Agents Manager based on the priority of the Analysis Agent joining the container. o Change the status of the new Analysis Agent to active =1. o Change the status of the old Agents Manager to active =0. o Broadcast message (Voting_Agents_manager) from new Agents Manager to all Analysis Agents o Every Analysis Agent sends a message (OK_Voting_Agents_manager) to approve and communicate with the new Agents Manager. - All Analysis Agents send message (Send_Analysis_status) to Agents Manager every 60s. - Every Analysis Agent receives a message (Recive_Analysis_Status) every 60s. - If (60) seconds have passed and the Analysis Agent didn’t receive (Recive_Analysis_Status) from the Agents manager o The Analysis Agents within the IDS node elect a new Agents Manager based on the priority of the Analysis Agent joining the container. o Change the status of the new Analysis Agent to active =1. o Change the status of the old Agents Manager to active =0. o Broadcast message (Voting_Agents_manager) from new Agents Manager to all Analysis Agents o Every Analysis Agent sends a message (OK_Voting_Agents_manager) to approve and communicate with the new Agents Manager. The message (Send Analysis Status) contains information about detection (Accuracy, Detection rate, false alarm rate, detection time, number of packets that have been classified as an attack, and number of packets that have been classified as normal traffic). Table 3. depicts the exchanged messages between the Analysis Agents and the Agents Manager, and the time for each. Figure 4 depicts the communication diagram between agents.
3.2.2 The experimental layout of the system and testbed environment
Figure 5 depicts a network environment set up in which various workstations were deployed by connecting them with switches. We have four subnets, and in each subnet, an IDS node was deployed through the JADE platform. All the packets to the outside networks pass through the DMZ (router and firewall) in subnet-4.
4. Results and Discussion
4.1 We consider all DOS attacks (SYN flooding, low and slow, ICMP flooding and UDP flooding).
traffic Accuracy Detection
Rate
We consider Syn flooding Attack from an attacker in subnets (1,2,3) to the web server (10.0.1.14) in
DMZ Subnet.
Node1 Agents Manager Normal 98.21 98.18 0 1.4 0 985
Node2 IDS Normal 99.2 98.62 0 1.7 0 1061 Node3 IDS Dos 96.01 90.91 0.54 3.778 998 7100 Node4 IDS Normal 98.22 98.59 0 1.2 0 722
Node1 Agents Manager Normal 99.51 98.19 0 1.3 0 873
Node2 IDS Normal 98.12 99.16 0 1.1 0 579 Node3 IDS Dos 96.01 90.91 0.54 3.778 998 7100 Node4 IDS Dos 95.29 96.71 0.01 1.56 99 1380
Node1 Agents Manager Dos 94.22 96.89 0.05 1.983 246 2030
Node2 IDS Normal 98.23 98.45 0 1.82 0 1252 Node3 IDS Dos 96.01 90.91 0.54 3.778 998 7100 Node4 IDS Dos 95.29 96.71 0.01 1.56 99 1380
Node1 Agents Manager Dos 94.22 96.89 0.05 1.983 246 2030
Node2 IDS Dos 95.22 96.99 0.12 2.3 500 4000 Node3 IDS Dos 96.01 90.91 0.54 3.778 998 7100 Node4 IDS Dos 95.29 96.71 0.01 1.56 99 1380
We consider Attack from subnet-2 to web server (10.0.1.14) in DMZ subnet-4.
Node1 Agents Manager Normal 99.11 99.01 0 1.7 0 721
Node2 IDS Dos 97.58 96.99 0.02 2.3 500 1985 Node3 IDS Normal 99.13 99.66 0 0.9 0 501 Node4 IDS Normal 99.4 99.54 0 0.7 0 223
Node1 Agents Manager Normal 99.51 98.19 0 1.3 0 873
Node2 IDS Dos 97.58 96.99 0.02 2.3 500 1985 Node3 IDS Normal 99.97 98.9 0 1.2 0 601 Node4 IDS Dos 99.1 99.7 0.01 1.9 460 1754 We consider Attack from subnet-3 to network resource (switch 10.2.254.250).
Type Node Type of node
Type of
Rate
False Alarm
Time(S) Attack Session
Normal
Session
DDOS-
Syn Flooding attack
DOS Attack (Low and
Slow attack)
DOS attack (ICMP Flooding
Node1 Agents Manager Normal 99.91 99.1 0 1.22 0 1120
Node2 IDS Normal 99.88 99.4 0 1.1 0 943 Node3 IDS Dos 99.5 99.7 0.01 0.4 1215 410 Node4 IDS Normal 99.27 98.59 0 0.6 0 517 attack)
We consider Attack from subnet-4 to network resource (switch 10.2.254.250).
DOS attack (UDP-Flooding
Node1 Agents Manager Normal 99.2 98.19 0 1.3 0 873
Node2 IDS Normal 99.93 99.16 0 1.1 0 579 Node3 IDS Normal 99.9 99.71 0 1.2 0 601 attack)
Node4 IDS Dos 99.7 99.4 0.03 1.9 157 5000
Figure 6 depicts a diagram of the best test DDOS attack done on the internal and external nodes.
We note that the average attack detection time distributed by the nodes is estimated at (2.40) seconds, the average detection rate is (95.37%), the average accuracy of attack detection is (95.18%), and the average rate of false alarms is (False Alarm Rate) is estimated at (0.18%).
4.2 User to Root attack (Buffer Overflow)
The attacker from the subnet-2 attacks the host representing the IDS node with the Agents Manager located in the subnet-1 to make it out of service and make the second Analysis Agent from the subnet-2 perform the tasks of the Agent Manager. This ensures that the tasks are scheduled using the scheduling algorithm (adaptive behavior). Table 7. depicts the attack.
Node3 IDS Normal 99.9 99.3 0 1.2 0 601 Node4 IDS Normal 99.7 99.8 0 0.5 0 312 .
4.3 Probe attack (Nmap Stealth Scan)
The attack is carried out from the subnet-2 on the server located in subnet-4. The attacker probes the ports to explore them. Table 8. depicts the attack.
for R2L MAS-DIDS Agents.
* * ok * 0.09 * 98 * DOS, U2R, R2L, Probe. NSL-KDD Ok/7 *
Anomaly detection based on naïve bayes and random forest. [12]
DOS, Port Scan, Ping scan, Brute force
CIC_IDS001 Ok/5 *
* Ok * 6.23 0.21 97 * *
24.87 0.43 85 random forest.
99.9 DOS
92.1 Probe
96.1 * DOS, U2R, R2L, Probe. KDD-CUP Ok/4 *
DDOS
91.1 R2L
2.40 0.18 95.18 95.37
1.9 0.01 99.1 99.7 DOS
DIDS based on Anomaly detection using Transfer Learning for extract features by ANN and SVM for Classification.
Our proposal
NSL-KDD Ok/2 *
Ok Ok *
2.3 0.01 99.8 99.4 Buffer over
0.9 0.01 99.7 99.8 Nmap stealth scan
The central server works to extract features and publish incoming traffic to all nodes to detect anomalies, using a voting algorithm (weighted majority algorithm ) to classify traffic.
[11]
* Ok * * 0.12
Multi-agent based DIDS used ensemble data mining approach between (SVM,ANN and Random forest
[13]
96.4 U2R flow
5. Conclusion
This work proposed a distributed intrusion detection system based on Anomaly Detection to detect attacks. The model was improved using hybrid machine learning ANN-SVM. The system has been tested online, in a real network environment based on nodes. In each node, two agents are working collaboratively, to achieve a high speed of response. In addition, the data is analyzed locally within the detection node. This reduces the load on the network. The results of the analysis are transmitted using the ACL protocol between agents implemented in the platform JADE. The proposed system also can expand dynamically without affecting its work, by creating a detection node within any new sub-network that is added to the network topology. Agents Manager downtime has also been addressed, by applying an algorithm for scheduling and node prioritization to perform the tasks of the Agent Manager in that state (this is the solution to the problem of centralization at the node level). Within the tests carried out on the system, four major DOS attacks were used, and one of U2R, and one of the Probe attacks were achieved. Future work includes multiple steps: testing the proposed approach on a new set of network attacks, such as Probe Attacks and U2R attacks; training and testing the proposed approach on new datasets; and development of a solution, that can address encrypted network traffic.