News for hackers. Stuff that matters.
Re:Why GNU/Linux Viruses Are Fairly Uncommon by nextos on Monday August 12, 2019 @06:34PM (#20680802)
Nix/Guix are quite cool to tackle this.

They are progressing quite quickly towards reproducible builds, so you can avoid compromised servers sending malicious binaries.

Also, since package definitions are quite declarative, I guess it's easier to perform static verification to spot malicious code getting introduced there.

There's e.g. Vulnix that scans for CVEs [1].

[1] https://github.com/flyingcircusio/vulnix

Re:Why GNU/Linux Viruses Are Fairly Uncommon by wwright on Monday August 12, 2019 @09:07PM (#20681845)
I believe they aren’t just progressing towards reproducible builds, but that the whole system is already predicated on them. In Nix, you have to make special exceptions for packages that aren’t rebuildable from source.
Re:Why GNU/Linux Viruses Are Fairly Uncommon by svd4anything on Tuesday August 13, 2019 @12:06AM (#20682739)
Rebuildable is different than reproducible. The Nix system is predicated on rebuilding. Ideally the binaries would be all also reproducible however it turns out making compilation completely deterministic is actually pretty hard. When we reach that point and me and you can both independently produce identical binaries and hash them from exactly the same source code that is beyond fantastic for security and auditing.
Re:Why GNU/Linux Viruses Are Fairly Uncommon by delroth on Tuesday August 13, 2019 @01:17AM (#20683005)
r13y.com tracks the progress for NixOS reproducibility (well, for the tiny subset of nixpkgs that forms the minimal ISO image at least).
Re:Why GNU/Linux Viruses Are Fairly Uncommon by swdunlop on Monday August 12, 2019 @08:18PM (#20681556)
NixOS (and NixPkgs) is great, but there are still plenty of binary only packages from difficult to build projects like PhantomJS in the ecosystem. It takes a serious commitment to build complex projects in Nix and maintain them.

(edit) An example of binary packages in Nixpkgs: https://github.com/NixOS/nixpkgs/blob/master/pkgs/developmen...

Re:Why GNU/Linux Viruses Are Fairly Uncommon by nextos on Tuesday August 13, 2019 @11:27AM (#20686742)
You can also build regular packages, no matter how complicated they are, by spanning an FHS environment. That's sort of a sandbox that simulates a regular Unix environment with whatever dependencies you need in the usual places (/bin, /usr, ...).

Of course, you loose some Nix advantages. But it's a great way to get a regular Unix environment for one-off things or desperate cases.

Re:Why GNU/Linux Viruses Are Fairly Uncommon by baroffoos on Monday August 12, 2019 @11:18PM (#20682515)
Should you really be installing programs that are impossible to build? Also phantomjs is discontinued.
Re:Why GNU/Linux Viruses Are Fairly Uncommon by swdunlop on Tuesday August 13, 2019 @05:33PM (#20690515)
That's a great question, but it does not invalidate the point that there is nothing about Nix that states that binary packages cannot and do not happen.
Re:Why GNU/Linux Viruses Are Fairly Uncommon by nextos on Wednesday August 14, 2019 @10:22AM (#20695825)
Try for example FHS environments. That should make it possible to install software in a conventional way.