Skip to main content
QUICK REVIEW

[Paper Review] Analysis of Docker Security

Thanh Nhan Bui, Behnam, Moris|arXiv (Cornell University)|Jan 13, 2015
Cloud Computing and Resource ManagementComputer Science12 references136 citations
TL;DR

This paper analyzes Docker's security posture by evaluating its internal isolation mechanisms—namespaces, cgroups, and copy-on-write file systems—and its integration with Linux kernel security features like SELinux and AppArmor. The study finds Docker provides strong default security but recommends non-privileged containers and kernel-level hardening to further reduce attack surface.

ABSTRACT

Container-based virtualization has gained a significant importance in a deployment of software applications in cloud-based environments. The technology fully relies on operating system features and does not require a virtualization layer (hypervisor) that introduces a performance degradation. Container-based virtualization allows to co-locate multiple isolated containers on a single computation node as well as to decompose an application into multiple containers distributed among several hosts (e.g., in fog computing layer). Such a technology seems very promising in other domains as well, e.g., in industrial automation, automotive, and aviation industry where mixed criticality containerized applications from various vendors can be co-located on shared resources. However, such industrial domains often require real-time behavior (i.e, a capability to meet predefined deadlines). These capabilities are not fully supported by the container-based virtualization yet. In this work, we provide a systematic literature survey study that summarizes the effort of the research community on bringing real-time properties in container-based virtualization. We categorize existing work into main research areas and identify possible immature points of the technology.

Motivation & Objective

  • To evaluate the security level of Docker as a container-based virtualization platform.
  • To assess how Docker leverages Linux kernel security features such as SELinux and AppArmor to harden the host system.
  • To identify vulnerabilities in Docker's default configuration, particularly in networking and privilege escalation.
  • To provide actionable recommendations for improving Docker security in production environments.

Proposed method

  • Static analysis of Docker's architecture and component interactions, focusing on namespaces, cgroups, and the copy-on-write file system.
  • Evaluation of Docker's integration with SELinux using type enforcement and MCS (Multi-Category Security) labeling for inter-container isolation.
  • Analysis of AppArmor integration, including default profile loading and enforcement mode for process confinement.
  • Assessment of Docker's default networking model (virtual Ethernet bridge) for exposure to ARP spoofing and MAC flooding.
  • Security evaluation of privileged container mode and its implications for host compromise.
  • Comparative assessment of attack surface between containers and hypervisor-based VMs, with recommendations for hybrid deployment models.

Experimental results

Research questions

  • RQ1How effective are Docker's internal isolation mechanisms (namespaces, cgroups, file system) in securing containers?
  • RQ2To what extent does Docker leverage SELinux and AppArmor to enhance host and container security?
  • RQ3What are the critical security weaknesses in Docker's default configuration, particularly in networking and privilege management?
  • RQ4How does the attack surface of Docker containers compare to that of traditional virtual machines?
  • RQ5What configuration and deployment practices can significantly improve Docker's security posture?

Key findings

  • Docker provides strong default security through isolation mechanisms like namespaces, cgroups, and the copy-on-write file system, even without additional hardening.
  • SELinux integration via type enforcement and MCS labeling effectively prevents inter-container and host escape attacks by enforcing mandatory access controls.
  • AppArmor integration allows administrators to confine container processes with predefined profiles, and Docker automatically applies a default restrictive profile if none is specified.
  • The default virtual Ethernet bridge in Docker is vulnerable to ARP spoofing and MAC flooding due to lack of traffic filtering, posing a network-level security risk.
  • Running containers in privileged mode grants them nearly full host access, significantly increasing the attack surface and should be avoided in production.
  • The attack surface of containers is larger than that of VMs due to direct kernel access, but this can be mitigated by deploying containers within VMs or using non-privileged containers with strict security policies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.