Skip to content

Security Feature: Better $HOME directory separation #320

Closed as not planned
Closed as not planned

Description

@zem

Security Feature Request:

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.

Activity

  1. evelineraine commented on Nov 3, 2019

    @evelineraine
    Contributor

    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 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.

  2. debarshiray commented on Nov 8, 2019

    @debarshiray
    Member

    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

  3. debarshiray commented on Nov 8, 2019

    @debarshiray
    Member

    Duplicate of #183

  4. markstos commented on Jan 8, 2020

    @markstos

    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.

  5. debarshiray commented on Jun 3, 2026

    @debarshiray
    Member

    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.

    This was addressed in #1020

    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.

    And?

  6. markstos commented on Jun 4, 2026

    @markstos

    And?

    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.

  7. debarshiray commented on Jun 8, 2026

    @debarshiray
    Member

    And?

    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.

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions