Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Meta VR Glasses(meta.com)
    144comments
  2. Linux support is coming to Snapdragon X2 Series(qualcomm.com)
    63comments
  3. Claude discovers a novel enzyme system with CRISPR-like repeats(anthropic.com)
    528comments
  4. VSCode's SSH Agent Is Bananas (2025)(fly.io)
    86comments
  5. ArXiv receives multiyear commitments to support it as an independent nonprofit(arxiv.org)
    7comments
  6. The "Windows XP Box" (2003)(mini-itx.com)
    7comments
  7. Mercury 2.5 LLM hits 770 tokens per second(artificialanalysis.ai)
    20comments
  8. FLAWED's Flaws and What This Means for Industry Research(suhacker.ai)
    discuss
  9. Fixing the Portobello Police Station Clock(pointinthecloud.com)
    88comments
  10. We just shipped support for the ugliest part of HTTP: Vary(cloudflare.com)
    9comments
  11. LensVLM: Compressing long context as images, expanding only relevant pages(huggingface.co)
    6comments
  12. The mystery animal on an ancient god's head(signoregalilei.com)
    16comments
  13. Italian parliament votes for return to nuclear energy(apnews.com)
    382comments
  14. A brief history of Windows scroll bar shortcuts(devblogs.microsoft.com/oldnewthing)
    48comments
  15. Show HN: An open-source manufacturing ERP/MES/QMS(carbon.ms)
    discuss
  16. Making Tailscale Faster(tailscale.com)
    31comments
  17. Gemini 3.8 text-to-speech(blog.google)
    124comments
  18. The Curious Power of Punctuation(newyorker.com)
    3comments
  19. Radicle: Disclosure of Vulnerability in the Network Protocol(radicle.dev)
    48comments
  20. Tokens too cheap to meter(jyn.dev)
    179comments
  21. Augustofaces: Pareidolia Fine Art(augusto.at)
    1comments
  22. Swap, ZRAM, Zswap and Hibernate on NixOS(matthewbrunelle.com)
    7comments
  23. A refined phylochronology of the second plague pandemic in Western Eurasia(pnas.org)
    discuss
  24. I don't want the details(michaelheap.com)
    194comments
  25. Z80 REPL (2018)(abagames.github.io)
    18comments
  26. Claude Code reads AGENTS.md only when telemetry is on [fixed](szypowi.cz)
    255comments
  27. Show HN: I built a post-mortem debugger for native Windows x64/x86 crashes(forensicdbg.com)
    5comments
  28. QuestDB (YC S20) Is Hiring a Sales Engineer(questdb.com)
    discuss
  29. Once Claude can measure something, it can make it faster(claude.dev)
    104comments
  30. 28% of job postings on company career sites have been open over 90 days(unlisted.careers)
    298comments

A deep dive on agent sandboxes

68 pointsby 8mo agopierce.dev
20 comments
8mo agoHN ↗

I would like to see more articles about agent sandboxes. With agents gaining popularity we need a higher fraction of users to understand containers and sandboxes and their risk profiles, and then to communicate their understandings to friends and family. It is a harder task than explaining ChatGPT, and it often feels like a hindrance.

8mo agoHN ↗

6 months back I started dockerizing my setup after multiple npm vulnerabilities.

Then I wrote a small tool[1] to streamline my sandboxing.

Now, I run agents inside it for keeping my non-working-directory files safe.

For some tools like markdown linter, I run them without network access as well.

1- https://github.com/ashishb/amazing-sandbox

8mo agoHN ↗

This looks awesome! Do you have a mental process you run through to determine what gets run in the sandbox, or is it your default mode for all tools?

8mo agoHN ↗

This looks awesome! Do you have a mental process you run through to determine what gets run in the sandbox, or is it your default mode for all tools?

Here's what I use it for right now

- yarn - npm - pnpm - mdl - Ruby-based Markdown linter - fastlane - Ruby-based mobile app release tool by Google - Claude Code - Gemini CLI

Over time, my goal is to run all CLI-based tools that only need access to the current directory (and not parent directories) via this.

8mo agoHN ↗

Why not just use the standard Linux tool bubblewrap?

8mo agoHN ↗

Very nice! Quite a coincidence, but the NPM disaster also prompted me to build litterbox.work as a possible solution. It is a very different approach though.

8mo agoHN ↗

Interesting project.

This won't work on Mac, right?

8mo agoHN ↗

Of course not. But it is not needed, as Mac users are not interested in data safety.

8mo agoHN ↗

Unfortunately not since it is very much designed for Linux. I imagine it should work fine inside a Linux VM on Mac though.

8mo agoHN ↗

Why not just use the standard Linux tool bubblewrap?

8mo agoHN ↗

The main reason is that in addition to sandboxing, I also wanted something similar to dev-containers where I can have a reproducible development environment. I guess that can also be achieved with Bubblewrap, but when you want to run containers anyway, it seems silly to not just use Podman.

8mo agoHN ↗

Hugged to death? Seeing SSL failure to the site from CloudFlare.

8mo agoHN ↗

Totally, devcontainers are fantastic! In this agent sandboxing space there's also Leash, which in addition to Docker/Orbstack/Podman provides a sophisticated macOS-native system extension mode - https://github.com/strongdm/leash

8mo agoHN ↗

I don't think containers are enough especially for the security side of things.

Imo microvm's+ dev containers seem like a good fit though

8mo agoHN ↗

The secret proxy trick is something I expect to become standard at some point in the near future. I first saw this trick being used in Deno Sandboxes (https://docs.deno.com/sandboxes/security/) but it's cheap/easy to implement so I'd be surprised if this doesn't become the standard for a lot of these BaaS platforms.

8mo agoHN ↗

Very interesting read, I had no idea agents already had so much sandboxing built in! It does seem like this is probably not enough though.

A few months ago I built https://github.com/Gerharddc/litterbox (https://litterbox.work/) primarily to shield my home directory from supply-chain attacks, but I imagine it could be very useful for defending against rogue agents too. Essentially it is a dev-container-like system for Linux built on rootless Podman with a strong focus on isolation and security.

A key difference to normal dev-containers is that it encourages placing your entire dev environment (i.e. also the editor etc.) inside the container so that you are even protected from exploits in editor extensions for instance. This also makes it safer to allow agents (or built tools) to for instance install packages on your system since this is not the "real" system, it is only a container.

Another important feature I added to Litterbox (and one I have not seen before) is a custom SSH agent which always prompts the user to confirm a signing operation through a pop-up. This means that things inside a Litterbox do not have unrestricted access to your normal SSH agent (something which could provide rogue actors access to your Github for instance).

8mo agoHN ↗

Cool article. It makes me think about an "old school Unix" approach which might work for some use-cases.

Essentially, the untested brainstorming-only idea is:

  1. Make $HOME have 0751 permissions
  2. Assume the dev project exists in $HOME/foo and has
     0715 permissions
  3. Assume $HOME/foo/src is where all source code resides
     and has 0755 permissions (recursively)
  4. Install the agent tools with a uid:gid of something
     like llm:agent
  5. Turn on the setuid/setgid bits for executable(s) in
     the agent tools or make wrapper script(s) having
     same which delegate to agent tools

This would ensure agent tooling could not read nor modify $HOME, only be able to read $HOME/foo (top-level project directory) and its files (assuming `o+r` is the default), and could only modify files in $HOME/foo/src having `o+w` permission as well. If agent directory creation in $HOME/foo/src is desired, enable `o+w` on it and directories within it.

There is probably some "post agent use" processing that would be needed as well.