News for hackers. Stuff that matters.
Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @09:34AM (#35069389)
Hiding filesystems is security via obscurity more than anything else, and probably won't hold up if someone has root.

Things like SELinux by contrast allow you to remove all access and power from the root account except for what it specifically needs, while allowing you to grant root capabilities to other accounts as needed.

pledge and unveil are toys by comparison.

Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Wednesday March 08, 2023 @12:45PM (#35072193)
> Hiding filesystems is security via obscurity more than anything else, and probably won't hold up if someone has root.

Can you show me a proof of concept here?

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @01:07PM (#35072504)
If someone has remote root you are telling me they can't unhide a filesystem? Otherwise what are you disputing and what would you accept as evidence?
Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Wednesday March 08, 2023 @02:58PM (#35073950)
> If someone has remote root you are telling me they can't unhide a filesystem?

Yes. There is no mechanism at all to unmask the vnode. If you believe otherwise, I'd like to see a proof of concept.

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @03:08PM (#35074068)
It's absolutely possible. No idea about a proof of concept, but I don't even think it matters, honestly.

It's cute that the OS might play some tricks to hide them from you, but at the end of the day, that's all it is doing, is hiding. Security by obscurity.

You're just betting you hid them really really well and that no one will be able to find them. With zero preparation in the event someone does.

If you have root, you have access to the files, period. Someone determined enough could search, read and write to the disk directly, bypassing the filesystem.

unveil is defense in depth, but it shouldn't be treated as a final line of defense which too many obsd fans seem to want to do.

Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Wednesday March 08, 2023 @03:30PM (#35074334)
How? you don't have access to the devices. They're not in your namespace.

Again, proof of concept please.

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @03:50PM (#35074546)
lol, ok. You really think root can't access the devices? lol.

So you just want to have blind faith in what is basically security via obscurity with extra steps.

That's fine, but it's not an approach to be taken seriously or advocated.

Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Wednesday March 08, 2023 @04:44PM (#35075161)
Alright then -- can you tell me what exact sequence of system calls you'd make from a pledged and unveiled process in order to get raw device access?

Right now, you'd need root and a kernel-level exploit to do what you're talking about. I'm not seeing any evidence you have that.

You're just spouting crap.

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @05:01PM (#35075346)
I'm not spouting crap at all, you just really have your head buried in the sand. YOu've drunk more of the OBSD koolaid then even mac zealots drink of the mac kooolaid.

I won't be replying again as I don't see how this is wroth my time when you can't even support anything you've said.

Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Wednesday March 08, 2023 @10:19PM (#35077964)
Again, you haven't given an example of how you'd even open the raw device after you've been unveiled to /home/Zurrrrr/Downloads, and had your syscalls pledged (so, no mknod -- there's no pledge that allows it at all).

You haven't replied the first time to my questions with anything of substance, so what exactly do you mean by "replying again"?

Re:Initial support for guided disk encryption in OpenBSD ins... by witheld on Thursday March 09, 2023 @10:10AM (#35081965)
You don’t understand namespaces, there are no mechanisms, or root specific mechanisms, you could use to elevate a namespace.

You don’t get any kind of god powers like kernel memory access, if you don’t have access to the system call you can’t debug.

Like I don’t understand how to explain to you that SELinux locks down system calls in an identical way conceptually.

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Thursday March 09, 2023 @01:14PM (#35084597)
And I don't think you understand just how many syscalls big third party applications are going to require.
Re:Initial support for guided disk encryption in OpenBSD ins... by witheld on Thursday March 09, 2023 @05:14PM (#35087560)
They aren’t (and do not) require any privleged system calls, whatsoever.

If you can actually exploit a system call, neither a MAC based approach or a pledge will help.

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Thursday March 09, 2023 @06:17PM (#35088239)
> They aren’t (and do not) require any privleged system calls, whatsoever.

You're making a distinction about 'privileged' system calls, why, exactly? You really think something like Oracle won't require access to a ton of syscalls to work correctly?

> If you can actually exploit a system call, neither a MAC based approach or a pledge will help.

MAC will, pledge won't.

For example with SELinux:https://www.kernel.org/doc/Documentation/prctl/seccomp_filte...

Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Friday March 10, 2023 @09:25AM (#35094629)
Did you realize your link points to a more fragile version of pledge?
Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Friday March 10, 2023 @10:02AM (#35095136)
Stop spreading misinformation. Hell stop replying to me. You're basically a cultist at this point with your irrational emotional devotion.

That's not a 'weaker version of pledge', it's part of a much larger framework with much greater enforcement capabilities.

Re:Initial support for guided disk encryption in OpenBSD ins... by ori_b on Friday March 10, 2023 @07:18PM (#35103337)
I've used it. I know what it does. For a while, I've even run a linux with a slightly patched version of it for some quirky needs of my own.

seccomp-bpf is a more fragile version of pledge; you need to keep changing your sandbox whenever you upgrade glibc, because there's no mechanism to keep syscall usage in sync between the kernel and userspace.

It was fine for my case, because I was implemeting my own direct system calls, and froze any external dependencies, but it's typically very fragile across system and dependency upgrades.

Re:Initial support for guided disk encryption in OpenBSD ins... by witheld on Saturday March 11, 2023 @11:56PM (#35116825)
> System call filtering isn't a sandbox. It provides a clearly defined mechanism for minimizing the exposed kernel surface. It is meant to be a tool for sandbox developers to use. Beyond that, policy for logical behavior and information flow should be managed with a combination of other system hardening techniques and, potentially, an LSM of your choosing
Re:Initial support for guided disk encryption in OpenBSD ins... by dang on Saturday March 11, 2023 @12:05AM (#35105562)
Please don't respond to a bad comment by breaking the site guidelines yourself. That only makes things worse.

Also, can you please not perpetuate flamewars on HN generally? It's not what this site is for, and destroys what it is for.

I've banned the other account and I'm not banning yours because as far as I can tell you didn't break the rules as badly and you haven't been making a habit of it—but if you'd please review https://news.ycombinator.com/newsguidelines.html and not do this kind of thing in the future, we'd appreciate it.

Re:Initial support for guided disk encryption in OpenBSD ins... by jmclnx on Wednesday March 08, 2023 @02:21PM (#35073521)
>Hiding filesystems is security via obscurity more than anything else, and probably won't hold up if someone has root.

That statement indicates you do not fully understand pledge(2) and unveil(2).

For example, if you are running Firefox using the default settings as root on OpenBSD. Firefox will not be able to see anything outside of the directories allowed by unveil(2). So an errant JS will not be able to peruse "veiled" Directories. For instance, Firefox cannot see any data in ~/.ssh no matter what ID you are using.

Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @02:35PM (#35073697)
> That statement indicates you do not fully understand pledge(2) and unveil(2).

Not so, not so at all. You have to take my statement in context.

The point was those technologies, while nifty, are entirely irrelevant if an attacker gains remote root.

Re:Initial support for guided disk encryption in OpenBSD ins... by bentley on Wednesday March 08, 2023 @02:41PM (#35073769)
OpenBSD’s heavy use of pledge, unveil, privilege separation, unprivileged processes, chroot, and strong memory protections do an excellent job of keeping attackers from gaining root.
Re:Initial support for guided disk encryption in OpenBSD ins... by Zurrrrr on Wednesday March 08, 2023 @03:06PM (#35074053)
A car can have all the tech in the world to avoid an accident, but I still expect it to have seatbelts.