[Paper Review] Threat Modeling and Security Analysis of Containers: A Survey
This paper conducts a comprehensive threat modeling of the container ecosystem using the STRIDE framework, identifying security vulnerabilities across the entire lifecycle—from image creation to deployment. It surveys existing mitigation strategies, evaluates their strengths and limitations, and outlines key research gaps to guide future work in container security.
Traditionally, applications that are used in large and small enterprises were deployed on "bare metal" servers installed with operating systems. Recently, the use of multiple virtual machines (VMs) on the same physical server was adopted due to cost reduction and flexibility. Nowadays, containers have become popular for application deployment due to smaller footprints than the VMs, their ability to start and stop more quickly, and their capability to pack the application binaries and their dependencies in standalone units for seamless portability. A typical container ecosystem includes a code repository (e.g., GitHub) where the container images are built from the codes and libraries and then pushed to the image registry (e.g., Docker Hub) for subsequent deployment as application containers. However, the pervasive use of containers also leads to a wide-range of security breaches, such as stealing credentials and sensitive data from image registry and code repository, carrying out DoS attacks, and gaining root access to the underlying host. In this paper, we first perform threat modeling on the containers ecosystem using the popular threat modeling framework, called STRIDE. Using STRIDE, we identify the vulnerabilities in each system component, and investigate potential security threats and their consequences. Then, we conduct a comprehensive survey on the existing countermeasures designed against the identified threats and vulnerabilities. In particular, we assess the strengths and weaknesses of the existing mitigation strategies designed against such threats. We believe that this work will help researchers and practitioners to gain a deeper understanding of the threat landscape in containers and the state-of-the-art countermeasures. We also discuss open research problems and future research directions in containers security, which may ignite further research to be done in this area.
Motivation & Objective
- To analyze the full attack surface of the container ecosystem, spanning code repositories, image registries, and runtime environments.
- To identify and categorize security threats and vulnerabilities in containers using the STRIDE threat modeling framework.
- To systematically survey and evaluate existing countermeasures against container-specific threats.
- To highlight limitations in current mitigation strategies and identify open research problems in container security.
Proposed method
- Applied the STRIDE threat modeling framework to map threats across all components of the container ecosystem, including code repositories, image registries, and runtime environments.
- Mapped identified threats to specific threat categories (e.g., Spoofing, Tampering, Elevation of Privilege) and associated vulnerabilities.
- Conducted a systematic literature review of existing mitigation techniques, classifying them by threat type and evaluating their effectiveness.
- Assessed the strengths and weaknesses of mitigation strategies such as cgroups, namespaces, privilege separation, and runtime monitoring using ML.
- Identified limitations in current approaches, including false positives in IDS/IPS, inaccuracy of ML-based anomaly detection, and misconfigurations.
- Provided recommendations for secure configuration practices and highlighted areas requiring further research.
Experimental results
Research questions
- RQ1What are the primary security threats and vulnerabilities across the entire container lifecycle, from code development to production deployment?
- RQ2How effective are existing mitigation strategies in addressing the identified threats in containerized environments?
- RQ3What are the key limitations and shortcomings of current container security mechanisms such as cgroups, namespaces, and capabilities?
- RQ4Which components of the container ecosystem (e.g., Docker Hub, GitHub, Kubernetes) are most vulnerable to compromise and why?
- RQ5What are the open research challenges and future directions for improving container security?
Key findings
- 51% of 4 million Docker Hub images contained exploitable vulnerabilities, with 0.16% (6,432 images) hosting malicious software, primarily cryptocurrency miners.
- Attackers exploited misconfigured Docker API endpoints and default network settings to gain unauthorized access and deploy crypto-mining malware.
- The NSA and other agencies reported large-scale attacks on Kubernetes clusters, including incidents like the Tesla container compromise in 2018.
- Existing mitigation strategies such as cgroups and namespaces are vulnerable to container escape and privilege escalation when misconfigured.
- Machine learning-based anomaly detection for system calls shows promise but suffers from low accuracy and lacks validation across diverse use cases.
- Many mitigation strategies are outdated or insufficient, with no single solution fully addressing the complex, multi-layered threat surface of container ecosystems.
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.