The COW (Container On Windows) Who Escaped the Silo

Presented at Black Hat USA 2022, Aug. 11, 2022, 3:20 p.m. (40 minutes).

Virtualization and containers are the foundations of cloud services. Containers should be isolated from the real host's settings to ensure the security of the host.<br><br>In this talk we'll answer these questions: "Are Windows process-isolated containers really isolated?" and "What can an attacker achieve by breaking the isolation?"<br><br>Before we jump into the vulnerabilities, we'll explain how Windows isolates the container's processes, filesystem and how the host prevents the container from executing syscalls which can impact the host. Specifically, we'll focus on the isolation implementation of Ntoskrnl using server silos and job objects.<br><br>We'll compare Windows containers to Linux containers and describe the differences between their security architectural designs.<br>We'll follow the scenario of an attacker-crafted container running with low privileges. We'll show in multiple ways how to gain privilege escalation inside the container to NT/System. After gaining NT/System permissions, we'll talk about how we escaped the isolation of the container and easily achieved a dump of the entire host's kernel memory from within the container. If the host is configured with a kernel debugger, we can even dump the host's Admin credentials. <br><br>We'll finish by demonstrating how an attacker-crafted container with low privileges can read UEFI settings and then set them. Using this technique an attacker can communicate between containers and cause a permanent Denial-of-Service (DoS) to a host with default settings, through the UEFI interface.

Presenters:

  • Eran Segal - Research Team Leader, SafeBreach
    Eran Segal is a research team leader, with more than 7 years of experience in cyber security research. Over the last three years, he has been researching security projects in SafeBreach Labs, after serving in various security positions in the IDF. He specializes in research on Windows and embedded devices.

Links:

Similar Presentations: