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
An Intrusion Detection System in a Kubernetes Cluster
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Background: Intrusion Detection Systems (IDS) are essential for monitoring and analyzing network or system activities to detect malicious actions or policy violations. However, applying traditional IDS solutions to the dynamic, distributed framework of microservices—especially in a Kubernetes cluster—faces numerous shortcomings. These systems often struggle to adapt to the rapid deployment and fluid nature of a Kubernetes cluster, where each pod can become a potential attack vector for security threats.

Objectives: The objective of this thesis is divided into three parts:

  • To perform a literature review on intrusion detection systems in Kubernetes/microservices cloud-native environments.
  • Develop an intrusion detection system that is implemented at the pod level in a Kubernetes cluster.
  • Evaluate the intrusion detection system in a Kubernetes cluster.

Methods: A literature review is conducted to examine the current landscape of Kubernetes-compatible IDS solutions. This is followed by a formal experiment involving the development and deployment of a hybrid IDS that combines rule-based(Snort), supervised (KNN), and unsupervised (Isolation Forest) models. Network traffic is captured at the pod level using Ksniff and processed into flow data using CICFlowMeter. Model evaluation is performed on the improved CICIDS dataset.

Results: The system demonstrates successful detection of known attacks using the KNN model, with reasonable precision and recall scores. Isolation Forest effectively flagged novel or anomalous activity, though with some false positives. While the architecture proves viable as a concept, real-time implementation is hindered by significant inference latency introduced in the data pipeline. Additionally, the CICIDS dataset was the most applicable among publicly available sources, although gaps remain in modeling Kubernetes-native behaviors.

Conclusions: This thesis validates the feasibility of hybrid IDS deployment at the pod level in Kubernetes. The layered approach enhances detection coverage, especially in environments with encrypted service mesh traffic. However, current limitations in dataset realism, system latency, and access requirements highlight the need for further optimizations. Future work should focus on reducing latency, expanding model diversity, and developing datasets that better reflect modern Kubernetes threat landscapes.

Place, publisher, year, edition, pages
2025. , p. 65
Keywords [en]
Kubernetes, Intrusion Detection System, Machine Learning, Network Flow, Anomaly Detection
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:bth-28432OAI: oai:DiVA.org:bth-28432DiVA, id: diva2:1986733
External cooperation
Ericsson AB
Subject / course
DV2572 Master's Thesis in Computer Science
Educational program
DVADA Master Qualification Plan in Computer Science
Supervisors
Examiners
Available from: 2025-08-07 Created: 2025-08-03 Last updated: 2025-09-30Bibliographically approved

Open Access in DiVA

An Intrusion Detection System in a Kubernetes Cluster(1352 kB)429 downloads
File information
File name FULLTEXT01.pdfFile size 1352 kBChecksum SHA-512
1fa5012c4c63b4e735f9aa92cc3916e148c71ed1e53e1f5835007ef2a10c6a5e164e7aa4f9ffc1731a76c320dc75f1373772a3e36fa4e6dc0276850b2da6230a
Type fulltextMimetype application/pdf

By organisation
Department of Computer Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 432 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: 753 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