Soru

Zorluk: OrtaVirtualization and Containerization Security

A DevSecOps engineer is configuring a shared Linux compute host that executes untrusted CI/CD pipeline container images. To minimize the risk of a container process exploiting kernel vulnerabilities or escalating privileges on the underlying host operating system, which of the following controls should be implemented? (Select TWO.)

  1. Enable user namespaces (userns) to map container root UID 0 to an unprivileged user ID on the host OS.Cevap
  2. B
    Deploy a perimeter web application firewall (WAF) to inspect internal OS kernel system calls between containers.
  3. Apply custom SECCOMP profiles to restrict the specific Linux kernel system calls available to containerized processes.Cevap
  4. D
    Rely on default container runtimes to provide hardware-enforced Type 1 hypervisor isolation across tenant workloads.

Cevap

The host environment is secured by configuring user namespaces to map container root privilege to an unprivileged host account and applying SECCOMP profiles to limit accessible kernel system calls.
Implementing user namespaces ensures that even if a container process is compromised as root inside its runtime container, it corresponds to an unprivileged account on the host system. Applying custom SECCOMP profiles further reduces kernel exploitation vectors by enforcing a strict filter on the Linux system calls allowed for the containerized application.

Adım Adım Çözüm

1
Analyze container privilege escalation risks
Identified that containers sharing the host kernel can pose severe risks if a process running as root inside a container breaks out into the host OS.
Container processes run as root by default unless user namespaces remap root (UID 0) inside the container to an unprivileged account on the host.
2
Evaluate syscall attack surface controls
Determined that SECCOMP profiles enforce syscall restrictions directly at the Linux kernel interface.
Restricting unneeded syscalls prevents containers from executing dangerous kernel functions capable of triggering privilege escalation vulnerabilities.

Anahtar Kavram

Container Host Isolation and Kernel Hardening Controls
Bu soruyu puanla