Skip to main content
QUICK REVIEW

[Paper Review] Machine Learning and Port Scans: A Systematic Review

Jason M. Pittman|arXiv (Cornell University)|Jan 31, 2023
Network Security and Intrusion DetectionComputer Science3 citations
TL;DR

This systematic review analyzes 15 machine learning-based studies (2020–2023) on port scan detection, evaluating algorithms, datasets, and performance. It finds that artificial neural networks (ANN) and random forest (RF) achieve the highest accuracy—up to 100%—with CICIDS2017 being the most widely used dataset, though code availability remains limited.

ABSTRACT

Port scanning is the process of attempting to connect to various network ports on a computing endpoint to determine which ports are open and which services are running on them. It is a common method used by hackers to identify vulnerabilities in a network or system. By determining which ports are open, an attacker can identify which services and applications are running on a device and potentially exploit any known vulnerabilities in those services. Consequently, it is important to detect port scanning because it is often the first step in a cyber attack. By identifying port scanning attempts, cybersecurity professionals can take proactive measures to protect the systems and networks before an attacker has a chance to exploit any vulnerabilities. Against this background, researchers have worked for over a decade to develop robust methods to detect port scanning. While there have been various surveys, none have focused solely on machine learning based detection schemes specific to port scans. Accordingly, we provide a systematic review of 15 papers published between February 2021 and January 2023. We extract critical information such as training dataset, algorithm used, technique, and model accuracy. We also collect unresolved challenges and ideas for future work. The outcomes are significant for researchers looking to step off from the latest work and for practitioners interested in novel mechanisms to detect the early stages of cyber attack.

Motivation & Objective

  • To identify and analyze recent machine learning-based approaches for detecting port scanning in network traffic.
  • To evaluate the performance of different algorithms (e.g., ANN, RF, SVM) using standardized metrics like F1-score and accuracy.
  • To assess the diversity and quality of training datasets used in recent port scan detection research.
  • To identify unresolved challenges, such as lack of code sharing and limited evaluation of scanning techniques.
  • To guide future research by highlighting promising directions, including neural networks and nature-inspired algorithms.

Proposed method

  • Conducted a systematic literature review using predefined search strings and inclusion/exclusion criteria for studies published between February 2021 and January 2023.
  • Extracted key data from 15 studies, including algorithm type, training dataset, evaluation metrics (F1-score, accuracy), and model performance.
  • Classified datasets into general network traffic (e.g., CICIDS2017, Bonafide) and scan-specific datasets (e.g., NMAP-F, NMAP-Y).
  • Evaluated algorithm performance across datasets, focusing on F1-score and accuracy to compare detection capabilities.
  • Identified trends in algorithm adoption, such as the rise of neural networks post-2022, and assessed reproducibility via code availability.
  • Suggested future research directions, including evaluation of artificial life algorithms like dendritic cell models and green compute metrics.

Experimental results

Research questions

  • RQ1Which machine learning algorithms are most effective for detecting port scanning, and what performance metrics do they achieve?
  • RQ2What datasets are most commonly used in recent port scan detection research, and how do they compare in terms of realism and coverage?
  • RQ3To what extent are port scanning techniques (e.g., SYN, XMAS, UDP scans) explicitly evaluated in the literature?
  • RQ4What are the major gaps in reproducibility and transparency, particularly regarding code availability and dataset sharing?
  • RQ5What emerging algorithmic approaches (e.g., nature-inspired, artificial life) show potential for future port scan detection research?

Key findings

  • Artificial neural networks (ANN) and random forest (RF) achieved the highest detection accuracy, with Bertoli et al. reporting 100% F1-score across diverse scan types.
  • The CICIDS2017 dataset was used in 47% of the 34 algorithm experiments, indicating its dominance in recent research.
  • ANN models achieved up to 99.99% accuracy (Hartpence et al.) on the general network traffic dataset, while CNNs reached 99.94% on CICIDS2017 (Singh et al.).
  • The Naive Bayes algorithm showed the lowest performance, with only 37.92% accuracy (Sirisha et al.), highlighting its unsuitability for this task.
  • Despite strong performance, only one study (Bertoli et al.) provided detailed compute resource metrics, and no study included code repositories, limiting reproducibility.
  • A notable shift toward neural network-based models occurred in 2022, suggesting a growing research trend toward deep learning for port scan detection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.