Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Machine Learning for Intrusion Detection in Network Traffic
Malmö University, Faculty of Technology and Society (TS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Network intrusion detection is a critical safeguard for modern infrastructures. Traditional rule-based and static signature-based systems rely on predefined attack patterns and are effective against known threats. However, they struggle with novel attacks and can generate excessive false alarms. Machine learning (ML) has been widely proposed and applied to enhance intrusion detection by enabling systems to learn patterns in network traffic and identify anomalies beyond predefined signatures. Building on this foundation, this thesis evaluates which category (supervised or unsupervised) and which models within each category perform best for intrusion detection. It evaluates four models, including two supervised classifiers, Support Vector Machine and Random Forest, and two unsupervised detectors, an autoencoder and the HDBSCAN algorithm. Each model is trained and tuned on the CIC IDS 2018 benchmark dataset and then tested on unseen traffic, including simulated zero-day events. Key metrics such as accuracy, precision, recall, F1 score, and false alarm rate are recorded. Results are compared based on overall performance, with one attack type excluded from training to assess resilience against entirely new threats. The analysis provides a neutral ranking of the evaluated models and shows that the most effective strategy is a hybrid, two-layer IDS: a high-precision Random Forest (or similar ensemble) handles the bulk of traffic, while a lightweight autoencoder runs in parallel to flag outliers that deviate from known patterns. This arrangement preserves the near-perfect precision of supervised detection, adds a safety net for emerging threats, fits comfortably on commodity hardware with room for future scale-out, and therefore represents the most practical path forward for a machine-learning-based intrusion-detection system.

Place, publisher, year, edition, pages
2025. , p. 95
National Category
Computer Systems
Identifiers
URN: urn:nbn:se:mau:diva-78661OAI: oai:DiVA.org:mau-78661DiVA, id: diva2:1984505
Educational program
TS Systemutvecklare
Supervisors
Examiners
Available from: 2025-07-16 Created: 2025-07-16 Last updated: 2025-07-16Bibliographically approved

Open Access in DiVA

fulltext(1761 kB)1704 downloads
File information
File name FULLTEXT02.pdfFile size 1761 kBChecksum SHA-512
a9c174f389409c7819924d68aeae2c732d153f1c2ca820e79a1de6000aad93121dc2c3874066f792d174f9b8f6da2c79bb214d3ce0eff79e83cd58826d21bd27
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Flenman, Simon
By organisation
Faculty of Technology and Society (TS)
Computer Systems

Search outside of DiVA

GoogleGoogle Scholar
Total: 1709 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 715 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf