this post was submitted on 07 Jul 2025
88 points (96.8% liked)

Linux

8334 readers
377 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] just_another_person@lemmy.world 47 points 2 days ago (3 children)

Attackers with physical access to a Linux system can access a debug shell simply by entering the wrong decryption password several times in a row.

Yeah, no duh. This isn't a critical security flaw unless you have the worst partition scheme on your encrypted volumes imaginable. It's not even a process flaw at that point, just "possible".

This is essentially what the Israeli government did to Android a decade ago with Pegasus: if you can get in front of the bootloader, you can compromise disks once encrypted because everything is happening in an in-memory boot process.

Same way you can hotwire cars. It's not new.

[–] BlameTheAntifa@lemmy.world 9 points 1 day ago (1 children)

What’s the expression? If someone has physical access to your machine it’s no longer your machine.

[–] caseyweederman@lemmy.ca 2 points 1 day ago

XKCD about hacking in reality, a $5 monkey wrench, some rope, and kneecaps

[–] fmstrat@lemmy.nowsci.com 1 points 2 days ago* (last edited 2 days ago) (1 children)

I'm confused.

Initramfs is unencrypted in /boot when using LUKS with RAID. It has to be, right?

The attacker uses a debug shell to modify the unencrypted boot, so the next time you boot and type your LUKS password, they can gain access.

This doesn't line up with your comment?

[–] just_another_person@lemmy.world -2 points 2 days ago (1 children)

How are you going to boot something that's encrypted without input to unlock it?

N

[–] fmstrat@lemmy.nowsci.com 4 points 1 day ago* (last edited 1 day ago) (1 children)

You always "boot something that is unencrypted." You then "mount" the encrypted volumes and load the OS.

This is how people can put an SSH server (dropbear) in initramfs so they can unlock remotely.

The attack is to initramfs, not the encrypted layer.

The order'ish:

  • Boot
  • Initramfs loads, gives you the LUKS prompt
  • Initramfs decrypts/mounts OS
  • OS loads
[–] just_another_person@lemmy.world -3 points 1 day ago (1 children)

I'm well aware. You're proving my point at mount.

[–] fmstrat@lemmy.nowsci.com 2 points 1 day ago

But.. your original comment is just.. wrong?

This isn't a critical security flaw unless you have the worst partition scheme on your encrypted volumes imaginable.

The default LUKS partition scheme is vulnerable.

It's not even a process flaw at that point, just "possible".

There is a successful POC, it is a flaw.

you can compromise disks once encrypted because everything is happening in an in-memory boot process.

This is not just in-memory. This is modifying the unencrypted part of initramfs on disk. Powering off the machine does not remove the exploit.

[–] unexposedhazard@discuss.tchncs.de -1 points 2 days ago (1 children)

Physical access = electronic waste

Thats how it has always been and always will be. If a threat actor had free access to your device for even just a couple seconds, its compromised rare earth trash.

[–] just_another_person@lemmy.world 5 points 2 days ago (2 children)
[–] ulterno@programming.dev 5 points 2 days ago

Nope

Exactly.
Silicon is not a rare earth element.
Neither is Aluminium nor plastic nor Lithium (it's getting rarer alright, but doesn't fall into the category).

The amount of rare earth elements is really small in these devices.

[–] unexposedhazard@discuss.tchncs.de 2 points 2 days ago (3 children)

Explain. The way i understand it, if somebody flashes malware into your firmware or bootloader then that device cant really be guaranteed to ever be safe again.

[–] 9tr6gyp3@lemmy.world 4 points 2 days ago

Secure boot helps protect against evil maid attacks by checking hardware and OS signatures. If the boot process has been tampered with, the user can be alerted that the secure boot process can no longer properly verify signatures.

While its probably true that you can no longer guarantee that system can be used safely ever again, at least you will be aware that it was tampered with and you can go ahead and send that system to e-waste and get you a new system.

[–] amino@lemmy.blahaj.zone 2 points 1 day ago* (last edited 1 day ago)

i know this is not for PCs but GrapheneOS uses the Google Titan chip and this app to solve that problem.

might be a long time before we get similar hardware for PCs. the only thing that's remotely similar is the Apple T2 for MacBooks but there's no Linux distro with comparable security to GrapheneOS yet.

[–] Jumuta@sh.itjust.works 1 points 2 days ago (1 children)

a raspi, soic8 clip and coreboot

[–] amino@lemmy.blahaj.zone 1 points 1 day ago (1 children)

isn't coreboot strictly for x86?

[–] Jumuta@sh.itjust.works 2 points 1 day ago* (last edited 1 day ago)

you use a soic8 clip and the raspi to connect directly to the SPI ROM on some other computer so you can flash coreboot on it without any obstructions