Automated Kubernetes workload hardening using a functionality oracle
| dc.contributor.author | Petermann, Mathias | |
| dc.contributor.mentor | Graf, Sebastian | |
| dc.date.accessioned | 2025-09-25T06:22:08Z | |
| dc.date.issued | 2025-09-05 | |
| dc.description.abstract | Kubernetes 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.uri | https://irf.fhnw.ch/handle/11654/52556.2 | |
| dc.identifier.uri | https://doi.org/10.26041/fhnw-13664 | |
| dc.language.iso | en | |
| dc.publisher | Hochschule für Informatik FHNW | |
| dc.rights.uri | http://rightsstatements.org/vocab/InC/1.0/ | |
| dc.spatial | Windisch | |
| dc.subject | Kubernetes | |
| dc.subject | Heuristic Testing | |
| dc.subject | Workload Hardening | |
| dc.subject.ddc | 005 - Computer Programmierung, Programme und Daten | |
| dc.title | Automated Kubernetes workload hardening using a functionality oracle | |
| dc.type | 11 - Studentische Arbeit | |
| dspace.entity.type | Publication | |
| fhnw.InventedHere | Yes | |
| fhnw.StudentsWorkType | Bachelor | |
| fhnw.affiliation.hochschule | Hochschule für Informatik FHNW | de_CH |
| fhnw.affiliation.institut | Institut für Mobile und Verteilte Systeme | de_CH |
| relation.isAuthorOfPublication | 77304524-7547-4027-8516-e4e435568628 | |
| relation.isAuthorOfPublication.latestForDiscovery | 77304524-7547-4027-8516-e4e435568628 | |
| relation.isMentorOfPublication | 00d4c4c6-4272-4ff1-a456-9092a71473fa | |
| relation.isMentorOfPublication.latestForDiscovery | 00d4c4c6-4272-4ff1-a456-9092a71473fa |