{"id":{"repo_id":"unitec","oai_identifier":"oai:null:10652/6844"},"canonical_url":"https://search.ndltd.org/etd/unitec/oai:null:10652/6844","repository":{"repo_id":"unitec","name":"Unitec","base_url":"https://www.researchbank.ac.nz/server/oai/request"},"display":{"title":"A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity","abstract":"RESEARCH QUESTIONS Q1: Which ML algorithms most effectively detect APT traffic within NIDS? Q2: What network behaviour features are most significant for identifying APTs using ML models? Q3: How does data imbalance impact the detection accuracy of ML algorithms, and how do resampling techniques impact their performance? ABSTRACT Advanced Persistent Threats (APTs) pose a sophisticated and evolving cyber risk, persistently targeting organisations to extract high-value information. Traditional Intrusion Detection Systems (IDS), which rely on signature-based and heuristic methods, often fail to detect APTs due to their stealthy nature, high false positive rates, and inability to generalise across diverse attack patterns. Additionally, prior research on ML-based IDS has been limited by challenges such as data imbalance, ineffective feature selection strategies, and inconsistent model performance across different datasets. This research addresses these gaps by performing a comparative evaluation of classical ML and deep learning algorithms for APT detection using the NF-UQ-NIDS-v2 dataset. This large and diverse NetFlow-based dataset is the combination of 4 datasets such as NF-UNSW NB15-v2, NF-BoT-IoT-v2, NF-ToN-IoT-v2, and NF-CSE-CIC-IDS2018-v2) comprising 43 features and over 75 million records, including 21 attack types. A robust ensemble-based feature selection approach was implemented to identify the most relevant network traffic features, optimising model performance. Nine classical ML models, including CatBoost, Decision Tree, K-Nearest Neighbors, Gradient Boosting, Random Forest, SVM, XGBoost, and two deep learning models, 1D-CNN and LSTM, were trained and evaluated using a K-fold cross-validation strategy to ensure reliability. The results demonstrate that ensemble learning models outperformed other approaches in detecting APTs. For multi-class classification, XGBoost achieved the highest accuracy (93.23%), followed by Gradient Boosting (92.75%) and Random Forest (92.50%). In binary classification, XGBoost and Random Forest achieved outstanding accuracies of 96.40% and 96.37%, respectively, while CatBoost closely followed at 96.13%. These findings highlight the effectiveness of tree-based ensemble methods in capturing complex attack patterns and reducing misclassification rates, making them highly suitable for modern IDS. This study contributes to the field by presenting a comprehensive evaluation of ML models for APT detection, refining feature selection techniques, and providing insights into the strengths and limitations of various approaches for real-world IDS deployment.","abstract_html":"RESEARCH QUESTIONS Q1: Which ML algorithms most effectively detect APT traffic within NIDS? Q2: What network behaviour features are most significant for identifying APTs using ML models? Q3: How does data imbalance impact the detection accuracy of ML algorithms, and how do resampling techniques impact their performance? ABSTRACT Advanced Persistent Threats (APTs) pose a sophisticated and evolving cyber risk, persistently targeting organisations to extract high-value information. Traditional Intrusion Detection Systems (IDS), which rely on signature-based and heuristic methods, often fail to detect APTs due to their stealthy nature, high false positive rates, and inability to generalise across diverse attack patterns. Additionally, prior research on ML-based IDS has been limited by challenges such as data imbalance, ineffective feature selection strategies, and inconsistent model performance across different datasets. This research addresses these gaps by performing a comparative evaluation of classical ML and deep learning algorithms for APT detection using the NF-UQ-NIDS-v2 dataset. This large and diverse NetFlow-based dataset is the combination of 4 datasets such as NF-UNSW NB15-v2, NF-BoT-IoT-v2, NF-ToN-IoT-v2, and NF-CSE-CIC-IDS2018-v2) comprising 43 features and over 75 million records, including 21 attack types. A robust ensemble-based feature selection approach was implemented to identify the most relevant network traffic features, optimising model performance. Nine classical ML models, including CatBoost, Decision Tree, K-Nearest Neighbors, Gradient Boosting, Random Forest, SVM, XGBoost, and two deep learning models, 1D-CNN and LSTM, were trained and evaluated using a K-fold cross-validation strategy to ensure reliability. The results demonstrate that ensemble learning models outperformed other approaches in detecting APTs. For multi-class classification, XGBoost achieved the highest accuracy (93.23%), followed by Gradient Boosting (92.75%) and Random Forest (92.50%). In binary classification, XGBoost and Random Forest achieved outstanding accuracies of 96.40% and 96.37%, respectively, while CatBoost closely followed at 96.13%. These findings highlight the effectiveness of tree-based ensemble methods in capturing complex attack patterns and reducing misclassification rates, making them highly suitable for modern IDS. This study contributes to the field by presenting a comprehensive evaluation of ML models for APT detection, refining feature selection techniques, and providing insights into the strengths and limitations of various approaches for real-world IDS deployment.","abstract_has_math":false,"creators":["Darnal, Kiran"],"institution":"Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology","degree_name":"Master of Applied Technologies","degree_level":"Masters","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Erfanian Sabaee, Maryam","Sarrafpour, Bahman"],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024","date_published":"2024","updated_at":"2026-11-26T14:13:46Z","subjects":["advanced persistent threat (APT)","intrusion detection systems (IDS)","network based intrusion detection systems (NIDS)","cybersecurity","algorithms","machine learning"],"languages":["en"],"rights":["All rights reserved","Author"],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Darnal, K. (2024). A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6844"],"render_values":[{"text":"Darnal, K. (2024). A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6844","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10652/6844","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10652/6844","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aunitec%3Aoai%3Anull%3A10652%2F6844","prefix":"oai_dc"},"source_record":{"url":"https://www.researchbank.ac.nz/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Anull%3A10652%2F6844","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Erfanian Sabaee, Maryam","Sarrafpour, Bahman"]},{"key":"dc:creator","label":"Author","values":["Darnal, Kiran"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-06-05T21:54:31Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-06-05T21:54:31Z"]},{"key":"dc:date.issued","label":"Date","values":["2024"]},{"key":"dc:type","label":"Dc Type","values":["Masters Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Applied Technologies"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["advanced persistent threat (APT)","intrusion detection systems (IDS)","network based intrusion detection systems (NIDS)","cybersecurity","algorithms","machine learning"]},{"key":"dc:subject.discipline","label":"Dc Subject Discipline","values":["Applied Technologies"]},{"key":"dc:subject.marsden","label":"Dc Subject Marsden","values":["ANZSRC Fields of Research 2020::46 Information and computing sciences::4604 Cybersecurity and privacy::460407 System and network security"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["All rights reserved"]},{"key":"dc:rights.holder","label":"Dc Rights Holder","values":["Author"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Darnal, K. (2024). A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6844"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10652/6844"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["RESEARCH QUESTIONS Q1: Which ML algorithms most effectively detect APT traffic within NIDS? Q2: What network behaviour features are most significant for identifying APTs using ML models? Q3: How does data imbalance impact the detection accuracy of ML algorithms, and how do resampling techniques impact their performance? ABSTRACT Advanced Persistent Threats (APTs) pose a sophisticated and evolving cyber risk, persistently targeting organisations to extract high-value information. Traditional Intrusion Detection Systems (IDS), which rely on signature-based and heuristic methods, often fail to detect APTs due to their stealthy nature, high false positive rates, and inability to generalise across diverse attack patterns. Additionally, prior research on ML-based IDS has been limited by challenges such as data imbalance, ineffective feature selection strategies, and inconsistent model performance across different datasets. This research addresses these gaps by performing a comparative evaluation of classical ML and deep learning algorithms for APT detection using the NF-UQ-NIDS-v2 dataset. This large and diverse NetFlow-based dataset is the combination of 4 datasets such as NF-UNSW NB15-v2, NF-BoT-IoT-v2, NF-ToN-IoT-v2, and NF-CSE-CIC-IDS2018-v2) comprising 43 features and over 75 million records, including 21 attack types. A robust ensemble-based feature selection approach was implemented to identify the most relevant network traffic features, optimising model performance. Nine classical ML models, including CatBoost, Decision Tree, K-Nearest Neighbors, Gradient Boosting, Random Forest, SVM, XGBoost, and two deep learning models, 1D-CNN and LSTM, were trained and evaluated using a K-fold cross-validation strategy to ensure reliability. The results demonstrate that ensemble learning models outperformed other approaches in detecting APTs. For multi-class classification, XGBoost achieved the highest accuracy (93.23%), followed by Gradient Boosting (92.75%) and Random Forest (92.50%). In binary classification, XGBoost and Random Forest achieved outstanding accuracies of 96.40% and 96.37%, respectively, while CatBoost closely followed at 96.13%. These findings highlight the effectiveness of tree-based ensemble methods in capturing complex attack patterns and reducing misclassification rates, making them highly suitable for modern IDS. This study contributes to the field by presenting a comprehensive evaluation of ML models for APT detection, refining feature selection techniques, and providing insights into the strengths and limitations of various approaches for real-world IDS deployment."]},{"key":"dc:format.extent","label":"Dc Format Extent","values":["152"]},{"key":"dc:title","label":"Title","values":["A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity"]},{"key":"local:contributor.affiliation","label":"Local Contributor Affiliation","values":["Unitec, Te Pūkenga"]}]}],"canonical_facts":{"dc:contributor.advisor":["Erfanian Sabaee, Maryam","Sarrafpour, Bahman"],"dc:creator":["Darnal, Kiran"],"dc:date.accessioned":["2025-06-05T21:54:31Z"],"dc:date.available":["2025-06-05T21:54:31Z"],"dc:date.issued":["2024"],"dc:description.abstract":["RESEARCH QUESTIONS Q1: Which ML algorithms most effectively detect APT traffic within NIDS? Q2: What network behaviour features are most significant for identifying APTs using ML models? Q3: How does data imbalance impact the detection accuracy of ML algorithms, and how do resampling techniques impact their performance? ABSTRACT Advanced Persistent Threats (APTs) pose a sophisticated and evolving cyber risk, persistently targeting organisations to extract high-value information. Traditional Intrusion Detection Systems (IDS), which rely on signature-based and heuristic methods, often fail to detect APTs due to their stealthy nature, high false positive rates, and inability to generalise across diverse attack patterns. Additionally, prior research on ML-based IDS has been limited by challenges such as data imbalance, ineffective feature selection strategies, and inconsistent model performance across different datasets. This research addresses these gaps by performing a comparative evaluation of classical ML and deep learning algorithms for APT detection using the NF-UQ-NIDS-v2 dataset. This large and diverse NetFlow-based dataset is the combination of 4 datasets such as NF-UNSW NB15-v2, NF-BoT-IoT-v2, NF-ToN-IoT-v2, and NF-CSE-CIC-IDS2018-v2) comprising 43 features and over 75 million records, including 21 attack types. A robust ensemble-based feature selection approach was implemented to identify the most relevant network traffic features, optimising model performance. Nine classical ML models, including CatBoost, Decision Tree, K-Nearest Neighbors, Gradient Boosting, Random Forest, SVM, XGBoost, and two deep learning models, 1D-CNN and LSTM, were trained and evaluated using a K-fold cross-validation strategy to ensure reliability. The results demonstrate that ensemble learning models outperformed other approaches in detecting APTs. For multi-class classification, XGBoost achieved the highest accuracy (93.23%), followed by Gradient Boosting (92.75%) and Random Forest (92.50%). In binary classification, XGBoost and Random Forest achieved outstanding accuracies of 96.40% and 96.37%, respectively, while CatBoost closely followed at 96.13%. These findings highlight the effectiveness of tree-based ensemble methods in capturing complex attack patterns and reducing misclassification rates, making them highly suitable for modern IDS. This study contributes to the field by presenting a comprehensive evaluation of ML models for APT detection, refining feature selection techniques, and providing insights into the strengths and limitations of various approaches for real-world IDS deployment."],"dc:format.extent":["152"],"dc:identifier.citation":["Darnal, K. (2024). A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6844"],"dc:identifier.uri":["https://hdl.handle.net/10652/6844"],"dc:language.iso":["en"],"dc:rights":["All rights reserved"],"dc:rights.holder":["Author"],"dc:subject":["advanced persistent threat (APT)","intrusion detection systems (IDS)","network based intrusion detection systems (NIDS)","cybersecurity","algorithms","machine learning"],"dc:subject.discipline":["Applied Technologies"],"dc:subject.marsden":["ANZSRC Fields of Research 2020::46 Information and computing sciences::4604 Cybersecurity and privacy::460407 System and network security"],"dc:title":["A comparative analysis of machine learning algorithms in network-based intrusion detection systems for detecting advanced persistent threats to enhance cybersecurity"],"dc:type":["Masters Thesis"],"local:contributor.affiliation":["Unitec, Te Pūkenga"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Applied Technologies"],"thesis:institution_name":["Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology"]},"updated_at":"2026-11-26T14:13:46Z"}