Abstract

Network security is a crucial aspect in the digital age, especially in protecting data and systems from various increasingly complex cyber threats. These threats can not only damage data integrity, but also significantly disrupt organizational operations. This study aims to examine the application of the Isolation Forest algorithm in detecting anomalies in network data. This algorithm was chosen because of its superior ability to efficiently process large-scale data and detect anomalous patterns quickly and accurately. This research covers several important stages, starting from data collection using the Wireshark application. This application generates network data that contains parameters such as packet length, protocol, and source and destination addresses. The data obtained then goes through a preprocessing stage, which includes data cleaning to reduce noise, normalization to equalize the scale between numerical values, and feature selection to select relevant attributes. Once this process is complete, the data is labeled to separate normal and anomalous data, before finally the Isolation Forest algorithm is applied to analyze and detect anomalous patterns. The model that has been developed is evaluated using metrics such as accuracy, precision, recall, and F1- score, which are analyzed through the Confusion Matrix. The results show that the Isolation Forest algorithm is able to detect anomalies with an accuracy of up to 81% at a training and test data sharing ratio of 80:20. This proves the effectiveness of the algorithm in isolating anomalies and maintaining their efficiency despite working with large datasets. This research has contributed significantly to the development of machine learning-based anomaly detection technology. In addition to enriching the literature in this field, this research is also a guide for other practitioners and researchers in improving network security. With the findings obtained, this research is expected to encourage the development of a more effective and efficient network security system in the future.