You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hardening Omarchy Against Supply Chain Attacks
#5946
A Proposed Isolation Pattern for securing your Omarchy workflows.
The Problem
Supply chain attacks on npm and PyPI have moved from theoretical concern to routine occurrence. The attack surface is specific and well understood, malicious packages exploit the install phase:
Compromised maintainer accounts — a legitimate, trusted package gets backdoored in a patch release
Malicious postinstall scripts — code runs at npm install / pip install time with your full user privileges
Dependency confusion — internal package names hijacked in public registries
The payload is almost always the same: scan ~/.ssh, ~/.aws, ~/.gnupg, environment variables, and /proc for credentials, then exfiltrate them. Once your SSH keys or cloud credentials are gone, the blast radius extends well beyond the project you were working on.
Omarchy already does a lot right — LUKS encryption, Wayland (no global keylogging between apps), and a sensible baseline. But there's no isolation between a npm install in one project and your credentials sitting in ~/.ssh. That's the gap worth addressing.
Proposed Pattern: Tiered Isolation
The idea is a three-tier model where you match the environment to the trust level of the work, not the other way around.
Tier 1 — Daily dev work: Distrobox with isolated homes
Distrobox with rootless Podman gives you per-project containers that integrate well with your existing Omarchy workflow — same terminal, same editor, same keybindings — but with a hard boundary around credentials:
The --home flag is the critical piece. ~/.ssh, ~/.aws, and ~/.gnupg on the host are completely invisible inside the container. You forward only the SSH agent socket — never the keys themselves — so processes can use credentials for operations but cannot read or exfiltrate the key material:
Tier 2 — Untrusted installs: KVM VM with snapshots
For genuinely risky work — a new dependency you haven't vetted, contributing to an unfamiliar codebase, auditing a suspicious package — a KVM VM with libvirt snapshots gives you a hard kernel boundary and instant rollback:
For the VM base, Kicksecure (the hardened Debian foundation Whonix is built on) is worth considering over plain Ubuntu — it comes with a lot of security defaults already applied.
Inside the VM, wrap installs with bubblewrap to prevent network access during the install phase:
--unshare-net means postinstall scripts cannot phone home even if they try.
Tier 3 — Maximum isolation: Whonix on KVM
For security research, reviewing suspicious code, or anything that shouldn't be tied to your real IP, Whonix slots cleanly into the same KVM/libvirt setup. Its two-VM architecture (Gateway + Workstation) means all traffic is forced through Tor at the network level — a malicious package running inside the Workstation cannot bypass this to reveal your real IP, even if it tries.
Host (Omarchy)
├── Distrobox: per-project isolated homes ← daily work
├── KVM: Kicksecure VM, snapshotted ← untrusted installs
└── KVM: Whonix Gateway + Workstation ← research / max isolation
What This Doesn't Require
This is all additive to a stock Omarchy install. It doesn't require:
Switching to NixOS or Qubes
Replacing your workflow or tooling
Any changes to how Omarchy itself is set up
Distrobox and KVM/libvirt are already available in the Arch repos. Whonix publishes KVM images with GPG signatures. The main investment is workflow — getting into the habit of matching environment to trust level.
Questions for Discussion
Is there appetite for Omarchy to ship a recommended Distrobox workflow, similar to how the Windows VM pattern is documented?
Would a distrobox-new-project helper script that enforces isolated --home dirs be useful?
Has anyone experimented with bubblewrap-wrapping package installs directly in the Omarchy context?
Any experience with Kicksecure as a dev VM base vs plain Debian/Ubuntu?
Happy to share more detail on any layer of this. The goal is a concrete, Omarchy-native hardening pattern that doesn't sacrifice the productivity that makes Omarchy worth using in the first place.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hardening Omarchy Against Supply Chain Attacks
A Proposed Isolation Pattern for securing your Omarchy workflows.
The Problem
Supply chain attacks on npm and PyPI have moved from theoretical concern to routine occurrence. The attack surface is specific and well understood, malicious packages exploit the install phase:
npm install/pip installtime with your full user privilegesThe payload is almost always the same: scan
~/.ssh,~/.aws,~/.gnupg, environment variables, and/procfor credentials, then exfiltrate them. Once your SSH keys or cloud credentials are gone, the blast radius extends well beyond the project you were working on.Omarchy already does a lot right — LUKS encryption, Wayland (no global keylogging between apps), and a sensible baseline. But there's no isolation between a
npm installin one project and your credentials sitting in~/.ssh. That's the gap worth addressing.Proposed Pattern: Tiered Isolation
The idea is a three-tier model where you match the environment to the trust level of the work, not the other way around.
Tier 1 — Daily dev work: Distrobox with isolated homes
Distrobox with rootless Podman gives you per-project containers that integrate well with your existing Omarchy workflow — same terminal, same editor, same keybindings — but with a hard boundary around credentials:
The
--homeflag is the critical piece.~/.ssh,~/.aws, and~/.gnupgon the host are completely invisible inside the container. You forward only the SSH agent socket — never the keys themselves — so processes can use credentials for operations but cannot read or exfiltrate the key material:Tier 2 — Untrusted installs: KVM VM with snapshots
For genuinely risky work — a new dependency you haven't vetted, contributing to an unfamiliar codebase, auditing a suspicious package — a KVM VM with libvirt snapshots gives you a hard kernel boundary and instant rollback:
For the VM base, Kicksecure (the hardened Debian foundation Whonix is built on) is worth considering over plain Ubuntu — it comes with a lot of security defaults already applied.
Inside the VM, wrap installs with bubblewrap to prevent network access during the install phase:
--unshare-netmeans postinstall scripts cannot phone home even if they try.Tier 3 — Maximum isolation: Whonix on KVM
For security research, reviewing suspicious code, or anything that shouldn't be tied to your real IP, Whonix slots cleanly into the same KVM/libvirt setup. Its two-VM architecture (Gateway + Workstation) means all traffic is forced through Tor at the network level — a malicious package running inside the Workstation cannot bypass this to reveal your real IP, even if it tries.
What This Doesn't Require
This is all additive to a stock Omarchy install. It doesn't require:
Distrobox and KVM/libvirt are already available in the Arch repos. Whonix publishes KVM images with GPG signatures. The main investment is workflow — getting into the habit of matching environment to trust level.
Questions for Discussion
distrobox-new-projecthelper script that enforces isolated--homedirs be useful?Happy to share more detail on any layer of this. The goal is a concrete, Omarchy-native hardening pattern that doesn't sacrifice the productivity that makes Omarchy worth using in the first place.
All reactions