Qubes OS
Qubes OS is a security-focused desktop operating system that aims to provide security through compartmentalization.
≈ 5 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Qubes OS is a security-focused desktop operating system that aims to provide security through compartmentalization. Compartmentalization is provided through the use of virtualization technology. This allows the segmentation of applications into secure virtual machines called qubes.
Virtualization services in Qubes OS are provided by the Xen hypervisor. The runtimes of individual qubes are generally based on a unique system of underlying Operating system templates. Templates provide a single, immutable root file system which can be shared by multiple qubes.
This approach has two major benefits. First, updates to a given template are automatically "inherited" by all qubes based on it. Second, shared templates can dramatically reduce storage requirements compared to separate VMs with a full operating install per secure domain.
The base installation of Qubes OS provides a number of officially supported templates based on the Fedora and Debian Linux distributions. Alternative community-supported templates include Whonix, Ubuntu, Arch Linux, CentOS, and Gentoo. Users may also create their own templates.
Operating Systems like Qubes OS are referred to in academia as Converged Multi-Level Secure (MLS) Systems. Other proposals of similar systems have surfaced and SecureView and VMware vSphere are commercial competitors.
User experience
Users interact with Qubes OS in much the same manner that they interact with any standard graphical desktop operating systems with some key differences: The creation of qubes (security domains) offers the means to create discrete, lean, secure application spaces by linking them to a complete root filesystem using shared templates. Applications launched from their respective qubes are distinguished by a unique colored window border.
Opening an application for the first time in a given qube may incur a modest delay depending on system hardware. Sharing files and clipboard paste buffers utilize a special mechanism, as qubes do not share a common clipboard or file system. Users can create and manage as many qubes as desired to suit their specific requirements.
Xen hypervisor and domains
The Xen hypervisor provides strong isolation between its hosted virtual machines, called domains in Xen terminology. The first domain started by Xen is the privileged administrative domain referred to as domain zero or more commonly dom0.
The Administrative domain: dom0
As of Qubes OS 4.1.2, the operating system running in dom0 is Fedora Linux running a paravirtualized Linux kernel. It is the Linux kernel in dom0 that controls and brokers access to all the physical system hardware, via standard Linux kernel device drivers. The operating system hosts the user's graphical desktop and controls most hardware devices.
This includes the graphics device, USB ports, storage and input devices, such as the keyboard and mouse. The base graphical desktop is composed of the X server, the Xfwm window manager and the Xfce desktop. By design, dom0 has the least possible direct interaction with the qubes in order to minimize the possibility of an attack originating from there.
Updates to the dom0 operating system and the included Template OS images are performed via a special mechanism which does not require dom0 operating system to connect directly to a network.
The User domains: qubes
An app qube (an instance of a qube) provides secure, compartmentalized execution of standard user applications such as a web browser, an email client or a text editor. Operation of app qubes is controlled by the Qube Manager. It launches the discrete app qubes and presents their applications on the desktop of dom0 as normal process windows.
This mechanism follows the idea of a sandbox. After running the application, viewing the document, etc., the whole disposable will be destroyed on shutdown. Qubes OS integrates all of the app qubes into a single common desktop environment.
The identity of each app qube for a given process is provided by an unforgeable, colored window border which is defined in the properties of the app qube. Disk usage in dom0 is minimized by allowing multiple app qubes to share a common "template" root file system image maintained in read-only mode. Additional disk storage is only used for userʼs applications, data and per-VM settings.
Network domain
The network mechanism is the most exposed to security attacks. To circumvent this, it is isolated in a separate, unprivileged qube, named the net qube. Another firewall Domain is used to house the Linux-kernel-based firewall, so that even if the network domain is compromised, the firewall is still isolated and protected (as it is running in a separate Linux kernel in a separate VM).
External links
Qubes OS on DistroWatch
Text derived from https://en.wikipedia.org/w/index.php?oldid=1378168960 under CC BY-SA 4.0; modifications have been made.