My sister’s laptop had coffee spilled on it. I cleaned up the board, but after a few months it stopped working again.
I took it to a local repair shop that was able to bring it back to life for around $100. My sister said I could just keep it since she switched to a macbook air, so I put Linux on it and encrypted the drive.
It stopped working after a few days, so it went back for additional repairs.
When I got the computer back, it felt good knowing that my data was kept safe and that I could boot it up and not worry about someone tampering or putting something malicious on the drive.
At one point they asked for my password, which I declined to give them, but they just put another drive in to test the computer with.


Someone can still tamper with and put malicious software on the drive as the kernels and initrds in /boot are not encrypted and could be tampered with. You would need to use UEFI secure boot with UKIs and custom keys enrolled to partially prevent this.
There is chkboot for that. Of course it runs in a compromised system, but that’s better than nothing I guess.
If you know /boot is going to be exposed, just back it up, or at least store checksums on a separate storage device, and verify them afterwards from a live system.
And back up and erase the LUKS header. That way you don’t have to worry about your password being brute forced ever.
Or just unscrew the drive.