312-50V10 · Question #769
Why containers are less secure that virtual machine?
The correct answer is D. A compromise container may cause a CPU starvation of the host.. Containers share the host OS kernel and resource pool without hardware-enforced isolation, allowing a compromised container to impact host-level resources such as CPU.
Question
Why containers are less secure that virtual machine?
Options
- AHost OS on containers has a larger surface attack.
- BContainers are attached to the same virtual network.
- CContainers may fulfill disk space of the host.
- DA compromise container may cause a CPU starvation of the host.
How the community answered
(21 responses)- A10% (2)
- B5% (1)
- D86% (18)
Why each option
Containers share the host OS kernel and resource pool without hardware-enforced isolation, allowing a compromised container to impact host-level resources such as CPU.
Containers actually shrink the OS attack surface relative to a full VM because they share the host kernel rather than running a separate complete operating system with its own services.
Container network isolation is configurable and containers can be placed on separate virtual networks, making shared networking a deployment choice rather than an inherent security weakness.
Disk space exhaustion is a resource management concern that applies to both VMs and containers and is not the primary architectural security distinction between the two.
Unlike virtual machines, which use a hypervisor to enforce strict CPU, memory, and I/O partitioning at the hardware level, containers rely on OS-level namespaces and cgroups that can be exhausted or bypassed. A compromised container can consume unrestricted CPU cycles, causing starvation for other containers and the host itself, because there is no hypervisor layer enforcing resource boundaries.
Concept tested: Container vs VM isolation and resource security
Source: https://csrc.nist.gov/publications/detail/sp/800-190/final
Topics
Community Discussion
No community discussion yet for this question.