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
Hardening gVisor sandbox configuration against CPU side-channel risks and binary mismatches #2136
Moving some internal security review bugs to github.
Summary
Untrusted workloads executing within the Substrate environment rely on the gVisor sandbox (runsc) for guest isolation. To prevent cross-tenant and host-level leakage and maintain sandbox integrity across upgrades, the sandbox runtime configuration should be hardened against CPU side-channel attacks and auxiliary binary version divergence.
Technical Details
CPU Core-Sharing Side Channels (SMT):
Processors utilizing Simultaneous Multithreading (SMT / Hyper-Threading) are susceptible to CPU core-sharing side-channel attacks (e.g., L1TF, MDS) when untrusted code co-locates on sibling logical cores. runsc supports the enable-core-tags flag to isolate guest execution using core scheduling tags. On hardware architectures with SMT enabled, enabling core tagging prevents information leakage across sibling threads.
Sandbox Component Version Alignment: runsc resolves auxiliary sidecar binaries located in adjacent directories. If underlying host files or sidecar binaries diverge across upgrades, protocol mismatches or partial patching can weaken sandbox boundaries. Setting --sidecar-release-enforcement-policy=ALWAYS ensures that all spawned auxiliary helper binaries match the exact release build of the main runsc binary.
Code Context
cmd/ateom-gvisor/runsc.go: Spawns and configures runsc execution flags for container creation, startup, checkpoint, and restore.
Proposed Mitigations
Evaluate and conditionally set enable-core-tags=true in cmd/ateom-gvisor/runsc.go when running on platforms with hyperthreading / SMT enabled.
Configure --sidecar-release-enforcement-policy=ALWAYS for runsc invocations to guarantee atomic version alignment across runtime binaries.
Activity
Update default runsc flags configuration
zlammerts-svg commentedon Oct 12, 2026
Fabricio Voznika (@fvoznika) checking on this one, do you have more planned changes to close this out? Thank you!
zlammerts-svg commentedon Oct 13, 2026
PR: #2361
Update default runsc flags configuration
Update default runsc flags configuration
Update default runsc flags configuration
Update default runsc flags configuration
Update default runsc flags configuration
Update default runsc flags configuration (agent-substrate#2361)
BenTheElder commentedon Oct 17, 2026
#2361 is merged
zlammerts-svg commentedon Oct 19, 2026
Thanks Fabricio Voznika (@fvoznika) and Benjamin Elder (@BenTheElder)!!