13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions
comment 4y ago · link · parent
Right, but you don't need to eat sugar. Your body is capable of manufacturing glucose as-is from fat or protein. If you have 0 grams of sugar in your diet it's not like your brain will starve.
> it is a valuable nutrient.
No it isn't. Your body does not require that you eat sugar and it does not benefit from it either.
comment 4y ago · link · parent
You're making this weirdly personal. No one is saying you're a bad person for eating sugar or "as bad as" a smoker. There's no pedestal.
comment 4y ago · link · parent
Honestly, that's fine. What more do you want? For developers to roll their own SELinux and Apparmor profiles? For them to manually implement seccomp filtering? No one does that.
The reality is that no one is choosing between "containers or some other approach", they're choosing between "containers or nothing".
comment 4y ago · link · parent
If you put a process into a container, even a fairly default config'd container, it will require an additional vulnerability for an attacker to escape that container. That makes it a security boundary, period. There is no universal "ask to leave the container" by default.
This post is attacking a non-default configuration ie: you have to explicitly pass in "--privileged". Don't do that (the post says this repeatedly).
The fact that people are using docker and we're basically getting a half decent sandbox for free, everywhere, is an incredible security win.
I wouldn't rely on them for multi-tenant workloads, but as a nice way to restrict attackers given RCE, yeah, sure.
comment 4y ago · link · parent
Further, AV is inherently a "catches known threats" technology, as much as any AV may pretend otherwise. Some people will always get owned but by virtue of those users' AV picking up samples the sample will eventually make it to various AVs.
If your goal is to avoid AV bypasses, I'd suggest changing your goals. Instead, treat AV as it is - a technology for finding known bad things. If you want to avoid unknown bad things you need to take another approach.
comment 4y ago · link · parent
A huge part of the market is hilarious bad. It's insane. People graduate from school and can barely program, and even after years they don't get a whole lot better.
So yeah, absolutely there are people 7x better.
comment 4y ago · link · parent
Nothing I mentioned requires knowledge of OS security mechanisms beyond what I've described in my short comment.
comment 4y ago · link · parent
comment 4y ago · link · parent
That child process does the scary stuff - parsing. Parsing requires zero system calls. Reading to/from the parent requires only read and write, but not open, so they can only read and write to those file descriptors.
And exit.
That's it. Seccomp v1 is trivial to apply, gives 4 system calls, and makes the process virtually useless to an attacker. If you want to get fancy and allow for multithreading you can use seccomp v2 and create your threadpool before you drop privs, and probably add futex and memmap.
You pay a latency cost but the security win is huge.
comment 4y ago · link · parent
Here is what capabilities are.
https://en.wikipedia.org/wiki/Capability-based_security
I don't think what you're advocating for makes a ton of sense tbh. You're basically saying "just make it impossible to privesc", which, yeah, that would be nice... but it's not like you can just do that.
I think your point is more that least privilege should be more common - that way exploits have less impact. I agree. That said, Linux Capabilities are extremely coarse, and most container escapes involve owning the Kernel, which from a real Capabilities model would be the trusted broker of capabilities to begin with.
comment 4y ago · link · parent
Containers rely on the Linux kernel. The Linux kernel is shit, in terms of security, for a number of reasons. So all one requires is to own the kernel, and there are a lot of ways to do that. Containers block some system calls and can lower attack surface to a degree, which is great - I think it's a huge win that containers are so popular and, finally, some degree of isolation is widespread.
We'll be stuck in retroactive security mode until developers care to change that, especially ones with influence like kernel maintainers.
> My point is that if it were designed from the ground up with the hard security boundary in mind, would we have ended up with containers in the first place?
Absolutely not. We'd have ended up with something like Firecracker or GVisor. The issues with containers are fundamental to the concept of having a shared Linux kernel, which is basically what makes a container a container.
> If not, is there any realistic way to go from where we are to where we should be?
Use Firecracker or GVisor.
> Those have the downside of actually needing to run a VM though
I think at this point VMs are not that big of a deal. It's clearly good enough for the vast majority of people who are running on the cloud.
> don't allow nested virtualization so you're stuck running on an enormous bare metal box.
This part is a bummer.
The other option though is to just not care if your OS gets owned. Split your services up, move capabilities across other boundaries like mTLS.
comment 4y ago · link · parent
a) This is implementation heavy
b) The implementation is tied to a specific company migrating to this approach incrementally
I would say it's a great case study for moving to a ZTN, but if I were to explain ZTN I'd probably just propose a definition. I'm technically a vendor but the definition serves me in no way.
1. Requests are mutually authenticated and always encrypted (ex: mtls)
2. Requests are authorized; policy oriented, granular, and contextual authorization
3. Requests are monitored and audited
The paper lists a bunch of ways to accomplish those goals. SSO, device inventories, an authorizing proxy, a monitor, etc.
Of course, you're right. Vendors are horribly self serving and have already significantly degraded the term and confused people.