Securus Journal 43.65°N, 79.38°W

Rootless, immutable and open: rethinking the modern stack

Where rootless containers, immutable operating systems and open source software meet, why the three together are becoming the new baseline, and what each still leaves open.

Contents

On 29 March 2024 Andres Freund, a Microsoft engineer who works on PostgreSQL, posted to the oss-security mailing list that the xz compression library had been backdoored. He had noticed SSH logins on a Debian test machine taking about half a second longer and using more CPU than they should, and he followed the delay down into versions 5.6.0 and 5.6.1 of liblzma. The code had been put there by a maintainer who had spent more than two years earning the project’s trust. It had reached Debian’s testing branch and Fedora’s development releases. It had not yet reached the stable releases most servers run, and it was caught by one person’s irritation at a slow login.

The episode sits at the meeting point of three changes in how serious infrastructure is built. None of them gets keynotes. They happen in distribution decisions, container defaults and the wording of compliance requirements: containers that do not need root, operating systems that cannot be modified by accident, and a software supply chain where most of the code was written by someone the user has never heard of.

No single part of this is new. What is new is how the combination changes the way a competent administrator works, and the security model it produces is materially different from the one most people learned.

Envisioning The Future “The empires of the future are the empires of the mind”: Churchill at Harvard in 1943, on an IBM ThinkPad wallpaper.

Going rootless

Root on a Unix system has had unlimited authority since the beginning: user ID 0 bypasses every permission check the kernel makes. For decades that was treated as a fact of life. The admin has root, the daemon has root, the container runtime has root, and the security posture is whatever can be built on top of that. When Docker arrived in 2013, its daemon ran as root, and anyone who could talk to it could, in effect, become root on the host.

Rootless containers break the pattern by running the container runtime inside a user namespace, so the privileges available to anything inside the container are the privileges of an ordinary user on the host. Linux completed unprivileged user namespaces in version 3.8, in 2013. Tools like Podman and Buildah run as normal users by default, and no central daemon sits in the background with elevated privileges. A rootless container cannot bind a port below 1024 unless the administrator lowers the net.ipv4.ip_unprivileged_port_start sysctl, and even then the container does not become root on the host.

The mechanics come in four parts.

User namespaces do the central work. The kernel maps an unprivileged host UID to a “fake” root inside the container. The container thinks it is root; the host disagrees. The container cannot read or write files belonging to other users, cannot load kernel modules and cannot touch firmware.

Networking runs in user space. slirp4netns and bypass4netns give containers networking without requiring CAP_NET_RAW or any other elevated capability on the host, and since Podman 5.0 the default has been pasta, from the passt project. The performance cost used to be significant. Recent work has reduced it to the point where most workloads do not notice.

There is no daemon. Podman starts a container by forking a process, so there is no always-on service to compromise, and systemd can supervise containers directly through Quadlet units. Resource accounting works the way it does for any other systemd service.

It scales well past the desktop. HPC environments use rootless containers in shared multi-user clusters, GPU access included. Singularity and Apptainer extend the model to multi-node setups, and Usernetes runs Kubernetes itself rootless.

The result is a model where the blast radius of a container compromise is bounded by the privileges of the user that started it. That is a far smaller target than “the host system.”

Immutable systems

The next layer is an immutable host OS. The base system is read-only, and updates are applied as atomic snapshots instead of in-place modifications. Fedora Silverblue, openSUSE MicroOS, Ubuntu Core, NixOS and Vanilla OS each do this slightly differently. NixOS goes back furthest, to Eelco Dolstra’s 2006 doctoral thesis at Utrecht on a purely functional model of software deployment.

The base is read-only. The OS is delivered as a single image, usually built with OSTree or something similar. Day-to-day changes (new packages, configs) happen in containers or overlays, and the base never changes outside an update transaction. Silverblue’s base is an OSTree snapshot; user apps come through Flatpak, and development tools live in toolbox containers.

Updates are atomic and can be rolled back. An update downloads and stages a new snapshot, and on reboot the system boots into it. If something fails, a reboot returns to the previous one. There is no half-applied state and no “the upgrade failed and now apt is stuck” situation. NixOS takes this further: the whole system is defined in a configuration file, and rebuilding produces a new generation that is either complete and bootable or not adopted at all.

Configuration is declarative. NixOS and Ubuntu Core let you describe the system as code: packages, services, users, kernel options, boot devices. Any change is intentional, and the configuration itself can be versioned. You can branch an operating system the way you branch code.

Apps live in containers. Immutable distributions lean heavily on container-style packaging. Silverblue uses Flatpak for desktop applications, Vanilla OS uses Apx, which installs each app inside its own container, and Ubuntu Core uses Snaps. The pattern is consistent: keep the base image clean and put everything else in isolated, versioned packages.

In any environment with more than a handful of machines, the advantage is configuration drift, or rather its absence. Rolling out a config change is a snapshot promotion, not a patch applied host by host. Failed updates revert in one reboot. Auditors get a single source of truth for what is actually running.

The trade-off is that administrators have to adopt container-based workflows instead of installing libraries directly on the host. For most people that is a net improvement once the habits are built. For the rest, it is a fight. Either way, regulation is pushing in this direction: the EU Cyber Resilience Act, the US executive order on improving the nation’s cybersecurity (Executive Order 14028 of May 2021), and sector-specific compliance rules.

The open source illusion

open source vs proprietary Open and proprietary software, as they are usually contrasted.

Open source software is now the substrate of nearly everything. Black Duck’s 2025 Open Source Security and Risk Analysis, which covers the codebases it audited during 2024, found open source components in 97% of them, and most enterprises in its survey had increased their use of open source year over year.

Transparency is real, and it matters. It is still not the same thing as safety, and a few problems compound.

Maintenance lags. An open codebase can be audited, but only if someone actually does it. Most open source in production is maintained by a small number of contributors, sometimes one person. The Black Duck audit found outdated components in 91% of codebases, and components more than ten versions behind upstream in 90%. Finding the code is easy; keeping it patched is the actual work.

The vulnerability surface is wide. 86% of audited applications had at least one known open source vulnerability, and 81% had at least one high or critical-risk bug. Most of those bugs sit in old versions of common libraries, jQuery the perennial example, that nobody ever upgraded, and few in anything obscure. Vulnerability scanning and SBOM generation are slowly becoming mandatory in regulated industries, and about a quarter of organizations now produce SBOMs for compliance reasons.

Licensing and provenance are uncertain. 56% of audited codebases had license conflicts. Beyond licensing there is the question of whether anyone knows who wrote the code and whether they followed reasonable security practices. xz made this concrete: a maintainer relationship cultivated patiently over years, then used to insert a backdoor that nearly shipped in major distributions. That story did not end as badly as it could have, but nothing about the method prevents its repetition.

Open source is still the right answer in most cases. Vendor lock-in is real, the ability to audit and patch matters, and a healthy upstream community is worth a lot. What has to go is the assumption that “open” by itself produces “secure.” It produces “auditable,” which is a precondition. The audit still has to happen, and the patches still have to land.

Why it matters

The trends are converging in production. The CNCF’s annual survey for 2024, published in April 2025, put cloud-native adoption at 89% of surveyed organizations, with 91% running containers in production. Kubernetes was in use, in pilot or under evaluation at 93% of respondents.

Containers and microservices have compressed the deployment cycle. CI/CD adoption climbed 31% in one year, and 29% of teams now deploy to production several times a day. Every commit can reach production within hours. In that environment, trusting any single deployment by default is unwise. Every change has to be guarded and reversible.

The cost side has moved the other way. IBM’s Cost of a Data Breach report for 2024, researched by the Ponemon Institute, put the global average at $4.88 million, up 10% on 2023. A third of breaches involved shadow data, kept in places the security team did not know about. Reducing attack surface has stopped being an aspiration.

This is where the three patterns reinforce each other. Rootless containers limit the privileges an attacker actually obtains when a service is compromised. Immutable hosts make persistence harder, because the base system cannot be written to in place: an attacker who wants to survive a reboot is pushed out of /usr and into /etc and /var, which stay writable and persist across updates on most of these systems, and which are much smaller places to watch. Strict open source hygiene (vetted dependencies, SBOMs, prompt patching) narrows the way in to begin with.

Regulation points the same way. The EU Cyber Resilience Act entered into force on 10 December 2024. Its duty to report actively exploited vulnerabilities applies from 11 September 2026, and the rest of its obligations, built around provable integrity in the software supply chain, from 11 December 2027. Sector-specific requirements in finance and healthcare are doing similar work in the US. The rough consensus across regulators is that trust has to be earned and demonstrated, not assumed.

For a hobbyist running a homelab, none of this is binding. For anyone shipping software to other people, it increasingly is. The same patterns work at both scales. The setup that keeps a small lab honest is the setup, scaled up, that keeps an organization defensible, and the xz backdoor was found on a test machine by someone who noticed half a second.

Sources

  • Freund, Andres. “backdoor in upstream xz/liblzma leading to ssh server compromise.” oss-security mailing list, 29 March 2024. CVE-2024-3094.
  • Dolstra, Eelco. The Purely Functional Software Deployment Model. PhD thesis, Utrecht University, 2006.
  • Red Hat. Podman documentation, rootless mode and networking.
  • Black Duck. 2025 Open Source Security and Risk Analysis. February 2025.
  • Cloud Native Computing Foundation. Cloud Native 2024: Approaching a Decade of Code, Cloud, and Change. April 2025.
  • IBM Security and Ponemon Institute. Cost of a Data Breach Report 2024.
  • Executive Order 14028, “Improving the Nation’s Cybersecurity.” 12 May 2021.
  • Regulation (EU) 2024/2847, the Cyber Resilience Act.
  • Open Source Security Foundation (OpenSSF).