Automated Kubernetes workload hardening using a functionality oracle

dc.contributor.authorPetermann, Mathias
dc.contributor.mentorGraf, Sebastian
dc.date.accessioned2025-09-25T06:22:08Z
dc.date.issued2025-09-05
dc.description.abstractKubernetes allows workloads to be deployed in sandboxed environments using containerization, offering fine-grained runtime restrictions via securityContext configurations. However, determining whether an application continues to function correctly under increasingly restrictive settings remains a challenge, especially when conventional testing methodologies require application-specific knowledge or integration tests. This thesis presents a methodology for automated workload hardening, without requiring internal knowledge of the workload under test. A Kubernetes Operator was developed that iteratively restricts container runtime permissions and evaluates the functional correctness of workloads using a set of heuristics. These heuristics rely on telemetry signals such as container logs, and resource metrics, gathered during controlled check runs and compared against a recorded baseline. Log analysis is performed using the Drainalgorithm, while time series data are evaluated through statistical summaries. The operator clones the workload’s Namespace to preserve isolation, executes checks for different configurations, and synthesizes a recommended securityContext configuration based on the outcome. Real-world workloads were used for evaluation, alongside custom workloads targeting specific runtime constraints. The results demonstrate that functionality-based hardening is feasible with minimal assumptions, and that log-based heuristics are particularly elective for detecting deviations. The operator-based approach integrates seamlessly with Kubernetes environments and supports developer workflows by providing actionable hardening recommendations.
dc.identifier.urihttps://irf.fhnw.ch/handle/11654/52556.2
dc.identifier.urihttps://doi.org/10.26041/fhnw-13664
dc.language.isoen
dc.publisherHochschule für Informatik FHNW
dc.rights.urihttp://rightsstatements.org/vocab/InC/1.0/
dc.spatialWindisch
dc.subjectKubernetes
dc.subjectHeuristic Testing
dc.subjectWorkload Hardening
dc.subject.ddc005 - Computer Programmierung, Programme und Daten
dc.titleAutomated Kubernetes workload hardening using a functionality oracle
dc.type11 - Studentische Arbeit
dspace.entity.typePublication
fhnw.InventedHereYes
fhnw.StudentsWorkTypeBachelor
fhnw.affiliation.hochschuleHochschule für Informatik FHNWde_CH
fhnw.affiliation.institutInstitut für Mobile und Verteilte Systemede_CH
relation.isAuthorOfPublication77304524-7547-4027-8516-e4e435568628
relation.isAuthorOfPublication.latestForDiscovery77304524-7547-4027-8516-e4e435568628
relation.isMentorOfPublication00d4c4c6-4272-4ff1-a456-9092a71473fa
relation.isMentorOfPublication.latestForDiscovery00d4c4c6-4272-4ff1-a456-9092a71473fa
Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
functionality-oracle-unsigned.pdf
Size:
1.58 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.66 KB
Format:
Item-specific license agreed upon to submission
Description:

Version History

Now showing 1 - 2 of 2
VersionDateSummary
2*
2025-09-24 13:34:01
Uploading PDF
2025-09-10 12:46:06
* Selected version