!NBBFPbiuttRgTqbrcY:nixos.org

NixOS Security Discussions

370 Members
Discussions around Security | Triaging happens in #security:nixos.org126 Servers

Load older messages


SenderMessageTime
29 Jul 2022
@k900:0upti.meK900So you can build one EFI executable and sign it for secure boot06:15:25
@k900:0upti.meK900Without the bootloader or whatever having to validate the initrd, etc06:15:37
@k900:0upti.meK900You just put it all in a big blob and sign the blob06:15:53
@winterqt:nixos.devWinter (she/her)

interesting

wait yeah so where are these magic section offsets from, did you pull those from sbctl or some spec or something

06:16:22
@k900:0upti.meK900It's not ideal for NixOS because we end up with a big blob for every generation because the cmdline changes06:16:25
@winterqt:nixos.devWinter (she/her) * interesting
wait yeah so where are these magic section VMAs from, did you pull those from sbctl or some spec or something
06:16:41
@k900:0upti.meK900But I don't think we have any good ways around it except, uh, writing our own bootloader?06:16:45
@winterqt:nixos.devWinter (she/her)the purely functional bootloader 🚀06:16:58
@k900:0upti.meK900https://www.freedesktop.org/software/systemd/man/systemd-stub.html06:17:22
@k900:0upti.meK900That has the invocation example06:17:28
@k900:0upti.meK900Technically I don't think the offsets matter06:17:32
@k900:0upti.meK900It looks at the ELF headers06:17:37
@k900:0upti.meK900So as long as it fits in memory it should be fine06:17:52
@k900:0upti.meK900We can always bump it if the kernel gets bigger than 32M or whatever it currently has06:19:03
@winterqt:nixos.devWinter (she/her)my questions are probably going off topic for here but like, idk, how did you start making this and finding all of that stub stuff and such? like i understand what's going on but how did you find all the info, did you look at the example bootspec stuff too?06:19:07
@k900:0upti.meK900https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot06:19:40
@k900:0upti.meK900The Arch people have great docs on setting up secure boot06:19:49
@k900:0upti.meK900Also reading sbctl code and talking to sbctl people06:20:30
@k900:0upti.meK900I haven't actually looked at Graham's thing much, kind of intentionally06:21:37
@k900:0upti.meK900Because I wanted to see the footguns for myself06:21:56
@v0id:nltrix.net@v0id:nltrix.nethttps://www.nist.gov/news-events/news/2022/07/nist-announces-first-four-quantum-resistant-cryptographic-algorithms10:51:47
@v0id:nltrix.net@v0id:nltrix.netadjust your avx2 to burn ntt's soon.10:52:08
@v0id:nltrix.net@v0id:nltrix.net

~600 byte signatures, >~1600 secret keys.

10:56:20
@v0id:nltrix.net@v0id:nltrix.net *

~600 byte signatures, >~1600 secret keys.

10:56:28
@v0id:nltrix.net@v0id:nltrix.net * . > ~600 byte signatures, >~1600 secret keys.10:56:31
@v0id:nltrix.net@v0id:nltrix.net * . > ~600 byte signatures, >~1600 bytes secret keys.10:56:43
30 Jul 2022
@winterqt:nixos.devWinter (she/her)If any PAM-knowledgable person wants to take a look at something, https://github.com/NixOS/nixpkgs/pull/173495 is looking for reviewers (and I can't think of anyone offhand).04:12:40
@vcunat:matrix.orgvcunat
In reply to @v0id:nltrix.net
. > ~600 byte signatures, >~1600 bytes secret keys.
Not exactly. SPHICS+ has short keys. 32B public, 64B private. But the signatures are even longer. (I think; I've only looked at these superficially so far.)
06:15:19
@vcunat:matrix.orgvcunat
In reply to @v0id:nltrix.net
. > ~600 byte signatures, >~1600 bytes secret keys.
* Not exactly. SPHINCS+ has short keys. 32B public, 64B private. But the signatures are even longer. (I think; I've only looked at these superficially so far.)
06:18:40
@vcunat:matrix.orgvcunat

We can still be putting hopes into (link):

New Call for Proposals: Digital Signature Algorithms with Short Signatures and Fast Verification

I'm in particular interested in DNSSEC and the current lengths are very problematic with UDP.

06:21:56

Show newer messages


Back to Room ListRoom Version: 9