Docker’s shared kernel model is hitting a hard limit now that large language models (LLMs) generate and run code on the fly—without a human ever reviewing it. Imagine a script created by AI executing in milliseconds, possibly hijacked through prompt injection, all running on a kernel shared by every container on the host. Security flaws like CVE-2024-1086 and several runC vulnerabilities have proven that this shared approach can be catastrophically exploited, even years after patches.
The real solution isn’t tweaking Docker configs—it’s moving untrusted workloads off the shared kernel entirely. That means microVMs like Firecracker or Kata Containers, which isolate each workload with its own kernel. Pair that with strict default-deny egress policies and patched runC with user namespaces, and you push security boundaries from shared software layers down to hardware.
For anyone wrestling with running code generated at runtime, this layered approach is crucial. Curious how this fits into real-world AI security? I mapped it all out in detail here: [link to ToxSec Substack].
#containersecurity #AIsecurity #DevSecOps #LinuxSecurity #CloudNative
