Citat:
Ursprungligen postat av
segernisse
Att du påstår saker som är omöjliga har en hel del med ChatGPT att göra, jo.
Det är bara att googla för att se att det är /boot du kan kryptera och inte bootloader, och i praktiken gör det inte ett skit GRUB eller dylikt måste ganska uppenbart vara okrypterat för att hela ska fungera alls.
Det är detta jag menar:
” Encrypting the Linux bootloader itself is a complex process, as the bootloader must be accessible in an unencrypted state to initiate the boot process, creating a "chicken or the egg" problem. The bootloader, typically GRUB2, is usually stored in an unencrypted partition (like /boot) to allow it to load the necessary decryption modules and the initial RAM disk (initramfs). This unencrypted bootloader is a potential attack vector, known as an "Evil Maid" attack, where malicious software could replace the legitimate password prompt to steal the encryption passphrase.
However, it is possible to achieve a higher level of security by encrypting the entire disk, including the /boot partition, using a combination of LUKS encryption and a modified boot process. This requires configuring GRUB2 to support encrypted disks by setting GRUB_ENABLE_CRYPTODISK=y in /etc/default/grub and generating an initramfs that contains a key to unlock the encrypted root filesystem. The initramfs can be configured to use a key file stored on the encrypted disk, which is only accessible after the initial decryption step. This setup ensures that the kernel and initramfs are loaded from an encrypted partition, significantly enhancing security.”.
Det är det jag vill ha en enkel guide för.