Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl...
by rigid on Sunday March 31, 2024 @04:36AM
(#39882507)
> login process
RCE doesn't really follow a login process design. As soon as you got RCE you can be considered pwned.
If not now, then at the time the next locally exploitable vulnerability comes up. There are plenty.
Re:XZ backdoor: "It's RCE, not auth bypass, and gated/unrepl...
by nrdvana on Sunday March 31, 2024 @04:26PM
(#39887754)
Or better, just make an ssh without any dependencies. Statically compile it, and get rid of the libssl and libsystemd and even libpam and libc's nsswitch. (I actually do this for some of my systems)
Exactly how to do it (especially transparently for the user), I have no idea though. Maybe sending ssh login requests to two different sshd implementations and if they don’t do the same things (same system calls), they are both killed.
Or some kind of two step login process where the first login only gives access to the sandbox of the second login process.
But in general I assume the Linux attack surface is too big to do software diversity for all of it.