Skip to content
Security & Trust Talking point

A correct security policy that switches on late leaves the container exposed

Black Hat researchers showed that a container can start and be attacked before its security rules take effect.

W
WebPulse Newsroom
AI-assisted · 2 min read
Share on X LinkedIn
A correct security policy that switches on late leaves the container exposed

Photo: Daisa TJ / Pexels

In brief
  • A Black Hat USA 2026 talk showed that a Kubernetes container can run before its security policy is active, and an attacker read a password file in that gap.
  • The speakers' fix is to install the policy before the container is allowed to start, so no unprotected window exists.

A security rule that arrives after the workload starts does not protect the workload during the wait. That was the argument in a Black Hat USA 2026 talk on syscall filtering for microservices. Syscalls are the requests a program makes to the operating system. A speaker on the show described a gap between launching a container and activating its policy, and showed an attack that works inside it.

What was said

In Kubernetes, policies are often loaded by an operator, a program that manages cluster settings. It must find the target container and then set the rules. Meanwhile, the container runtime can already start the container. A speaker on the show put it this way: "The result is a time gap where the container starts before the policy becomes active".

The demonstration used Tetragon, a tool that enforces rules inside the system. The policy was already deployed and was meant to stop a container reading the password file. The attacker deployed the container and ran a script at the same moment, trying repeatedly to read that file. The first run succeeded. After a short delay, the same attack was blocked and the process was terminated. A speaker said: "it worked when we ran it immediately after creating the container."

The speakers called the pause short but gave no duration. In the demo, the attack script retried continuously while the container started. They proposed an OCI prestart hook, a step the container runtime runs before launch. It installs the policy first, so the container cannot start until protection is in place.

Why it matters

Our reading: a policy review that asks only whether the rules are correct misses a second question, which is when they take effect. A tool that loads policy through an operator, in parallel with container start, can leave a window at the start of a new container.

The demo script simply retried until it worked, so a short window was enough. If you run or buy container security, ask vendors when protection becomes active relative to the workload. The people who pay for a gap are whoever's data sits in the new container, and they usually cannot see the timing.

The other side

This was a lab setup the speakers built themselves, using Seccomp and Tetragon on a cluster of their own. The excerpts give no figures on how often real attackers exploit such gaps. The gap itself was described as short.

The proposed fix is also the speakers' own design. Holding a container back until its policy is installed seems likely to add some startup work, but the excerpts do not say how much, or how it behaves at scale. The talk offers a direction, not a proven result.

Written by the WebPulse Newsroom with AI assistance, and checked by our editorial review: every quotation was verified against the recording's transcript. How we use AI.

The conversation this talking point comes from