5 ms·
Sandboxes laregely solve this. The claude/codex built in sandboxes with prompting setup is not good enough. On Mac you now have Apple Container which is a light
by gregwebs 1mo ago
Sandboxes laregely solve this. The claude/codex built in sandboxes with prompting setup is not good enough.
On Mac you now have Apple Container which is a lightweight Linux VM. You still need to block network access.
For defense in depth, I also run it as a separate user. If you aren't using a VM/container you should defintitely do this.
On Mac you can login as an LLM user (you need to create the user first), then switch back to your user and run as the LLM user from a terminal:
sudo /bin/launchctl asuser $(id -u $AI_USER) /usr/bin/sudo -H -u $AI_USER -- "$@"
Don't let that user exfiltrate your data.
chmod 0700 $HOME
I forked a project (mostly to block network access) that makes running in Apple Container/Docker more convenient and am working on further improvements: https://github.com/gregwebs/claude-contained/ https://github.com/gregwebs/claude-contained/
- SegmentTree 1mo agoI agree. I am using Eclipse Enclave with great success to sandbox my agents https://github.com/eclipse-enclave/enclave https://github.com/eclipse-enclave/enclave
- gregwebs 1mo agoThanks for pointing to that project- I am glad there are more options out there and hope to discover more. Requiring a root docker setup is a non-starter for me though and I am otherwise taking some different design approaches that I think lead toward better security (perhaps at the cost of some convenience), but the concept is basically the same.