Habr•October 23, 2026•🇷🇺Translated from Russian

Secure Boot on Arch Linux: Enabling Protection for UKI Without Replacing Factory Keys

Arch Linux, unlike many other distributions, does not enable Secure Boot by default. Installation requires it to be disabled, although users can sign the image themselves. Once enabled, the Arch Wiki offers several configuration methods, but navigating them can be confusing for newcomers.

Secure Boot can be set up using sbctl by replacing all factory UEFI keys, through shim, or by adding a key directly via the UEFI interface. This article provides a step-by-step walkthrough of the third option: adding a custom key through the UEFI menu for use with UKI (Unified Kernel Image).

The goal is not to create an unbreakable Secure Boot setup but to achieve basic protection comparable to the default configuration on Windows. The author avoided shim because it depends on Microsoft certificates and rejected sbctl enroll-keys -m because it replaces the entire PK → KEK → DB chain, which carries higher risk and blurs responsibility between operating systems.

Step 0. Backing Up Keys

Before making changes, back up the existing keys using a FAT-formatted USB drive. Enter the UEFI BIOS, locate the Secure Boot section, and select “Save all keys.” Choose the USB drive from the list of disks. After saving, copy the files to a safe location so they can be restored if needed.

Step 1. Generating the Key

Boot into Arch Linux and install sbsigntools:

sudo pacman -S sbsigntools

Create a secure directory and generate a new 4096-bit RSA key valid for ten years:

sudo install -d -m 700 /etc/secureboot

sudo openssl req -new -x509 -newkey rsa:4096 -sha256 -nodes -days 3650 -subj "/CN=My Arch Linux Secure Boot/" -keyout /etc/secureboot/db.key -out /etc/secureboot/db.pem

Convert the public key to DER format for UEFI enrollment:

sudo openssl x509 -in /etc/secureboot/db.pem -outform DER -out /etc/secureboot/db.cer

Step 2. Enrolling the Key in UEFI DB

Copy db.cer to a USB drive and reboot into UEFI. In the Secure Boot menu, add the new key to the DB section. After saving and rebooting, sbctl list-enrolled-keys confirms the custom key appears alongside existing Microsoft and ASUS certificates.

Step 3. Signing the UKI Automatically

Create a post-hook script at /etc/initcpio/post/uki-sbsign that signs the UKI whenever mkinitcpio runs:

#!/usr/bin/env bash

uki="$3"

[[ -n "$uki" ]] || exit 0

key="/etc/secureboot/db.key"

cert="/etc/secureboot/db.pem"

if ! /usr/bin/sbverify --cert "$cert" "$uki" &>/dev/null; then

echo "UKI to sign: $uki"

/usr/bin/sbsign --key "$key" --cert "$cert" --output "$uki" "$uki"

else

echo "UKI already signed, skipping"

fi

Make the script executable and test it with mkinitcpio -P. The hook now signs every new UKI after pacman -Syu. Once Secure Boot is enabled in BIOS, the system boots from the signed image.

Related articles

Habr•Other

Lightweight OpenVPN Web Panel on FastAPI and SQLite Manages 130 Clients with Policy-Based Routing and DNS Filtering

A developer has released an open-source lightweight web panel for OpenVPN built with FastAPI and SQLite to simplify certificate and client management beyond Easy-RSA scripts. The solution currently supports a production server handling around 130 clients with 50-60 concurrent users and monthly traffic volumes of 10-15 TB while running efficiently on a minimal 1 vCPU and 1 GB RAM VPS. Key features include policy-based routing that splits traffic between the primary gateway and a secondary WireGuard tunnel using ipset and iptables, plus integrated dnsmasq DNS filtering that blocks advertising and tracking domains to reduce background traffic by approximately 30 percent. The panel operates alongside an existing OpenVPN server configuration without requiring Docker or a separate database. It addresses limitations found in heavier existing management tools by providing flexible route control, client speed management, and local DNS blacklists and whitelists. The project is published on GitHub under the MIT license and includes details on production challenges encountered with Linux networking components.

AntiMalware•Other

AI-Built Open-Source Driver nvdriver Removes Nvidia GPU Restrictions on Linux

Developer Eric Hartford has released nvdriver, an alternative open-source kernel driver for Nvidia graphics cards on Linux. Written in Rust under the MIT license, the project uses AI tools Claude and GitHub Copilot and quickly gained over 4700 GitHub stars. nvdriver replaces only the proprietary Nvidia kernel module while retaining original user-space libraries, maintaining compatibility with CUDA, PyTorch, llama.cpp, and nvidia-smi. It enables peer-to-peer PCIe transfers between consumer GPUs, lifts NVENC session limits, allows unlicensed GRID virtualization, and unlocks compute capabilities on CMP mining cards. Testing showed a 26.8% memory bandwidth increase on Tesla V100 cards and a 12.3% boost in llama.cpp inference speed. The driver was validated on RTX 3090, RTX 4060, and mobile RTX 3050 Ti, though Maxwell and Pascal support remains unconfirmed. Users are warned of potential instability, including crashes and incorrect results during memory overclocking or large memory allocations.

Securitylab•Other

OpenAI Advances Mathematical Proof of Yang-Mills Theory Existence

OpenAI's research models have produced a formal mathematical construction proving the existence of a non-trivial quantum Yang-Mills theory in four-dimensional space-time. The work builds on Kenneth Wilson's lattice approach and satisfies key Wightman axioms, marking a major step toward solving one of the Clay Mathematics Institute's Millennium Prize Problems. A team of physicists and mathematicians led by Nobel laureate David Gross reviewed the result and confirmed its validity while noting several open questions. The construction does not yet prove the existence of a positive mass gap, the second required element for claiming the million-dollar prize. Nearly 10,000 Lean files were used to formalize the proof, allowing automated verification that took several hours. The achievement highlights how AI systems can now generate verifiable mathematical knowledge in fundamental physics.

安全客•Other

OceanBase Launches OceanLake Platform to Power AI Agent Data Infrastructure

OceanBase has introduced the OceanLake AI data platform and open-sourced its OceanBase AI database under the codename OceanSeek at the AI Data Conference in Beijing. The announcement addresses a fundamental shift in data infrastructure design as AI agents replace humans as primary data consumers. Traditional systems built around human workflows now face new demands for real-time access, multi-modal consistency, elastic scaling, and low-cost experimentation. OceanBase CTO Yang Chuanhui outlined three stages of enterprise AI adoption that progressively increase pressure on data systems, from AI-assisted coding to full agent-driven business processes. The new platform combines lakehouse and database capabilities with support for Spark, Flink, Ray, and Daft to handle batch, streaming, and AI workloads in a unified architecture. Features such as compute-storage separation, zero-scale resource release, and data branching aim to reduce costs and enable parallel agent iteration at scale.