Skip to content
Open access

Application of C4.5 Decision Tree Algorithm for Detecting Cyber Attacks Using IDS

Aug 2026 · bit-Tech · 0 citations

TL;DR

This work constructs a web-based Intrusion Detection System prototype by training an entropy-based Decision Tree classifier, conceptually grounded in the C4.5 framework, on the NSL-KDD benchmark.

Abstract

Network infrastructure faces mounting pressure from increasingly sophisticated cyber attacks targeting systems reliant on digital connectivity. Activities such as Denial of Service, Probe, Remote-to-Local, and User-to-Root represent persistent threats that are challenging to intercept manually owing to high traffic volumes and rapidly evolving intrusion strategies. This work constructs a web-based Intrusion Detection System prototype by training an entropy-based Decision Tree classifier, conceptually grounded in the C4.5 framework, on the NSL-KDD benchmark. Development adheres to the six-phase CRISP-DM process encompassing business understanding, data preparation, model construction, performance evaluation, and system deployment. Preprocessing involves duplicate record elimination, categorical attribute encoding, and consolidation of multi-class attack labels into a binary Normal/Anomaly scheme. Ten-fold cross-validation yields 99.34% accuracy and 99.35% precision for the Decision Tree, representing a substantial margin over Naive Bayes which attains only 66.67% accuracy. A separate Gain Ratio analysis designates src_bytes as the most informative feature with a value of 0.5366, positioning it as the decision tree root node. The prototype is served through a Streamlit web application that accepts CSV dataset uploads, executes batch anomaly classification, presents detection outcomes through interactive visualizations, and produces exportable reports in both CSV and PDF formats. The system offers an interpretable and practically accessible batch-detection tool, continuous real-time monitoring and evaluation on contemporary intrusion benchmarks are identified as priorities for subsequent research.

Read PDF

Similar papers

Open access 2026

Intrusion Detection System using NSL-KDD Dataset and Decision Tree Machine Learning Algorithm

The outcome of the research proves that all these measures of accuracy show that the decision tree model is precise, reliable and suitable for practical implementation in analysis of firewall logs in order to detect the existing vulnerabilities for system engineers.

Victor Somadina Nd-Asogu, J. O. Fatokun, Chukwudi Anthony Udemba et al. · 0 citations
Open access Sep 2026

Intrusion detection in evolving internet of things environments using decentralized data systems

A hybrid IDS framework built on a stacking ensemble of four heterogeneous base classifiers, namely random forest, extreme gradient boosting, light gradient-boosting machine, and a shallow multi-layer perceptron (MLP), coupled with a PyTorch-based neural network meta-classifier, establishing that pairing meta-learning w...

Zobayer Alam, Arnab Bishakh Sarker, Jariatun Islam et al. · 0 citations
Sep 2026

A leakage-free hybrid AE-GA-XGBoost model for network intrusion detection systems

Overall, this research contributes a reproducible, leakage-free framework for intelligent intrusion detection, providing a solid foundation for near-real-time cyberattack scoring after offline training and future explainable AI extensions.

Hamed Gharghi, Abbas Dehghani · 0 citations
Open access Aug 2026

Automated Network Intrusion Detection for Internet of Things Security Enhancements

As interconnected devices increasingly transmit personal and sensitive data, security attacks are becoming more sophisticated and prevalent, highlighting the critical need for effective security solutions in Internet of Things (IoT) environments. An automated Network Intrusion Detection (NID) system plays a vital role...

Rangu Shashidhar, M. Raju · 1 citation
Aug 2026

AI-Based Cybersecurity Threat Detection Using Machine Learning

A multi-layered intelligent detection system that unites supervised learning, unsupervised anomaly analysis, and ensemble decision strategies to identify network intrusions, malicious software activity, and stealthy advanced persistent threats in near real time is introduced.

Ameen Pasha.A · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.