Linux security for the Cyber Assessment Framework and the Bill
The Cyber Security and Resilience Bill (CSRB) and the Cyber Assessment Framework (CAF) set no Linux-specific rules. You show that your Linux estate supports CAF outcomes through secure baselines, patching, controlled privileged access, logging and evidence that all of it keeps working.
Last updated · Precursor SecurityStatus checked : the Bill passed the House of Lords on 2 November 2026 and returns to the Commons to consider Lords amendments (no date set). On 4 November 2026 the Commons extended its carry-over, so it lapses if not passed by the end of 29 April 2027. It is not yet law. References are to HL Bill 62 (as amended on Report), so wording and numbering may still change in the final Act. This guide is general information, not legal advice.
Key points
- Neither the Bill nor the CAF sets Linux rules. Show that your Linux estate supports CAF outcomes.
- Most Linux work maps to CAF Objective B (protection) and C (detection), especially B2, B4 and C1.
- Use a published benchmark such as CIS as a starting point, and record every exception with a reason.
- Unsupported distributions are a common 'not achieved' indicator under B4.d. Track every end-of-support date.
- Dated reports across the estate are evidence. Screenshots from one server aren't.
Does the Bill or the CAF set rules for Linux?
No. Neither the Cyber Security and Resilience Bill (CSRB) nor the Cyber Assessment Framework (CAF) sets rules for Linux. The CAF describes outcomes and doesn't name operating systems, while the Bill's duties refer to appropriate and proportionate measures. The Government has said mandatory security requirements will follow in regulations, with the CAF as the recommended assessment method, so CAF outcomes are the right target. So there's no such thing as a "CAF-compliant Linux build". You need to show that your Linux estate supports the relevant outcomes.
This page maps common Linux practices to CAF 4.0. The practices are our examples, not requirements, so adapt them to your systems and risk.
How does Linux practice map to CAF outcomes?
Most Linux work lands in Objective B (protection) and Objective C (detection). Here's how common practices map to CAF 4.0 outcomes.
| CAF outcome | What it asks | Linux examples |
|---|---|---|
| A3.a Asset management | Know your assets | An inventory of hosts, distributions, kernel versions and packages, including containers and appliances |
| A4.b Secure software | Secure, supported software | Signed packages from trusted repositories, an inventory of third-party components, support agreements where needed |
| B2.a Identity and authentication | Verify and authorise access | Central identity, SSH keys or certificates rather than passwords, multi-factor authentication for remote access |
| B2.c Privileged users | Manage privileged access | Named accounts with sudo, no direct root SSH, logged administrative sessions |
| B4.b Secure configuration | Consistent, minimal, documented builds | A hardened baseline, disabled unused services, configuration as code, drift checks |
| B4.c Secure management | Administer from trusted devices | Bastion hosts or privileged access workstations, restricted management networks |
| B4.d Vulnerability management | Track and fix known vulnerabilities | Tracked security advisories, a plan for end-of-life distributions, scanning plus independent testing |
| B5.c Backups | Resilient, tested backups | Offline or immutable copies, tested restores, rebuildable hosts |
| C1.a Logging sources | Right data for monitoring | auditd and system logs for authentication, privilege and key file changes |
| C1.b Securing logs | Protect log data | Forward logs off the host, restrict access, retain them for an agreed period |
| C2.a Threat hunting | Documented hunts | Hunts for unusual cron jobs, new SSH keys, persistence through systemd, unexpected outbound connections |
How do you build a baseline you can defend?
Start from a published benchmark, record every exception with a reason, keep builds minimal and check for drift automatically.
B4.b's "achieved" column asks that all platforms conform to your secure defined baseline, or to a latest known good configuration, and that you regularly check they still do.
Pick a published benchmark as a starting point. CIS Benchmarks cover major distributions, including Ubuntu. They're widely used and give you a documented reference. For Ubuntu, Canonical's Ubuntu Security Guide automates hardening and auditing against them, though it requires Ubuntu Pro. Distribution vendors and open-source tools offer similar options.
Record your exceptions. A benchmark isn't a CAF requirement. If you turn off a setting, write down why and what compensates. That reasoning is often more persuasive than a high benchmark score.
Keep it minimal. Remove unused packages and services, because each one adds patching work and attack surface. Use mandatory access control such as SELinux or AppArmor where your distribution supports it.
Deal with shared accounts. The CAF expects generic, default and built-in accounts to be removed or disabled, or their credentials changed where that isn't possible, and service accounts to be protected. On Linux, check service accounts, application accounts with shells, and default appliance credentials.
Automate drift checks. Configuration management tools and file integrity monitoring help you prove systems still match the baseline. The CAF asks for regular review and validation, not a one-time build.
Which checks give quick evidence?
A few commands show an assessor where a host stands. These are common examples, not a complete audit, and output varies by distribution.
| What you're checking | Example check | What good looks like |
|---|---|---|
| Root SSH login | sshd -T | grep -i permitrootlogin |
no, or prohibit-password with a documented reason |
| Password SSH login | sshd -T | grep -i passwordauthentication |
no, with keys or certificates instead |
| Broad sudo rights | sudo -l -U <user> and review of /etc/sudoers.d/ |
Named commands for named roles, no blanket NOPASSWD: ALL |
| Audit rules loaded | auditctl -l |
Rules for authentication, privilege use and changes to key files |
| Pending security updates | apt list --upgradable or dnf updateinfo list security |
Nothing high or critical older than your patching target |
| Listening services | ss -tulpn |
Only services in the baseline |
| Mandatory access control | getenforce or aa-status |
Enforcing, or a recorded exception |
Run these through configuration management rather than by hand, and keep the output with a date. A dated report across the estate is evidence; a screenshot from one server isn't.
What does "supported" mean for distributions?
Supported means the vendor still issues security updates for that release, under standard or paid extended support. Unsupported systems are a common "not achieved" indicator under B4.d, and Cyber Essentials v3.3 requires software to be licensed and supported and high or critical updates to be applied within 14 days. Some well-known end dates:
| Release | Standard support ended | Note |
|---|---|---|
| CentOS Linux 7 | 30 June 2024 | No further updates. Migrate or isolate |
| Red Hat Enterprise Linux 7 | 30 June 2024 (maintenance) | Paid Extended Life Cycle Support available |
| Ubuntu 20.04 LTS | May 2025 | Expanded Security Maintenance through Ubuntu Pro |
Check your vendor's lifecycle page for every release you run, and record the date in your asset inventory. If a system can't be upgraded, document the compensating controls: network isolation, restricted access and extra monitoring.
What are the common gaps on Linux estates?
They're usually old systems, hidden appliances, containers, local-only logs and over-broad privileges.
- End-of-life distributions. Under B4.d, not mitigating unsupported systems, or not pursuing their replacement, points to "not achieved". Know every system's end-of-support date.
- Appliances and embedded Linux. Firewalls, storage devices and OT equipment often run Linux that your normal tools can't see or patch. Cover these in supplier conversations.
- Containers. Base images need the same attention to provenance and vulnerabilities as hosts. Check images in use, not only the build pipeline.
- Logs stored only locally. An attacker with root can alter them. Forwarding them elsewhere helps protect them.
- Too much
sudo. Broad rules such asALL=(ALL) NOPASSWD: ALLundermine privileged access control. Review them as part of your access reviews.
What evidence should you prepare?
For each mapped outcome, keep something dated that you can show:
- the baseline and its exceptions
- drift reports over time
- patch and advisory records, including exposure of externally facing hosts
- privileged access reviews
- a sample of logs in your central platform, and alerts generated from them
- third-party test results
Then bring it into your wider CAF self-assessment, which includes a worked example of scoring one outcome. Linux will only be part of the score for any outcome that also covers Windows, network and cloud systems.
Does this differ for NIS2?
Not much. NIS2, the EU's rules, also avoids naming operating systems. Good Linux hygiene helps with both regimes, but the legal tests differ. See does NIS2 apply to UK companies? If Linux servers support a service you provide to regulated customers, see the MSP compliance checklist.
Sources
Frequently asked questions
No. CAF 4.0 is written as outcomes and doesn't name operating systems, so the same outcomes apply to Linux, Windows, network devices and cloud services. You show that your Linux estate supports outcomes such as secure configuration, privileged access control, vulnerability management and logging, with evidence.
No. The CAF doesn't require any specific benchmark. A CIS Benchmark or a vendor hardening guide is a useful starting point for the documented secure baseline that outcome B4.b expects. Record every setting you change or disable, with the reason and any compensating control.
Not mitigating unsupported systems, or not pursuing their replacement, points to 'not achieved' under CAF outcome B4.d. Cyber Essentials v3.3 also requires software to be supported. Track each release's end-of-support date, use paid extended support where available, and isolate anything you can't upgrade yet.
No. HL Bill 62 would require appropriate and proportionate security measures and doesn't mention operating systems. The Government has said mandatory requirements will follow in regulations, assessed against the CAF. Those are expected to stay outcome-based, so Linux-specific rules are unlikely.
Authentication events, privilege use such as sudo, changes to key files and configuration, new services or scheduled tasks, and outbound connections. Collect them with auditd and system logging, forward them off the host so root can't alter them, and show alerts generated from them. That supports outcomes C1.a, C1.b and C2.