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
[SECURITY] gcc available in sandbox image — unnecessary attack surface #807
The base sandbox image includes gcc, which allows the sandbox user to compile arbitrary native code including shared libraries for LD_PRELOAD injection, exploit code, and custom tooling.
LD_PRELOAD libraries to intercept libc calls and capture secrets passed through function arguments
Custom network tooling to probe internal interfaces
Exploit code targeting kernel vulnerabilities
Recommendation
Remove gcc, g++, make, and build-essential from the sandbox image. If compilation is needed for agent workflows (e.g. pip install with native extensions), provide a separate build-enabled image profile rather than including it in the default.
Environment
openshell 0.0.14
Base sandbox image: ghcr.io/nvidia/openshell-community/sandboxes/base:latest
Related: #796 proposes a command pattern denylist that would provide application-level coverage for this class of issue. Worth addressing together — the image hardening here is the defence-in-depth layer (remove the tool entirely), whilst #796 catches the patterns even if the tool is present via a different path.
✨ Thanks for submitting this security issue, it addresses a potential vulnerability in our sandbox image configuration that could be exploited by an attacker to compile malicious code.
Activity
fix: remove gcc and netcat from sandbox image (NVIDIA#807, NVIDIA#808)
cluster2600 commentedon Mar 24, 2026
Related: #796 proposes a command pattern denylist that would provide application-level coverage for this class of issue. Worth addressing together — the image hardening here is the defence-in-depth layer (remove the tool entirely), whilst #796 catches the patterns even if the tool is present via a different path.
wscurran commentedon Mar 24, 2026
✨ Thanks for submitting this security issue, it addresses a potential vulnerability in our sandbox image configuration that could be exploited by an attacker to compile malicious code.
fix: harden sandbox image — remove unnecessary tools, drop capabiliti…
BenediktSchackenberg commentedon Mar 24, 2026
Addressed in #830 — combined PR that removes gcc/g++/make from the runtime image along with other sandbox hardening.
fix: remove gcc and netcat from sandbox image (NVIDIA#807, NVIDIA#808)
fix: harden sandbox image — remove unnecessary tools, drop capabiliti…
fix: harden sandbox image — remove unnecessary tools, drop capabiliti…
fix: harden sandbox image — remove gcc/netcat, add process limits, dr…
fix: remove gcc and netcat from sandbox image (NVIDIA#807, NVIDIA#808)
fix: harden sandbox image — remove gcc/netcat, add process limits, dr…
fix: remove gcc and netcat from sandbox image (NVIDIA#807, NVIDIA#808)