This looks spectacular! Finally! This is functionality I've desperately wanted on Linux desktop. Link that up with with some of the SELinux on-demand tools and you have a plausible way to run untrusted binaries without the overhead of completely containerizing them up front.
without the overhead of completely containerizing them up front. What overhead? `docker run --rm -it -v $PWD/untrustedprogram:/untrustedprogram:ro ubuntu:latest`, done. Use x11docker if needed.
EBPFSnitch: An eBPF based Linux Application Firewall
51–60 of 71 posts
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#52Earlier quoted context omitted.
without the overhead of completely containerizing them up front. What overhead? `docker run --rm -it -v $PWD/untrustedprogram:/untrustedprogram:ro ubuntu:latest`, done. Use x11docker if needed.
Wouldn’t you need something like gvisor and or running under a different user or podman to make this really safe? If you don’t trust the binary they can still just break out the container.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#53For those who're unaware. ebpf: extended berkeley packet filter Unfortunately, even the website https://ebpf.io/what-is-ebpf doesn't mention this. Interestingly, I was unable to find the words packet filter used together as well or firewall. I might be wrong. I know that if you know what it is you'd know but trying to explain that to my partner here just glancing at my screen wasn't easy.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#54For those who're unaware. ebpf: extended berkeley packet filter Unfortunately, even the website https://ebpf.io/what-is-ebpf doesn't mention this. Interestingly, I was unable to find the words packet filter used together as well or firewall. I might be wrong. I know that if you know what it is you'd know but trying to explain that to my partner here just glancing at my screen wasn't easy.
The ebpf site doesn’t mention that because expanding the abbreviation is not helpful for understanding ebpf. The name is representative the past of ebpf, not its present use or future.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#55This looks spectacular! Finally! This is functionality I've desperately wanted on Linux desktop. Link that up with with some of the SELinux on-demand tools and you have a plausible way to run untrusted binaries without the overhead of completely containerizing them up front.
without the overhead of completely containerizing them up front. What overhead? `docker run --rm -it -v $PWD/untrustedprogram:/untrustedprogram:ro ubuntu:latest`, done. Use x11docker if needed.
Not sure if running a program as root in a container is the best approach to "fully sandbox" - depends on what the goal is, obviously.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#56Earlier quoted context omitted.
The ebpf site doesn’t mention that because expanding the abbreviation is not helpful for understanding ebpf. The name is representative the past of ebpf, not its present use or future.
That’s not an excuse to not explain wtf the name means. It’s literally one of the first questions that always comes up when I explain ebpf to people.
In a sense eBPF as just some letters being a name is a better name than "extended Berkeley Packet Filter", just like DPRK is a better name than "Democratic People's Republic of Korea", since 75% of the words in the expanded acronym aren't even relevant or true.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#57Earlier quoted context omitted.
Be careful with that one, this isn't as capable as the HIDS solutions available on Windows - it's not going to do things like detect exfiltration using other executables or modification of other files on your system. For example, if you allowed curl or Firefox, another executable can simply call one of them and send/receive whatever data they need to. It also can't do things like filter ptrace calls which could easil…
How does Windows prevent this type of bypass? It seems extremely hard to prevent in an unsandboxed environment.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#58This looks spectacular! Finally! This is functionality I've desperately wanted on Linux desktop. Link that up with with some of the SELinux on-demand tools and you have a plausible way to run untrusted binaries without the overhead of completely containerizing them up front.
without the overhead of completely containerizing them up front. What overhead? `docker run --rm -it -v $PWD/untrustedprogram:/untrustedprogram:ro ubuntu:latest`, done. Use x11docker if needed.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#59>The control interface is implemented in Python 3 utilizing Qt5
I would recommend moving away from this and instead run the controls using a web interface. A small django/flask/fastapi app (maybe even running through docker).
U can see how that could run on a raspberry Pi and be accessible on the network through the browser.
Re: EBPFSnitch: An eBPF based Linux Application Firewall
#60This is very cool. Something like this can be a full blown commercial product. > The control interface is implemented in Python 3 utilizing Qt5 I would recommend moving away from this and instead run the controls using a web interface. A small django/flask/fastapi app (maybe even running through docker). U can see how that could run on a raspberry Pi and be accessible on the network through the browser.