# Security

**URL:** https://discourse.nixosstag.fcio.net/c/dev/security/21.md

[Latest](https://discourse.nixosstag.fcio.net/latest.md) · [Categories](https://discourse.nixosstag.fcio.net/categories.md)

---

## [About the Security category](https://discourse.nixosstag.fcio.net/t/about-the-security-category/1378)

<div class="topic-metadata">

**Author:** [@ryantm](https://discourse.nixosstag.fcio.net/u/ryantm)\
**Replies:** 0

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters. Until you edit this description or create top…

---

## [AppArmor on NixOS Roadmap](https://discourse.nixosstag.fcio.net/t/apparmor-on-nixos-roadmap/57217)

<div class="topic-metadata">

**Author:** [@Grimmauld](https://discourse.nixosstag.fcio.net/u/Grimmauld)\
**Replies:** 21\
**Last updated:** [June 21, 2025, 6:34am UTC](https://discourse.nixosstag.fcio.net/t/apparmor-on-nixos-roadmap/57217 "2025-06-21T06:34:48Z")

</div>

Previous Work and Motivation Nix is an extremely powerful tool for security research, especially because of quite simple impermanence, both on metal and in VMs. Spinning up clean VMs with all the nice tool is a matter of…

---

## [Default security settings](https://discourse.nixosstag.fcio.net/t/default-security-settings/9755)

<div class="topic-metadata">

**Author:** [@gspia](https://discourse.nixosstag.fcio.net/u/gspia)\
**Replies:** 2\
**Last updated:** [April 20, 2025, 9:59am UTC](https://discourse.nixosstag.fcio.net/t/default-security-settings/9755 "2025-04-20T09:59:42Z")

</div>

I installed lynis and run lynis audit system --quick with quite plain and basic configuration.nix. The overall score was a bit too low for my personal taste. Some of the suggestions that lynis gives, are probably meanin…

---

## [Hardening systemd services](https://discourse.nixosstag.fcio.net/t/hardening-systemd-services/17147)

<div class="topic-metadata">

**Author:** [@Solene](https://discourse.nixosstag.fcio.net/u/Solene)\
**Replies:** 30\
**Last updated:** [March 13, 2025, 6:07am UTC](https://discourse.nixosstag.fcio.net/t/hardening-systemd-services/17147 "2025-03-13T06:07:02Z")

</div>

Hi, With systemd it’s possible to restrict a lot the permissions of the running services. I think it would be great to harden services when possible to reduce attack surface and potential damages in case of 0day. I sta…

---

## [What guarantees do signatures by binary caches give?](https://discourse.nixosstag.fcio.net/t/what-guarantees-do-signatures-by-binary-caches-give/34802)

<div class="topic-metadata">

**Author:** [@mschwaig](https://discourse.nixosstag.fcio.net/u/mschwaig)\
**Replies:** 12\
**Last updated:** [February 19, 2025, 8:58pm UTC](https://discourse.nixosstag.fcio.net/t/what-guarantees-do-signatures-by-binary-caches-give/34802 "2025-02-19T20:58:44Z")

</div>

I have two questions about what it means to obtain a store path with a valid signature from a binary cache. Does the signature relate the store path (input address) and the contents by signing both of them together, o…

---

## [Vulnerability Notifications for NixOS](https://discourse.nixosstag.fcio.net/t/vulnerability-notifications-for-nixos/58895)

<div class="topic-metadata">

**Author:** [@gregorburger](https://discourse.nixosstag.fcio.net/u/gregorburger)\
**Replies:** 3\
**Last updated:** [January 18, 2025, 12:54pm UTC](https://discourse.nixosstag.fcio.net/t/vulnerability-notifications-for-nixos/58895 "2025-01-18T12:54:26Z")

</div>

Hi, I don’t know if this is the right place to ask. I’m interested if NixOS has the same status/priority from security researchers as other popular distributions (e.g. Debian or Ubuntu) in regard to getting timely notif…

---

## [Extending cloud build systems to eliminate transitive trust](https://discourse.nixosstag.fcio.net/t/extending-cloud-build-systems-to-eliminate-transitive-trust/50841)

<div class="topic-metadata">

**Author:** [@mschwaig](https://discourse.nixosstag.fcio.net/u/mschwaig)\
**Replies:** 8\
**Last updated:** [December 16, 2024, 2:59pm UTC](https://discourse.nixosstag.fcio.net/t/extending-cloud-build-systems-to-eliminate-transitive-trust/50841 "2024-12-16T14:59:00Z")

</div>

Me and my co-authors have submitted this paper for publication at SCORED '24 and it got accepted. :partying\_face::tada: Like all submissions it is still part of a shepherding process until September 1st. Until then we …

---

## [NAR unpacking vulnerability -- post mortem](https://discourse.nixosstag.fcio.net/t/nar-unpacking-vulnerability-post-mortem/52301)

<div class="topic-metadata">

**Author:** [@fricklerhandwerk](https://discourse.nixosstag.fcio.net/u/fricklerhandwerk)\
**Replies:** 55\
**Last updated:** [October 25, 2024, 6:26am UTC](https://discourse.nixosstag.fcio.net/t/nar-unpacking-vulnerability-post-mortem/52301 "2024-10-25T06:26:27Z")

</div>

Last week there was a period of 14 hours where the mechanism of a serious security vulnerability in Nix 2.24 was publicly known but no patch available. The following reconstructs what led up to that, and lists the conclu…

---

## [Malware Python/Patator.A](https://discourse.nixosstag.fcio.net/t/malware-python-patator-a/16361)

<div class="topic-metadata">

**Author:** [@PlumpMath](https://discourse.nixosstag.fcio.net/u/PlumpMath)\
**Replies:** 7\
**Last updated:** [October 8, 2024, 6:26pm UTC](https://discourse.nixosstag.fcio.net/t/malware-python-patator-a/16361 "2024-10-08T18:26:33Z")

</div>

. …/python-modules/patator/default.nix

---

## [Nix 2.24+ is vulnerable to (remote) privilege escalation | Lobsters](https://discourse.nixosstag.fcio.net/t/nix-2-24-is-vulnerable-to-remote-privilege-escalation-lobsters/51890)

<div class="topic-metadata">

**Author:** [@AndersonTorres](https://discourse.nixosstag.fcio.net/u/AndersonTorres)\
**Replies:** 2\
**Last updated:** [September 10, 2024, 11:33am UTC](https://discourse.nixosstag.fcio.net/t/nix-2-24-is-vulnerable-to-remote-privilege-escalation-lobsters/51890 "2024-09-10T11:33:31Z")

</div>

Please delete if not fitting.

---

## [Scanning NIX packages with Sonatype (Nexus IQ) CLM scan tool](https://discourse.nixosstag.fcio.net/t/scanning-nix-packages-with-sonatype-nexus-iq-clm-scan-tool/35583)

<div class="topic-metadata">

**Author:** [@saurabhmalav](https://discourse.nixosstag.fcio.net/u/saurabhmalav)\
**Replies:** 11\
**Last updated:** [September 6, 2024, 3:05pm UTC](https://discourse.nixosstag.fcio.net/t/scanning-nix-packages-with-sonatype-nexus-iq-clm-scan-tool/35583 "2024-09-06T15:05:36Z")

</div>

I have been working on the task of scanning CVE and licenses with Sonatype (Nexus IQ) CLM scan tool. While looking into below sonatype document, it seems that Sonatype currently does not supports Nix packages scanning. …

---

## [Is this the place to find all nixos / nix security advisories?](https://discourse.nixosstag.fcio.net/t/is-this-the-place-to-find-all-nixos-nix-security-advisories/51317)

<div class="topic-metadata">

**Author:** [@John-Richardson](https://discourse.nixosstag.fcio.net/u/John-Richardson)\
**Replies:** 3\
**Last updated:** [August 30, 2024, 1:18pm UTC](https://discourse.nixosstag.fcio.net/t/is-this-the-place-to-find-all-nixos-nix-security-advisories/51317 "2024-08-30T13:18:50Z")

</div>

I’m looking for something similar to what ubuntu does at Security notices | Ubuntu We’d like to run nixos for production workloads, and our compliance requirements dictate that we follow a stream of security advisories …

---

## [Bootstrap-files updates amplifiy exploit of \*any\* package into exploit of \*every\* package](https://discourse.nixosstag.fcio.net/t/bootstrap-files-updates-amplifiy-exploit-of-any-package-into-exploit-of-every-package/50534)

<div class="topic-metadata">

**Author:** [@amjoseph](https://discourse.nixosstag.fcio.net/u/amjoseph)\
**Replies:** 12\
**Last updated:** [August 30, 2024, 10:26am UTC](https://discourse.nixosstag.fcio.net/t/bootstrap-files-updates-amplifiy-exploit-of-any-package-into-exploit-of-every-package/50534 "2024-08-30T10:26:15Z")

</div>

TLDR: a backdoored binary downloaded by any Hydra build can be used to backdoor every Hydra build, Ken Thompson-style. To do this: submit a “referesh the bootstrap-files” LGTM-merge PR and use the storepath-hash of the …

---

## [Nixos cgroups management](https://discourse.nixosstag.fcio.net/t/nixos-cgroups-management/45616)

<div class="topic-metadata">

**Author:** [@Talleyrand-34](https://discourse.nixosstag.fcio.net/u/Talleyrand-34)\
**Replies:** 1\
**Last updated:** [May 19, 2024, 4:10am UTC](https://discourse.nixosstag.fcio.net/t/nixos-cgroups-management/45616 "2024-05-19T04:10:47Z")

</div>

Hi, I think there should be a declarative way to specify a module/service about process cgroups configurations as well as there is for systemd, nginx, firewall… Aditionally the docs should talk about how default cgroups…

---

## [NixOS policy regarding systemd-confinement](https://discourse.nixosstag.fcio.net/t/nixos-policy-regarding-systemd-confinement/18976)

<div class="topic-metadata">

**Author:** [@julm](https://discourse.nixosstag.fcio.net/u/julm)\
**Replies:** 1\
**Last updated:** [May 12, 2024, 11:26pm UTC](https://discourse.nixosstag.fcio.net/t/nixos-policy-regarding-systemd-confinement/18976 "2024-05-12T23:26:05Z")

</div>

Hello there, fellow NixOS devs, Some context. You may or may not already know about systemd-confinement, a NixOS module adding systemd.services.${service}.confinement.\* options to restrict the Nix store paths available …

---

## [Over $10 Million donated for Supply Chain Security - An opertunity for growth and adoption](https://discourse.nixosstag.fcio.net/t/over-10-million-donated-for-supply-chain-security-an-opertunity-for-growth-and-adoption/15508)

<div class="topic-metadata">

**Author:** [@j-k](https://discourse.nixosstag.fcio.net/u/j-k)\
**Replies:** 5\
**Last updated:** [May 9, 2024, 10:18am UTC](https://discourse.nixosstag.fcio.net/t/over-10-million-donated-for-supply-chain-security-an-opertunity-for-growth-and-adoption/15508 "2024-05-09T10:18:00Z")

</div>

TLDR: Supply Chain Security has reached critical mind-share Nix solves or can solve many Supply Chain Security problems The nix community has broad knowledge going back over 10 years that can really impact the directio…

---

## [Article on openSUSE News: What we need to take away from the XZ Backdoor](https://discourse.nixosstag.fcio.net/t/article-on-opensuse-news-what-we-need-to-take-away-from-the-xz-backdoor/43292)

<div class="topic-metadata">

**Author:** [@sleepy](https://discourse.nixosstag.fcio.net/u/sleepy)\
**Replies:** 2\
**Last updated:** [April 14, 2024, 3:53pm UTC](https://discourse.nixosstag.fcio.net/t/article-on-opensuse-news-what-we-need-to-take-away-from-the-xz-backdoor/43292 "2024-04-14T15:53:18Z")

</div>

I just read an interesting article on the openSUSE News site, published today, about the XZ backdoor and on the internal measures taken against it by the openSUSE team before the public disclosure: What we need to take a…

---

## [Why doesn't nix-env require sudo or root?](https://discourse.nixosstag.fcio.net/t/why-doesnt-nix-env-require-sudo-or-root/43213)

<div class="topic-metadata">

**Author:** [@vbgf3](https://discourse.nixosstag.fcio.net/u/vbgf3)\
**Replies:** 13\
**Last updated:** [April 12, 2024, 1:29am UTC](https://discourse.nixosstag.fcio.net/t/why-doesnt-nix-env-require-sudo-or-root/43213 "2024-04-12T01:29:35Z")

</div>

Hi Everyone, I am new to nixos security. Question: why doesn’t nix-env not require sudo or root ? Anyone with access, locally or remotely, can install stuff ? By the time we realize an unauthorized program has been i…

---

## [Reconsider reusing upstream tarballs](https://discourse.nixosstag.fcio.net/t/reconsider-reusing-upstream-tarballs/42524)

<div class="topic-metadata">

**Author:** [@colemickens](https://discourse.nixosstag.fcio.net/u/colemickens)\
**Replies:** 46\
**Last updated:** [April 8, 2024, 11:55pm UTC](https://discourse.nixosstag.fcio.net/t/reconsider-reusing-upstream-tarballs/42524 "2024-04-08T23:55:24Z")

</div>

Serious question, can we … consider policy about using release tarballs in nixpkgs instead of building from source. EDIT: For context, this was split out of CVE-2024-3094: Malicious code in xz 5.6.0 and 5.6.1 tarballs -…

---

## [replaceRuntimeDependency, Guix grafts, and other approaches to the fast-upgrade problem](https://discourse.nixosstag.fcio.net/t/replaceruntimedependency-guix-grafts-and-other-approaches-to-the-fast-upgrade-problem/42610)

<div class="topic-metadata">

**Author:** [@rhendric](https://discourse.nixosstag.fcio.net/u/rhendric)\
**Replies:** 0\
**Last updated:** [April 1, 2024, 11:01pm UTC](https://discourse.nixosstag.fcio.net/t/replaceruntimedependency-guix-grafts-and-other-approaches-to-the-fast-upgrade-problem/42610 "2024-04-01T23:01:30Z")

</div>

Forked from: What do grafts do that replaceDependency and replaceRuntimeDependencies don’t? What are the downsides to both approaches relative to what people want right now? I think both of these approaches have the …

---

## [Keeping up with Gitlab updates](https://discourse.nixosstag.fcio.net/t/keeping-up-with-gitlab-updates/40384)

<div class="topic-metadata">

**Author:** [@carlphilippreh](https://discourse.nixosstag.fcio.net/u/carlphilippreh)\
**Replies:** 3\
**Last updated:** [February 28, 2024, 6:52am UTC](https://discourse.nixosstag.fcio.net/t/keeping-up-with-gitlab-updates/40384 "2024-02-28T06:52:20Z")

</div>

Hello everyone, I recently migrated a Docker-based Gitlab installation over to NixOS. Unfortunately, the most recent version in NixOS is still 16.8.1 and two newer versions with security fixes, 16.8.2 and 16.8.3, have b…

---

## [NixOS Discourse Misconfigured to embed external \`\<img src=""\>\`](https://discourse.nixosstag.fcio.net/t/nixos-discourse-misconfigured-to-embed-external-img-src/36956)

<div class="topic-metadata">

**Author:** [@norpol](https://discourse.nixosstag.fcio.net/u/norpol)\
**Replies:** 5\
**Last updated:** [February 12, 2024, 8:13pm UTC](https://discourse.nixosstag.fcio.net/t/nixos-discourse-misconfigured-to-embed-external-img-src/36956 "2024-02-12T20:13:56Z")

</div>

I’ve just noticed that Discourse appears to be misconfigured in a way that allows anyone to insert tracking pixels into postings, or also load very big images. For example this embedded gif with !\[\](http://external) is…

---

## [The default java version in nixpkgs is EOL and insecure](https://discourse.nixosstag.fcio.net/t/the-default-java-version-in-nixpkgs-is-eol-and-insecure/39022)

<div class="topic-metadata">

**Author:** [@Tungsten842](https://discourse.nixosstag.fcio.net/u/Tungsten842)\
**Replies:** 0\
**Last updated:** [January 30, 2024, 10:15am UTC](https://discourse.nixosstag.fcio.net/t/the-default-java-version-in-nixpkgs-is-eol-and-insecure/39022 "2024-01-30T10:15:45Z")

</div>

https://github.com/NixOS/nixpkgs/issues/280901

---

## [Thinkpad T480 fingerprint reader support](https://discourse.nixosstag.fcio.net/t/thinkpad-t480-fingerprint-reader-support/17448)

<div class="topic-metadata">

**Author:** [@faultymuse](https://discourse.nixosstag.fcio.net/u/faultymuse)\
**Replies:** 6\
**Last updated:** [January 4, 2024, 10:50pm UTC](https://discourse.nixosstag.fcio.net/t/thinkpad-t480-fingerprint-reader-support/17448 "2024-01-04T22:50:11Z")

</div>

I have a Thinkpad T480 I’ve been using for a while and recently discovered the wonder that is Nix/NixOS. Unfortunately the built-in fingerprint reader (device ID 06cb:009a) did not have linux driver support until recentl…

---

## [Help needed with nix \`trusted-users\` behaviour](https://discourse.nixosstag.fcio.net/t/help-needed-with-nix-trusted-users-behaviour/8369)

<div class="topic-metadata">

**Author:** [@MartinJ](https://discourse.nixosstag.fcio.net/u/MartinJ)\
**Replies:** 3\
**Last updated:** [December 22, 2023, 8:19pm UTC](https://discourse.nixosstag.fcio.net/t/help-needed-with-nix-trusted-users-behaviour/8369 "2023-12-22T20:19:29Z")

</div>

Hi, I opened nix copy --no-check-sigs fails for trusted user · Issue #3873 · NixOS/nix · GitHub because I’m facing a strange behaviour from nix 2.3.7, where even as I set my user to be trusted (in /etc/nix/nix.conf on m…

---

## [Timely updates for NixOS](https://discourse.nixosstag.fcio.net/t/timely-updates-for-nixos/29231)

<div class="topic-metadata">

**Author:** [@bernat](https://discourse.nixosstag.fcio.net/u/bernat)\
**Replies:** 24\
**Last updated:** [October 22, 2023, 9:07pm UTC](https://discourse.nixosstag.fcio.net/t/timely-updates-for-nixos/29231 "2023-10-22T21:07:29Z")

</div>

Hey! OpenSSL 1.1.1u was released two weeks ago to fix some vulnerabilities. It was backported to 22.11 with \[Backport staging-22.11\] openssl\_1\_1: 1.1.1t -\> 1.1.1u by github-actions\[bot\] · Pull Request #235017 · NixOS/ni…

---

## [What's the requirement for a package to be updated?](https://discourse.nixosstag.fcio.net/t/whats-the-requirement-for-a-package-to-be-updated/34018)

<div class="topic-metadata">

**Author:** [@Quagmire](https://discourse.nixosstag.fcio.net/u/Quagmire)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 6:54am UTC](https://discourse.nixosstag.fcio.net/t/whats-the-requirement-for-a-package-to-be-updated/34018 "2023-10-10T06:54:47Z")

</div>

I’ve been working on setting a mail server using NixOS 23.05 and I have functionality close to where I want it. I decided to analyze a few of the included packages for any security issues and I found a number of problems…

---

## [Curl high severity problem CVE-2023-38545](https://discourse.nixosstag.fcio.net/t/curl-high-severity-problem-cve-2023-38545/33871)

<div class="topic-metadata">

**Author:** [@turion](https://discourse.nixosstag.fcio.net/u/turion)\
**Replies:** 2\
**Last updated:** [October 5, 2023, 1:39pm UTC](https://discourse.nixosstag.fcio.net/t/curl-high-severity-problem-cve-2023-38545/33871 "2023-10-05T13:39:56Z")

</div>

See, Severity HIGH security problem to be announced with curl 8.4.0 on Oct 11 · curl/curl · Discussion #12026 · GitHub, there will be an update to curl sooner than expected, on October 11, which fixes a high severity pro…

---

## [Could Microsoft master key hack impact Nix via Github?](https://discourse.nixosstag.fcio.net/t/could-microsoft-master-key-hack-impact-nix-via-github/33652)

<div class="topic-metadata">

**Author:** [@bgibson](https://discourse.nixosstag.fcio.net/u/bgibson)\
**Replies:** 3\
**Last updated:** [September 30, 2023, 11:29am UTC](https://discourse.nixosstag.fcio.net/t/could-microsoft-master-key-hack-impact-nix-via-github/33652 "2023-09-30T11:29:54Z")

</div>

Interesting discussion here about the possible implication of MS’s recent master key hack on GitHub’s security. Speculation that any repo on Github could now be compromised too, including nixpkgs. Any thoughts on thi…

---

## [Inkscape possible domain compromise](https://discourse.nixosstag.fcio.net/t/inkscape-possible-domain-compromise/32008)

<div class="topic-metadata">

**Author:** [@waffle8946](https://discourse.nixosstag.fcio.net/u/waffle8946)\
**Replies:** 10\
**Last updated:** [August 23, 2023, 6:19am UTC](https://discourse.nixosstag.fcio.net/t/inkscape-possible-domain-compromise/32008 "2023-08-23T06:19:47Z")

</div>

https://github.com/NixOS/nixpkgs/blob/c7623219fccf46b36370140d777ba61c85c9bb8d/pkgs/applications/graphics/inkscape/default.nix fetches from https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz, but vis…

[Next page](https://discourse.nixosstag.fcio.net/c/dev/security/21.md?page=1)
