Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. OpenAI GPT–6 Astra breaks Enigma message that has resisted solution since 2005(cryptocellar.org)
    179comments
  2. OpenAI is about to eat Jev's lunch – Arcturus Labs(arcturus-labs.com)
    31comments
  3. Jev – a curation of Jev demos on X, tools, skills, and integrations(github.com/amal-david)
    2comments
  4. Show HN: Drop – a rootless Linux sandbox with gVisor support(droprun.sh)
    10comments
  5. Apple has added persistent 'ads' to iOS, and it's driving users crazy(techradar.com)
    61comments
  6. Can gzip be a language model?(nathan.rs)
    114comments
  7. MiMo v2.6(xiaomi.com)
    455comments
  8. If you start writing today, there's no way to know if you can write without AI(ssp.sh)
    discuss
  9. Quantum information spreading via higher-order operator correlators(arxiv.org)
    discuss
  10. Spymarks, Not Watermarks(brand.io)
    141comments
  11. Line Scan Photos from MUNI Heritage Weekend in San Francisco(lawrence.lu)
    14comments
  12. We broke an Over-The-Air update on the ESP32 on purpose(groundrun.io)
    2comments
  13. Attention is all you have(alicegg.tech)
    290comments
  14. Transformers Explained Visually(poloclub.github.io)
    79comments
  15. I said no and Apple said yes(dbushell.com)
    453comments
  16. Muse, Meta's extraordinarily privileged AI assistant, has a serious 0-day(arstechnica.com)
    2comments
  17. What Sun got wrong(dtrace.org)
    369comments
  18. Solitaire Alone Together(solitairealonetogether.com)
    discuss
  19. A font that reads what you wrote(rohanadwankar.github.io)
    32comments
  20. AMD's random number generator can't generate a 0?(flatassembler.net)
    130comments
  21. I don't want to read what you didn't write(colinbreck.com)
    370comments
  22. AI Has No Wisdom and Neither Will You(alexn.org)
    408comments
  23. What It's Like to Work in One of America's Data Centers(wsj.com)
    37comments
  24. MiMo-v2.6-Pro: Intelligence, Performance and Price Analysis(artificialanalysis.ai)
    47comments
  25. 9 Ads per Minute: FIFA Cup 26 – "the price of the beautiful game"(bristol.ac.uk)
    179comments
  26. Engineering Memory: On learning to memorize first 100 digits of pi (2024)(gregorygundersen.com)
    30comments
  27. People Training OpenAI's AI Fired for Using AI to Train the AI(404media.co)
    28comments
  28. AI coding has made CI a bottleneck, so we reworked ours to keep up(linear.app)
    351comments
  29. What Capital Never Told You About Rent(humansontheloop.com)
    27comments
  30. Verda (Finland) raises $189M in Series B(verda.com)
    29comments

Show HN: Drop – a rootless Linux sandbox with gVisor support

56 pointsby 1h agodroprun.sh
10 comments
I created Drop because I always felt uneasy installing and running third-party programs using my main user account. A single compromised dependency means a full compromise of the system. What is even worse, because I ship software from my computer, a single compromised dependency can lead to compromise of all the users of my software.

Containers and VMs are one solution, but for local work, they are often detrimental to productivity. It takes effort to configure a machine with all the tools and configs needed for productive work, but a container or a VM will be stripped of all these tools. This is great for production deployments, where the aim is a reproducible system with minimal dependencies, but can get in the way of productive local work.

Drop is language independent, but the workflow is inspired by Python's virtualenv. With virtualenv the environment isolation is only a convention that relies on installed dependencies being good citizens. With Drop the isolation is enforced.

Each Drop environment gets its own writable and easily disposable home dir, with only selected config files and dirs from the original home mounted, mostly read-only.

Drop uses Linux namespaces for isolation (user, mount, network, PID, IPC, cgroup), doesn't require root and, as an option, uses gVisor user-space kernel, which adds protection against exploiting host kernel vulnerabilities to escape the sandbox.

I don't want to make the introductory post too lengthy, but I'm here to answer any questions and give any additional technical details.

Note: This is my 3rd submission of the project, the first two did not draw attention. Since then I have added support for gVisor and created a project website to better explain the concept and organize documentation.

43m agoHN ↗

So, the primary advantage of this over bubblewrap is the insulation layer between the program and kernel syscalls?

30m agoHN ↗

Bubblewrap is a low level tool, it describes itself as a sandbox building block, rather than a high-level sandbox intended to be used directly (for example, Flatpak uses bubblewrap as its building block). Drop in contrast is high-level, designed to be used directly in day-to-day work without the need to assemble the low-level details of the sandbox.

37m agoHN ↗

Have you ever tried to use proot?

It does not use process namespaces, and can run on Android (on Termux with proot-distro).

25m agoHN ↗

Hi OP, funny enough I’m working on something very similar. Lots of us are I guess! Take that as validation of your thinking.

I like that your readme has a couple paragraphs comparing to popular tools in this space. Personally I feel it is a bit light on the security differentiators (if any). For example you are using the same fundamental primitives that are used in nsjail, runc, etc. Thus it seems you have recreated those libraries in some aspects, so would be curious to hear your rationale for approaching this way vs building explicitly on those primitives.

20m agoHN ↗

This is super interesting to me. I've slowly been working on something similar (https://gitlab.com/saghm/tartarus) because my ideal sandboxing is "prevent writing to anything outside this dir but still allow reading to most things so that I don't have to manually copy things into a container/VM". I approached it by trying to figure out how to build up a bubblewrap based on a config that gave the properties I wanted, with the hope that I could eventually expand it to support other platforms via stuff like `sandbox-exec` on MacOS, but I haven't had time to work on it more for a while.

At a glance, this seems to be providing most of what I was originally looking for when I ended up deciding I'd have to write it myself, but focusing specifically on Linux and providing a more full-fledged sandbox rather than only caring about a small set of permissions that I personally had a need for. Probably the biggest (and least hardened) feature that I spent time on in mine was trying to figure out how to allow arbitrary GUI apps so that I could run agents in it via Zed.

I'm definitely going to try this out and see how well it works for me. It's insane to me that this is something none of the big AI companies have bothered solving this yet other than via opaque rules built into their harnesses or absolutely awful manual rules that expect me to hard-code shapes of shell commands that I want to allow or not allow.

16m agoHN ↗

my ideal sandboxing is "prevent writing to anything outside this dir but still allow reading to most things so that I don't have to manually copy things into a container/VM"

That's what Codex does out of the box, and it's not good against malware - i.e. a rogue npm packet (or even just codex after prompt injection) can read your ssh key and send it to the attacker.

4m agoHN ↗

This is exactly what I was looking for - the website and docs are easy on the brain. I have some apps hosted on distrobox containers that I'd rather not have write access to my home dir.

3m agoHN ↗

How is this different than bwrap or srt and others? Im using bwrap to achieve read only everywhere and and write on pwd. Also pi and other coding agents all have sandboxing that work in similar way