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
After looking at Toolbox for a while I am afraid to say: Toolbox does not separate the data that has to be separated to actually improve security!
For example:
I need ~/.gnupg being inaccessable from the container running my firefox instance.
I need $CONFIDENT_DATA also being seperated from Firefox
I need more than one Firefox instance running.
My proposal is to link $HOME/tbox/$CONTAINERNAME as the users home into the toolbox.
A "send file to container" directory and a "receive data from container" directory would probably be a nice thing, too, but is much harder to implement.
The idea behind toolbox is to provide an easy access to a mutable development environment in which you can install any version of any development tool you want without messing with OS's packages. Initially, it was created for Silverblue, where you couldn't dnf install or pip install, since /usr was immutable.
Security is not the goal, quite the opposite - commands are expected to run in toolbox container with the same level of privilege, not restricting you, as you work inside the container.
If what you need is to run a sandboxed process (like a build script for your app), you should create a normal podman container, and bind mount only the required directories inside.
Security is not the goal, quite the opposite - commands are expected to run in toolbox container with the same level of privilege, not restricting you, as you work inside the container.
If what you need is to run a sandboxed process (like a build script for your app), you should create a normal podman container, and bind mount only the required directories inside.
It would be helpful if a "security is not a goal" statement were added to the README, which is currently silent on Toolbox's intentional lack of security concern.
A malicious container could easily add a malicious sudo binary to ~/.local/bin (or replace any other system binary by using that directory), which could later get executed in the context of the host, leading to full root access on the host.
I'm surprised that Red Hat promotes this approach for their own developers. With open source contributors all over the world and a complex web of software projects, the odds of something or someone in the dependency chain getting compromised seem reasonably probable to happen over time.
Security is not the goal, quite the opposite - commands are expected to run in toolbox container with the same level of privilege, not restricting you, as you work inside the container.
If what you need is to run a sandboxed process (like a build script for your app), you should create a normal podman container, and bind mount only the required directories inside.
It would be helpful if a "security is not a goal" statement were added to the README, which is currently silent on Toolbox's intentional lack of security concern.
A malicious container could easily add a malicious sudo binary to ~/.local/bin (or replace any other system binary by using that directory), which could later get executed in the context of the host, leading to full root access on the host.
How is that different from someone, knowledgeable or otherwise, following malicious instructions from somewhere? Is it because somewhere hidden in the implementation there is a container? Would it be acceptable if there was no container?
I'm surprised that Red Hat promotes this approach for their own developers. With open source contributors all over the world and a complex web of software projects, the odds of something or someone in the dependency chain getting compromised seem reasonably probable to happen over time.
So if the concerns with the toolbox security model seemed theoretical before, they are not now.
And what makes you demand that it's Toolbx's responsibility to protect you from this? Did you file similar complaints about your CLI shell and terminal emulator's security model? What about the security model of GNU Coreutils?
Activity
evelineraine commentedon Nov 3, 2019
Hi,
The idea behind toolbox is to provide an easy access to a mutable development environment in which you can install any version of any development tool you want without messing with OS's packages. Initially, it was created for Silverblue, where you couldn't
dnf installorpip install, since/usrwas immutable.Security is not the goal, quite the opposite - commands are expected to run in toolbox container with the same level of privilege, not restricting you, as you work inside the container.
If what you need is to run a sandboxed process (like a build script for your app), you should create a normal podman container, and bind mount only the required directories inside.
debarshiray commentedon Nov 8, 2019
Yes, as @evelineraine said.
If you want to run graphical applications securely, then I'd suggest looking at Flatpak. Here is one way to install a Firefox Flatpak.
That said, this feature has been requested in the past too. eg., #183
debarshiray commentedon Nov 8, 2019
Duplicate of #183
markstos commentedon Jan 8, 2020
It would be helpful if a "security is not a goal" statement were added to the README, which is currently silent on Toolbox's intentional lack of security concern.
A malicious container could easily add a malicious
sudobinary to~/.local/bin(or replace any other system binary by using that directory), which could later get executed in the context of the host, leading to full root access on the host.I'm surprised that Red Hat promotes this approach for their own developers. With open source contributors all over the world and a complex web of software projects, the odds of something or someone in the dependency chain getting compromised seem reasonably probable to happen over time.
debarshiray commentedon Jun 3, 2026
This was addressed in #1020
How is that different from someone, knowledgeable or otherwise, following malicious instructions from somewhere? Is it because somewhere hidden in the implementation there is a container? Would it be acceptable if there was no container?
And?
markstos commentedon Jun 4, 2026
And exactly this problem recently happened, with Red Hat NPM modules harvesting secrets from home directories:
https://www.stepsecurity.io/blog/multiple-redhat-cloud-services-npm-packages-compromised
So if the concerns with the toolbox security model seemed theoretical before, they are not now.
debarshiray commentedon Jun 8, 2026
And what makes you demand that it's Toolbx's responsibility to protect you from this? Did you file similar complaints about your CLI shell and terminal emulator's security model? What about the security model of GNU Coreutils?