Skip to content

u/tinycrazyfish

In this archive from Mar 2018 to May 2025

4
posts
148
comments
0
media
366
score
2 saved before deletion

The LD_PRELOAD thing specifically is quite easy and can be done with no root access by any malicious application.

But as Drew DeVault mentions in his blog post, if a malware can modify your .profile or .bashrc, you are fucked anyway. The LD_PRELOAD will also (typically) only work if you run commands from the terminal and only for new processes (already running processes will not be affected). Most people will run graphical apps using the DE app launcher, which will not load the malicious environment variable.

Anyway environment variable injection (or modifying the .bashrc), or more specifically protection against it, is not the role of a compositor and thus off topic because it is not a weakness of wayland. It's the role of filesystem permissions and/or sandboxing. (Note that if a hacker can change your .bashrc, he can alias your sudo and get your password to become root).

2 points

There are proof-of-concept hacks on Wayland that achieve it without root privilige too

Which one?

I agree that Wayland doesn't make everything magically safe. But it definitely makes the ecosystem more secure. And combined with other hardening, it can make your desktop very secure.

Have you ever seen a case of an X11-vulnerability hack?

Yes, keyloggers, screen recording, ... many malware exploit that. Metasploit also has a keylogger and screen graber.

1 points

That's not true, both apps you mention require root privileges (via setuid or polkit).

That's the point of security in Wayland, you cannot read input of another window. To make a keylogger, yes you need to read input directly, but you need root privileges.

Global hotkeys is not a problem, but it has to done in the Wayland compositor itself. And happily, why would I want to allow a random app to "hijack" a hotkey.

It becomes more tricky if you want to generate input (e.g. a virtual keyboard). You don't what to allow a random to do it, because it can take control of other programs. And it is probably out-of-scope of the compositor. So this is a typical use case where you need a protocol, a safe way to allow a specific program to generate keystrokes. And all other extensions have a similar reason to be required.

2 points

It is not, and those (most) who criticize in that way don't really understand what they are talking about.

There are multiple reasons:

  • It is musl-libc based, if you are only installing packages from the alpine repo, it won't be a problem. But if you start using binary packages, they may not work, or be difficult to make work (alpine has glibc if you really want..)
  • It is not systems based, it probably does not apply to you as you explicitly want OpenRC. But some (more and more?) typical desktop applications (desktop environment?) that rely on systemd. Alpine will probably never support systemd, and it's actually systemd's fault, because they rely on non-posix glibc-ism and they explicitly refuse patches to make it work with musl-libc.
  • As alpine is mostly used for lightweight container, there is not that much effort on desktop libs/apps. But it is much better than some years ago. At least all most common desktop apps made it in the repo.

So if all apps you want are available/working on Alpine, there is absolutely no reason to not use it as a desktop. It depends on your use case.

14 points
  • Gentoo if stability matters more than install time
  • Arch otherwise. (I have more than 20 years experience with Linux, Debian, Ubuntu, Gentoo, Arch. Arch is the least stable maybe even less stable than Debian testing).

If you have and can afford the usage of a Gentoo binhost building everything, you can have your perfect Gentoo system without the extra build times.

2 points

Setting a password on your firmware setup will prevent an "evil maid" from modifying the set of trusted signing certificates and allowing their own binaries.

You need more than that:

  • ensure alternate boot is impossible (USB boot, network boot, ...)
  • Have a bios that detects hardware access (tamper protection, by opening the case)
  • As I already noted: setup custom secure boot keys

Unfortunately, all these points may not survive a bios battery removal.

If alternate boot is possible, most of the time the evil maid attack is still possible, more complicated but still possible.

Secure Boot protects the firmware, the boot process, and the kernel and drivers.

Technically yes, but in practice you can boot any other Windows, and any other OS uses signed Shim bootloader (if your kernel is not signed, shim/mok will just prompt to authorize or deny the boot).

As said above, it definitely makes the evil maid attack more complicated but still possible.

I don't recommend taking security advice from anonymous social media users.

I have to agree on that one. So here are some references

https://learn.microsoft.com/en-us/windows/security/information-protection/secure-the-windows-10-boot-process

To prevent malware from abusing these options, the user must manually configure the UEFI firmware to trust a non-certified bootloader or to turn off Secure Boot. Software can't change the Secure Boot settings.

That's true, but with physical access you can change these UEFI parameters to authorize a new signature.

Microsoft stays very vague in its documentation. Like above "Software can't change the Secure Boot settings" means what it means (and is true), but with physical access you can make the required changes.

https://broken-by-design.fr/posts/secure-boot-not/

in particular, see section Signature verification and default public keys:

Additionally, shim public key list can be altered by any user able to prove “presence”.

I work in cybersecurity since 12 years, and I can tell you, I have never seen a company using their own secure boot keys, I've never seen a company removing Microsoft third-party CA from secure boot.

What I've seen only twice (among hundreds of customers in the past 12 years in different industries) is devices with alternate boot disabled with a tamper detection capable Bios flashed by OEM (thus will resist Bios battery removal).

So I'm saying it again Secure boot (as it is in the PC world) is kind of a joke. It does not mean it is impossible to make it secure. But it's not an easy setup and most company's don't care. For SME it is even more complicated because OEM custom Bios flashing is not an option.

And I highlight "in the PC world", because in embedded/IoT devices the situation is often better (if secure boot is ever used), just because they use custom secure boot keys with no options to add your own.

1 points

Secure boot (as it is in the PC world) is kind of a joke.

  • It only protect against bootkits, not against evil maid attack (with physical access you can register your own uefi payload as being valid, e.g. with the shim signed loaders)

  • To install a bootkit, you require administrator privileges. So if a malicious actor has such privileges, you're in trouble anyway, he can install all malware except a bootkit if secure boot is verified.

(Note: you can make secure boot more useful with custom keys, removing MS keys; with generic MS keys, anyone can basically boot anything he wants)

So Linux will not really be affected. Many Linux users disable secure boot. And those who don't, it is very unlikely Microsoft will block mok and shim as typically used with Linux secure boot.

2 points

SD cards are not really reliable, I'm not talking about wear leveling, but general functioning. I don't have numbers but in my experience they fail more often than sata/nvme SSDs or HDDs.

It can be mechanical failure (plastic bending, happens often with full size SD cards, less for micro) or electrical.

I would recommend getting rid of the SD card, use a on-chip flash module instead (like an eMMC module)

3 points

Arch is more bleeding edge than both Debian testing or Gentoo (even with keyworded "testing" packages). (Having used all 3 for many years, Gentoo is the most stable, Arch the most bleeding edge, Debian testing in between, usually quite stable, except occasional hiccups after new stable releases , before the "soft" freeze)

I think this is one of the reason, especially for the critical parts (kernel, display server, ...).

One other thing may be that pacman is fast. Apt is really slow (a bit better with zstd deb, but they are not yet common in Debian). Gentoo portage is also not famous for its speed (mostly because of use flag dependency tracking).

1 points

Secure boot is a joke, at least when using Microsoft 's keys. By default it allows booting too many things, and with shim/mok you can even boot non-signed OSes.

If you want more security, you could:

  • Tweak secure boot to disable Microsoft third party certificate and setup a custom certificate for your Arch setup.
  • Use your TPM's PCR measurements. Traditionally, you use it to unlock your luks. But you don't have. You can set it up just to verify that the boot process was not tampered with.

Some call that "Trusted boot", secure boot is just a little part of it, you need to have all "boot components" secured in order to reach a high level of security.

Depending on your paranoia, you can setup certain thing very securely, but also potentially inconvenient (e.g. PCR can measure your kernel, thus on each kernel upgrades you would need to readjust the measurements).

If someone is really interested in targeting you and stealing your data. He will probably come with a gun at your head, and no computer security can protect you against that.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.