[Paper Review] Using Neural Networks to improve classical Operating System Fingerprinting techniques
This paper proposes using neural networks to enhance classical remote operating system fingerprinting by modeling OS detection as an inference problem, improving accuracy and robustness over traditional 'best fit' heuristics. The approach uses multilayer perceptrons trained on DCE-RPC endpoints and Nmap signatures to classify OS versions and editions, achieving superior performance—especially in distinguishing fine-grained Windows variants—with a 92% reduction in mismatches compared to classical methods.
We present remote Operating System detection as an inference problem: given a set of observations (the target host responses to a set of tests), we want to infer the OS type which most probably generated these observations. Classical techniques used to perform this analysis present several limitations. To improve the analysis, we have developed tools using neural networks and Statistics tools. We present two working modules: one which uses DCE-RPC endpoints to distinguish Windows versions, and another which uses Nmap signatures to distinguish different version of Windows, Linux, Solaris, OpenBSD, FreeBSD and NetBSD systems. We explain the details of the topology and inner workings of the neural networks used, and the fine tuning of their parameters. Finally we show positive experimental results.
Motivation & Objective
- To overcome limitations of classical OS fingerprinting techniques, which rely on heuristic 'best fit' algorithms and fail in non-standard or complex scenarios.
- To model OS detection as a structured inference problem by identifying key discriminative features in network responses.
- To improve detection accuracy and robustness by leveraging neural networks and statistical analysis to extract meaningful patterns from low-level network behavior.
- To reduce reliance on manual rule-based matching by automating feature selection and classification through machine learning.
Proposed method
- A three-layer multiliter perceptron is used: 413 input neurons encode UUIDs and endpoints from DCE-RPC responses, 42 hidden neurons learn feature combinations, and 25 output neurons represent distinct OS versions and service packs.
- Backpropagation with adaptive learning rate and momentum is used to train the network, dynamically adjusting the learning rate based on error trends to accelerate convergence.
- The network is trained in a supervised manner using labeled datasets of OS responses, with random shuffling of input order per epoch to prevent bias.
- Principal component analysis and correlation matrix reduction are applied to identify the most discriminative features in Nmap test responses.
- The system is evaluated using real-world host responses, comparing neural network predictions against classical Nmap and DCE-RPC modules.
- An adaptive learning rate strategy is implemented to improve training speed and stability, reducing convergence time from 14 hours to under 400 generations.
Experimental results
Research questions
- RQ1Can neural networks outperform classical 'best fit' algorithms in classifying operating system versions based on network responses?
- RQ2Which network features (e.g., DCE-RPC endpoints or Nmap signature fields) are most discriminative for OS fingerprinting?
- RQ3How does adaptive learning rate improve training convergence and model generalization in OS fingerprinting?
- RQ4Can the neural network approach detect fine-grained OS differences (e.g., service packs, editions) more reliably than rule-based systems?
- RQ5To what extent can statistical analysis of network responses guide the selection of optimal fingerprinting tests?
Key findings
- The neural network approach achieved a 92% reduction in mismatches—only 2 mismatches compared to 9 in the classical Nmap module—demonstrating significantly higher accuracy.
- The neural Nmap module correctly identified Solaris 8 with a confidence score of 0.99999999999999789, indicating near-perfect classification.
- The adaptive learning rate strategy reduced training time from 14 hours to under 400 generations, achieving faster convergence and lower error levels.
- The system successfully distinguished 25 distinct Windows versions and service packs, with independent output neurons for edition and service pack, improving classification granularity.
- Principal component analysis revealed that specific Nmap test fields (e.g., TCP window size, TTL, and DF bit) were highly discriminative for OpenBSD versions.
- The method reduced false positives and improved detection of subtle OS differences, particularly in Windows systems, by modeling complex feature interactions rather than relying on Hamming distance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.