!NBBFPbiuttRgTqbrcY:nixos.org

NixOS Security Discussions

369 Members
Discussions around Security | Triaging happens in #security:nixos.org125 Servers

Load older messages


SenderMessageTime
21 Sep 2022
@winterqt:nixos.devWinter (she/her)idk19:21:06
@v0id:nltrix.net@v0id:nltrix.net

I was reading the old prng paper come across the follwoing:

The Linux boot process does not provide much entropy in the different sources available to the
PRNG. There is usually little to no user input and network events at this stage, and disk activity
at startup is very deterministic. Therefore, the designer of the Linux PRNG recommends a
script which, at shutdown, generates data from /dev/urandom and saves it in a file, and at
startup, writes the saved data to /dev/urandom. This mixes the same data into the blocking
and nonblocking pools without increasing their entropy counters.
Such a script is provided in the default installation of most Linux distributions. In situations
where this procedure is not possible, for example in Live CD systems, the nonblocking random
number generator should be used with caution directly after the boot process since it might not
contain enough entropy.

23:31:47
@v0id:nltrix.net@v0id:nltrix.netso do we have mechanism to implement this or is it 2022 and systemd handles it for us?23:32:03
@v0id:nltrix.net@v0id:nltrix.netignore if irrelevant.23:32:25
@hexa:lossy.networkhexa v0|d: check out the systemd-random-seed.service unit 23:37:48
@hexa:lossy.networkhexaalso /var/lib/systemd/random-seed23:38:47
23 Sep 2022
@hexa:lossy.networkhexahttps://matrix.org/blog/2022/09/23/pre-disclosure-upcoming-critical-security-release-of-matrix-sd-ks-and-clients13:59:59
@hexa:lossy.networkhexaGOOD: matrix-rust-sdk, hydrogen-sdk and matrix-nio BAD: matrix-js-sdk, matrix-ios-sdk and matrix-android-sdk214:00:38
@f0x:pixie.townf0x joined the room.14:02:39
@winterqt:nixos.devWinter (she/her)Speaking of the whole Matrix thing -- wonder if there would ever be a point where we could get distros@ access. I remember we had a convo about this a few months ago, but there were some issues.16:47:47
@winterqt:nixos.devWinter (she/her) ("we" = someone on the security team) 16:48:09
@vcunat:matrix.orgvcunat IIRC one of the major blockers is that we don't have infrastructure to privately prepare binaries. 16:49:06
@vcunat:matrix.orgvcunatConsequently there's not that much benefit from getting advance notification.16:49:29
@vcunat:matrix.orgvcunatHexa and Graham recall more.16:50:19
@hexa:lossy.networkhexa

boils down to:

  • public track record of tracking and fixing (within 10 days) vulnerabilities for over 1y
  • capability for private issue tracking
  • contributing back (based on the jobs listed for the distros list)
  • being able to receive gpg mails
  • getting someone to vouch for us who is already on the list
17:54:36
@hexa:lossy.networkhexathings where we could contribute back https://oss-security.openwall.org/wiki/mailing-lists/distros#contributing-back17:56:22
@winterqt:nixos.devWinter (she/her)
In reply to @vcunat:matrix.org
IIRC one of the major blockers is that we don't have infrastructure to privately prepare binaries.
I wonder if we could create a private Hydra jobset, run the jobs on there so the binaries are cached, maybe do ACLs on the binaries on S3 if someone somehow manages to guess the store path, and then assuming there are no intermediate rebuilds required in between this and the embargo lifting... profit?
18:36:00
@vcunat:matrix.orgvcunatSounds plausible. Assuming someone is willing to prepare all this, do all the work, etc.18:42:52
@vcunat:matrix.orgvcunatTo me personally that's not attractive, as we only get a few days faster fixes. But maybe it will feel very different to enough other people.18:43:46
@vcunat:matrix.orgvcunatI don't even run any security-sensitive system (with nixpkgs), really.18:45:11
@vcunat:matrix.orgvcunatIf we can consistently deploy important fixes within just a few days after the top tier (say, Red Hat), I'll be quite happy and focus on further improving other aspects of Nix*.18:52:42
@sandro:supersandro.deSandro 🐧Do we have some stats to know if we fix issues within 10 days? Also we don't really track CVEs anywhere and I don't want to dump more issues on our issue graveyard. We don't have private issue tracker but that could easily done with a private repository. 19:09:01
@hexa:lossy.networkhexayes, we do19:09:32
@sandro:supersandro.deSandro 🐧I mean properly19:09:54
@hexa:lossy.networkhexafrom 17 embaroges predisclosures via linux-distros we took longer than than 7 days for 4 of them19:10:53
@sandro:supersandro.deSandro 🐧
In reply to @winterqt:nixos.dev
I wonder if we could create a private Hydra jobset, run the jobs on there so the binaries are cached, maybe do ACLs on the binaries on S3 if someone somehow manages to guess the store path, and then assuming there are no intermediate rebuilds required in between this and the embargo lifting... profit?
That would destroy the chain of trust.
19:10:54
@hexa:lossy.networkhexa * from 17 embaroged predisclosures via linux-distros we took longer than than 7 days for 4 of them19:11:00
@hexa:lossy.networkhexa * from 17 embargoed predisclosures via linux-distros we took longer than than 7 days for 4 of them19:11:05
@winterqt:nixos.devWinter (she/her)in a way that it can't already be destroyed?19:11:56
@hexa:lossy.networkhexaI think improving the reliability of ofBorg would be a longer hanging fruit than working on private hydra jobsets 🙂19:13:22

Show newer messages


Back to Room ListRoom Version: 9