← Latest papers
💻 computer science

A Comparative Study of Intrusion Detection Models for DDoS and Brute Force Attack Detection Using Public Cybersecurity Datasets

This study proposes a machine learning-based intrusion detection system using the CICIDS2017 dataset to detect DDoS and Brute Force attacks, demonstrating that the XGBoost algorithm outperforms Random Forest and ANN by achieving nearly 99.9975% accuracy and other key metrics.

Original authors: Kazi Abdul Mannan, Md. Admir Hossin, Md. Soliman Ar Rafi

Published 2026-07-31
📖 4 min read☕ Coffee break read

Original authors: Kazi Abdul Mannan, Md. Admir Hossin, Md. Soliman Ar Rafi

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the internet as a massive, bustling city where billions of people, devices, and services are constantly talking to each other. In this digital metropolis, there are always troublemakers trying to cause chaos. Some of these troublemakers are like a giant mob that floods a specific street with so many people that no one else can get through; this is called a DDoS attack. Others are like a pickpocket who tries every single key in a giant ring to find the one that opens a locked door; this is a Brute Force attack.

To keep the city safe, we have security guards called Intrusion Detection Systems (IDS). For a long time, these guards worked like bouncers with a "Wanted" poster. They could only catch criminals if the criminal's face was already on the poster. If a new criminal showed up wearing a disguise, the bouncer wouldn't know to stop them. To fix this, scientists started teaching these guards to be smarter. Instead of just memorizing faces, they taught the guards to learn from the crowd's behavior. They used Machine Learning, a type of computer brain that studies millions of examples of "good" traffic and "bad" traffic until it can spot the sneaky patterns of a new criminal all by itself. The big question is: which kind of smart brain works best at catching these digital troublemakers?

This paper sets out to find the answer by putting three different types of "smart brains" to the test. The researchers used a massive, realistic library of digital traffic records called CICIDS2017, which contains millions of examples of normal internet activity mixed with various attacks. They trained three specific machine learning models on this data: Random Forest, XGBoost, and Artificial Neural Network (ANN). You can think of Random Forest as a committee of many different detectives, each looking at the clues and voting on who the bad guy is. XGBoost is like a detective who learns from their own mistakes, building a new strategy every time they get a clue wrong until they are perfect. Artificial Neural Network is modeled after the human brain, with layers of connections that try to figure out complex patterns, though it can be a bit sensitive to how the clues are presented.

The researchers put these three models through the same rigorous training and testing to see which one could spot DDoS and Brute Force attacks most accurately. The results were incredibly impressive. All three models were excellent at their jobs, but XGBoost emerged as the clear champion. In the tests, XGBoost achieved a staggering 99.9975% accuracy, precision, recall, and F1-score. This means it correctly identified almost every single attack and almost never made a mistake. Random Forest was a very close second, performing almost as well, while the Artificial Neural Network was also very good but scored slightly lower, landing around 99.9550%. The study suggests that the slight dip in the Neural Network's performance might be because it is very sensitive to how the data is prepared, whereas the tree-based models like XGBoost and Random Forest handled the data more naturally.

Ultimately, the paper concludes that for catching these specific types of cyberattacks, the "committee" style of Random Forest and the "learning-from-mistakes" style of XGBoost are the most reliable tools. The study also found that the models paid the most attention to specific details about how data packets moved backward through the network, suggesting that the way data returns to a sender is a huge clue for spotting trouble. While the researchers note that these results are based on a specific dataset and not live, real-time internet traffic, the findings strongly suggest that these ensemble learning methods are highly effective and could significantly improve how we protect our digital cities in the future.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →