Live data from Hacker News

Show HN: Zerobox – Sandbox any command with file, network, credential controls

github.com

81–90 of 108 posts

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#81
post #4

Personally I would probably always reach for a docker container if I want a sandboxed command that can run identically anywhere. I appreciate that alternate sandboxing tools can reduce some of the heavier parts of docker though (i.e. building or downloading the correct image) How would you compare this tool to say bubblewrap https://github.com/containers/

[flagged]

You are a bot. Botting HN is not allowed. Leave.

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#82
Hey - I'd love for you to add a documented / standard way to use this inside dockers so we can use build on it for various agentic efforts. I've solved getting bubblewrap to work inside a docker once for the nanobot project, but the folks there are dragging their feet on incorporating sandboxing.

https://github.com/HKUDS/nanobot/pull/1940

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#83
post #82

Hey - I'd love for you to add a documented / standard way to use this inside dockers so we can use build on it for various agentic efforts. I've solved getting bubblewrap to work inside a docker once for the nanobot project, but the folks there are dragging their feet on incorporating sandboxing. https://github.com/HKUDS/nanobot/pull/1940

I've been testing this on Docker today, including the credential injection, env vars, net calls control. I will add more docs but one interesting use case would be to have something like `zerobox --profile nanoclaw -- nanoclaw`, or something similar.

I'd like to hear your thoughts.

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#84
post #35
post #24

Earlier quoted context omitted.

The problem is that those underlying frameworks can very easily be misconfigured. I need to know that the higher level sandboxing tools were written by people with a deep understanding of the primitives that they are building on, and a very robust approach to testing that their assumptions hold and they don't have any bugs in their layer that affect the security of the overall system. Most people are building on top…

> The problem is that those underlying frameworks can very easily be misconfigured. Agreed. I'm sure a number of these sandboxing solutions are vibe-coded, which makes your concerns regarding misconfigurations even more relevant.

I'm sure 100% of them are vibe coded. We were all wondering where this new era of software is, and now it's here, a bunch of nominally different tools that all claim to do the same thing.

I'm thinking the LocalLLM crowd should take their LLMs to trying to demolish these sandboxes.

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#85
post #82

Hey - I'd love for you to add a documented / standard way to use this inside dockers so we can use build on it for various agentic efforts. I've solved getting bubblewrap to work inside a docker once for the nanobot project, but the folks there are dragging their feet on incorporating sandboxing. https://github.com/HKUDS/nanobot/pull/1940

I've been testing this on Docker today, including the credential injection, env vars, net calls control. I will add more docs but one interesting use case would be to have something like `zerobox --profile nanoclaw -- nanoclaw`, or something similar. I'd like to hear your thoughts.

I'll give it a shot later today, but basically you need a pretty specific seccomp profile (see my example - I pulled from the podman repo) to allow bubblewrap to run inside an unpriviledged docker.

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#86
post #70

Earlier quoted context omitted.

[flagged]

Clearly a bot. Leave. Not allowed under site rules.

Nope, just a guy who's been lurking since 2011 and finally has opinions. I'll work on being less organized about it.

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#87
post #58

Earlier quoted context omitted.

simonw, I have been seeing "credential injection" and "credential tokenizing" (a la tokenizer: https://github.com/superfly/tokenizer ). I'm also seeing credential "surrogates" mentioned. I am currently working on a mitm proxy for use with devcontainers to try to implement this pattern, but I'm certainly not the only one!

Thanks, I think I'll go with "credential injection" since the word "tokenization" has other meanings that I find confusing here.

I agree, but I don’t love the negative connotations of “Injection” in this space!

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#88
post #40

Earlier quoted context omitted.

Being able to mix and match profiles would be neat.

Give me 2 days :)

The `--build-profile` / `--profile` thing is a good idea, but typically you'd want to just save all of the access that the program does without prompting.

Programs will access many files and directories on startup, and it would be extremely tedious to have to manually approve each one. So you'd auto-approve all and save them to the profile. This is TOFU principles applied to sandboxing. The assumption being that "this first time I run it naked, it's unlikely to do anything malicious, let me enforce that behavior for the future."

Re: Show HN: Zerobox – Sandbox any command with file, network, credential controls

#89
post #58

Earlier quoted context omitted.

Thanks, I think I'll go with "credential injection" since the word "tokenization" has other meanings that I find confusing here.

I agree, but I don’t love the negative connotations of “Injection” in this space!

"Credential proxy pattern" might work.
Post reply on HN