arXiv:2610.11133cs.LGOct 2026

Manuscript Offprint

arXiv:2610.11133

Machine Learning Optimization for Enhanced OS Fingerprinting

Jae Sung Kim, Spencer Ekeroth, Jeremy Neale

Abstract

Operating System (OS) Fingerprinting is a technique that can be used to identify a network's operating systems by evaluating network traffic in the form of TCP/IP packets. This research will explore the effectiveness of passively identifying operating systems on the CIC-IDS2017 dataset, a collection of over 47 gigabytes of pcap files with their corresponding operating systems. This research also proposes a new command line interface, OsirisML, which uses nPrint[6] to preprocess the data into tabular data and XGBoost[8] to apply ML to the data to generate, retrain, and test ML models. When packets are split randomly between training and testing, OsirisML models reach an accuracy of 97.66% on a down-sampled subset of the Friday capture and 84.69% on the entire capture. On the entire Monday capture, which contains no attacks, OsirisML reaches an accuracy of 73.83% and an F-1 score of 79.38%.

1 Introduction

Passive fingerprinting analyzes network traffic offline, which avoids detection from the network. There are many versions of passive fingerprinting tools that can analyze packet capture (pcap) data and attempt to identify the operating system. To generate a new or custom passive fingerprinting model using machine learning, pcap data can be analyzed and used to generate a new model with a tool like nPrintML, which uses nPrint to transform the PCAP data into tabular data, and AutoML [4] automatically generate a ML model from the tabular data.

Given the dynamic nature of network environments, where new OS versions are continuously released, there is a compelling need for tools that can adapt and retrain machine learning models for passive OS fingerprinting to remain effective against the ever-evolving landscape of operating systems.

This research introduces a novel command-line tool, OsirisML, which consists of two main components similar to nPrintML. First, it leverages nPrint to transform network traffic (pcap files) into a normalized tabular format suitable for machine learning. Unlike nPrints alternative, nPrintML, that utilizes AutoML for automated model generation, OsirisML integrates the advanced capabilities of XGBoost—an algorithm renowned for its efficiency with tabular data—to enhance model accuracy and adaptability. The usage of XGBoost [8] for machine learning applications contains 4 components: generating models, testing unseen data with a model (passive fingerprinting), retraining a model on an unseen dataset to generate a new model, and hyperparameter tuning (section 9).

This tool allows for 3 significant advantages over its counterparts:

• Hands-on manipulation of the model creation with custom hyperparameter tuning, file partitioning, and retraining models

• Improved accuracy and F-1 scores from model generation on identical data

• More efficient RAM usage on identical data