312-50V13 · Question #190
Why containers are less secure that virtual machines?
The correct answer is A. Host OS on containers has a larger surface attack.. This question explores the fundamental reason why containers are generally considered less secure than virtual machines.
Question
Options
- AHost OS on containers has a larger surface attack.
- BContainers may full fill disk space of the host.
- CA compromise container may cause a CPU starvation of the host.
- DContainers are attached to the same virtual network.
How the community answered
(63 responses)- A89% (56)
- B2% (1)
- C6% (4)
- D3% (2)
Why each option
This question explores the fundamental reason why containers are generally considered less secure than virtual machines.
Containers share the host operating system's kernel, meaning a vulnerability or misconfiguration in that shared kernel can be exploited by any container, potentially affecting all other containers and the host itself. This shared kernel constitutes a larger, single point of failure and attack surface at the host OS level compared to virtual machines, which each run their own isolated kernel.
While containers can consume excessive disk space leading to denial of service, this is a resource management issue rather than a fundamental security vulnerability related to the isolation model itself, which is the primary concern when comparing container and VM security.
A compromised container causing CPU starvation is a resource exhaustion issue, which can lead to denial of service, but it's not the primary architectural reason why containers offer weaker isolation and are considered less secure than virtual machines.
Containers being attached to the same virtual network is a network configuration choice; virtual machines can also be configured with shared virtual networks, so this is not a unique or fundamental reason for containers being less secure than VMs.
Concept tested: Container vs. VM security isolation
Source: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-faq#what-is-the-difference-between-a-container-and-a-vm
Topics
Community Discussion
No community discussion yet for this question.