WRATHGUARD
Kernel practice

Hardened Linux kernel engineering.

The kernel decides what every other part of the system is allowed to do. We build kernels that enforce that decision even when userspace is compromised, and we keep them enforcing it for years.

Why a custom kernel

Your system runs on one machine. The distro kernel runs on all of them.

A general-purpose kernel enables thousands of drivers, filesystems, protocols and legacy interfaces so that it boots everywhere. Each one is code an attacker can reach and a maintainer has to keep patched. On a fixed-hardware system, most of it is dead weight with a live attack surface.

We start from your board, your workload and your threat model. The kernel that comes out is smaller, faster to boot, easier to audit, and carries hardening that distributions leave off because of the compatibility cost.

Surface
Only what the mission needs

Every enabled subsystem has a written justification.

Mitigations
KSPP baseline and beyond

Memory, control flow and lockdown protections, cost measured on target.

Policy
Enforced at ring 0

LSM stacking so a root shell is still not a kernel compromise.

Lifetime
Maintained, not abandoned

LTS tracking and CVE triage for as long as the system is fielded.

Hardening baseline

What we turn on, and what it stops.

A representative subset of the baseline we start every kernel from. Each option is kept only after we measure its cost on your workload and confirm it in writing.

CONFIG_RANDOMIZE_BASE
Kernel address prediction. KASLR, paired with a boot loader that does not leak the load address.
On
CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT
Stack layout prediction. Per-syscall stack offset randomisation. Negligible cost.
On
CONFIG_STACKPROTECTOR_STRONG
Stack buffer overflow. Canaries on every function with local arrays or address-taken locals.
On
CONFIG_CFI_CLANG
Control-flow hijack via corrupted function pointers. Forward-edge CFI. Requires a clang toolchain, which we provide and pin.
On
CONFIG_SHADOW_CALL_STACK
Return address overwrite. arm64 backward-edge protection with low overhead.
On
CONFIG_INIT_ON_ALLOC_DEFAULT_ON
Uninitialised memory disclosure. Zero on allocation. Measured cost typically one to three percent.
On
CONFIG_INIT_ON_FREE_DEFAULT_ON
Use-after-free data reuse. Zero on free. Higher cost, enabled where the threat model warrants it.
On
CONFIG_INIT_STACK_ALL_ZERO
Uninitialised stack variable leaks. Compiler-driven. Removes an entire bug class.
On
CONFIG_HARDENED_USERCOPY
Out-of-bounds user and kernel copies. Bounds checks on every copy against the slab object size.
On
CONFIG_FORTIFY_SOURCE
String and memory function overflows. Compile-time and run-time bounds checking on common functions.
On
CONFIG_SLAB_FREELIST_RANDOM and HARDENED
Heap grooming and freelist corruption. Randomised and integrity-checked allocator freelists.
On
CONFIG_STRICT_KERNEL_RWX and MODULE_RWX
Runtime code modification. No page is both writable and executable.
On
CONFIG_MODULE_SIG_FORCE
Unsigned or tampered module load. Signed with a key sealed in your HSM or TPM, not on a build box.
On
CONFIG_SECURITY_LOCKDOWN_LSM_EARLY
Root escalating to ring 0. Confidentiality mode by default. Blocks /dev/mem, kexec, unsigned modules and debugfs writes.
On
CONFIG_BPF_UNPRIV_DEFAULT_OFF
Unprivileged BPF attack surface. BPF only for privileged processes, and only where the system needs it at all.
On
CONFIG_BUG_ON_DATA_CORRUPTION
Silent exploitation of corrupted structures. Fail loudly on list corruption rather than continue in an unknown state.
On
CONFIG_DEVMEM, KEXEC, HIBERNATION, PROC_KCORE, USERFAULTFD
Legacy and debug attack surface. Disabled where unused, along with COMPAT and legacy vsyscall.
Off
Real time

Hardened and deterministic are not a trade-off.

Control systems, radar processing, medical devices and vehicle platforms need bounded latency as well as security. We build on PREEMPT_RT, isolate cores for the critical path, pin interrupts away from them, and then prove the latency bound with long soak tests on the actual hardware.

PREEMPT_RT
Mainline real-time preemption, configured and tuned for your workload.
CPU isolation
isolcpus, nohz_full and RCU offload so housekeeping never touches the critical cores.
Measured bounds
cyclictest and application-level latency traced over days, under load, with hardening enabled.
Mitigation cost accounted
Each hardening option is measured against the latency budget and the decision is written down.
Process

How a kernel engagement runs.

1
Baseline audit
Your current config, boot args, module list and exposed interfaces scored against the baseline and your threat model.
2
Specification
Target config, LSM stack, boot chain integration and the list of subsystems to remove. Each decision carries a reason and an owner.
3
Build
Config and patch series under version control. Reproducible builds with a pinned toolchain. Signed with keys you hold.
4
Verify
Boot and functional tests on target. KASAN, KCSAN, UBSAN and lockdep runs. Fuzzing of custom drivers. Latency soak where real time applies.
5
Handover
Hardening report, test evidence, pipeline and a walkthrough with your engineers. You can rebuild and release without us.
6
Sustain
LTS tracking, CVE triage against your exact config, and releases on an agreed cadence for the life of the product.
Tooling

Verification we run before you see a build.

Hardening that has not been tested on the target is a hypothesis. Every kernel we deliver has been through sanitiser builds, fuzzing of any custom code, and functional testing on representative hardware.

KASANKCSANUBSANKFENCElockdepsyzkallerkselftestLTPcyclictestftrace and perfCoccinelleSparsekernel-hardening-checkerBoard farm
Commitments
No untested kernels
If it has not booted on your hardware under your workload, it is not delivered.
No silent trade-offs
Disabling a mitigation to hit a performance target happens in writing, with the risk named.
No lock-in
You hold the signing keys, the repository and the pipeline. We upstream fixes where we can.
No surprises
Every change in a release is in the change log with the reason it was made.

Send us your kernel config.

A baseline audit of your current kernel is the fastest way to find out where you stand. We will tell you what we find, and what it would take to fix.

Request a baseline audit