News for hackers. Stuff that matters.
Re:Syd the perhaps most sophisticated sandbox for Linux by nklhlk on Saturday July 20, 2024 @07:26AM (#41015698)
Syd sounds like a game-changer for Linux sandboxing! Given how it logs, prevents, and even tests against attacks in real-time, it seems like a robust solution for securing user space. The idea of replacing insecure calls and verifying checksums of binaries and libraries before execution is particularly impressive. Has anyone here experimented with Syd in a production environment? How does it compare to other solutions like SECCOMP or OpenBSD's pledge in terms of performance and ease of use?
Re:Syd the perhaps most sophisticated sandbox for Linux by hayali on Saturday July 20, 2024 @08:19AM (#41015957)
Thank you for your kind words. As the author of syd and an Exherbo developer, I am working on a sibling distro called "Hardened Exherbo": https://hexsys.org. The idea is to contain all service daemons with Syd. I don't have much to show yet but I have successfully contained some daemons:

1. rsyslog: https://gitlab.exherbo.org/exherbo/arbor/-/blob/hex/packages...

2. openntpd: https://gitlab.exherbo.org/exherbo/arbor/-/blob/hex/packages...

3. nginx: https://gitlab.exherbo.org/exherbo/net/-/blob/hex/packages/w...

rsyslog and openntpd profiles may be slightly outdated. I am particularly proud about the nginx profile, it demonstrates many things above all SafeSetID and Binary verification. Note, nginx profile is only configured for static file serving, if you have app servers you're gonna have to allow them as well.

Syd has a trace mode when the access violations are only logged and allowed. The utility Pandora uses this mode to provide a learning mode. You can read more about pandora here: https://crates.io/crates/pandora_box

Pandora is really nice, it'll trim too long paths turning them into globs and calculate checksums for all the binaries and libraries used and invoking it is as easy as e.g. "pandora profile firefox".

Re:Syd the perhaps most sophisticated sandbox for Linux by hayali on Saturday July 20, 2024 @08:28AM (#41015999)
slight correction, it's "pandora profile -mtrace/allow_unsafe_memory:1 firefox", as firefox by default uses JIT which needs WX memory.