You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Micro-VM guests unconditionally boot with root debug console on vsock 1026 #2274
This configuration is applied on every actor boot, independent of whether the --kata-debug flag is enabled.
Impact
The in-guest kata-agent binds an unauthenticated interactive root shell (/bin/bash or /bin/sh) on vsock port 1026.
Any entity with access to the host-side hybrid vsock socket (/run/vc/vm/<actorUID>/hybrid.vsock or inside the worker pod) can connect with CONNECT 1026 and immediately obtain a root interactive shell inside the tenant's micro-VM without authentication or audit logging.
On container start failures (startActorContainers and startRootfsContainer), ateom-microvm calls kata.DebugConsoleDump (run.go:881, 911) to execute shell commands (ip addr, ip route, ip neigh) inside the guest via the debug console and logs the output to host logs.
Proposed Remediation
Remove kata.WithDebugConsole() from the default boot parameters in guestConfig().
Gate agent.debug_console and agent.debug_console_vport=1026 strictly behind --kata-debug=true for local development.
Ensure production builds and release manifests do not enable in-guest debug consoles.
Activity
only enable guest debug console with --guest-debug (agent-substrate#2291