System and Endpoint Hardening Questions
Making operating systems, hosts, and endpoints resistant to compromise. Covers secure baseline configuration (CIS Benchmarks, Microsoft security baselines) and drift against the baseline, including detecting drift and deciding what to report versus auto-correct, OS and application hardening for Linux and Windows (SSH, host firewalls, service minimization, SELinux and AppArmor, file permissions, least privilege, application allow-listing, local administrator accounts), patch management and rollout (asset inventory, prioritisation, patch cadence, deployment rings and canaries, maintenance windows, emergency and out-of-cycle patching, post-patch verification, rollback, patch compliance metrics, immutable images, Windows and Linux update tooling such as Windows Update for Business, Intune, WSUS, Configuration Manager and Azure Update Manager), scripted audits and enforcement of host settings (Ansible, PowerShell, shell), and the host-side conditions that protect an endpoint (device posture checks, disk encryption, protection agent status). The host-level preventive layer. Detecting and investigating attacks, vulnerability scanning and scoring, network device and perimeter security, identity and key management, Active Directory attack hardening, operating WSUS or ConfigMgr as server roles, and container platform security are covered elsewhere.
You are building deployment rings for patches across 5,000 servers. How do you define the rings, choose canary hosts, set soak times, and decide whether a patch is promoted or halted?
Sample Answer
Direct answer
A ring is a group of servers that receives a patch at the same time, ordered so that each ring is bigger and more important than the one before, with a waiting period (soak) between rings to let problems show up. The blast radius of a bad patch (how many servers it can hurt at once) is therefore limited to the ring it is in. For 5,000 servers I would use four rings: a canary ring of 25 hosts (0.5 percent), a first ring of 250 (5 percent), a second ring of 1,250 (25 percent) and a final ring of 3,475 (the rest). I pick canaries to be representative rather than convenient, set soak times that cover the workloads' real cycles, and promote only when written health criteria pass. A patch is halted automatically when a halt criterion trips, and the halt is owned by a named person who can also decide to resume.
The rings
| Ring | Hosts | Share of 5,000 | Cumulative | What goes in it |
|---|---|---|---|---|
| 0 Canary | 25 | 0.5% | 25 (0.5%) | Hosts chosen as described below; mostly non-production plus a few low-risk production |
| 1 Early | 250 | 5% | 275 (5.5%) | Non-critical production, staging, one member of each redundant pair (two servers doing the same job, so one can be patched while the other keeps serving) |
| 2 Broad | 1,250 | 25% | 1,525 (30.5%) | Most production, spread across data centres, availability zones (separate physical locations inside one cloud region) and clusters |
| 3 Final | 3,475 | 69.5% | 5,000 (100%) | The rest, including databases, domain controllers and anything with a strict change window |
The sizes sum to 5,000 (25 + 250 + 1,250 + 3,475) and were computed rather than estimated. Microsoft's Windows Update client policies (page "Configure Windows Update client policies" on learn.microsoft.com, formerly called Windows Update for Business) support the same idea for Windows clients: group devices with similar deferral periods into deployment or validation groups, defer quality updates by a number of days after release so a small pool is updated first, and pause quality updates for up to 35 days from a start date if a problem appears. Windows Server only gets the quality update policies from that service. For servers managed by other tooling, the same ring structure can be built from groups in your patch tool or from per-ring package repository snapshots.
Choosing canary hosts
A canary only helps if a bad patch would hurt it the way it would hurt production. Pick canaries by coverage, not by convenience:
- At least one host per operating system and major version, per hardware or hypervisor type, per major application role, and per network segment or region that has unique configuration (a different storage driver or agent version is a reason to add a canary).
- Include hosts that run the heaviest-used software on the box (a Java stack, a database, a web tier), so a library change shows up.
- Mostly non-production, plus a few real production hosts with low blast radius, because staging often lacks production's traffic and data.
- Never both members of a redundant pair, and never the only host of a role.
- Owners must have agreed in advance and have monitoring on.
Why 25 is not the whole answer. The chance a canary ring catches a defect depends on how many hosts the defect affects. If a patch breaks 1 percent of hosts (a specific hardware or driver combination), the chance that a random 25-host ring contains at least one broken host is 1 - 0.99^25 = 22.2 percent. The reasoning: "at least one broken" is the opposite of "none broken", so its probability is 1 minus the probability that none are. Each host is fine with probability 0.99, and with independent hosts all 25 are fine with probability 0.99^25 = 0.778 (0.7778 before rounding), so at least one is broken with probability 1 - 0.778 = 0.222. A random 250-host ring catches it with probability 1 - 0.99^250 = 91.9 percent. The same calculation for a 2 percent and a 5 percent defect, printed by this script (it assumes hosts are picked at random and independently):
for p in (0.01, 0.02, 0.05):
for k in (25, 250):
print(f"defect on {p:.0%} of hosts, ring of {k}: P(at least one broken host) = {1 - (1 - p) ** k:.1%}")
Reading the script: the outer loop takes each defect rate p (1, 2 and 5 percent of hosts broken); the inner loop takes each ring size k (25 and 250); (1 - p) ** k is the chance that all k hosts are fine; 1 - (1 - p) ** k is the chance that at least one is broken; the f"..." string formats p as a whole percent (:.0%) and the result to one decimal place (:.1%). Six combinations give six lines:
defect on 1% of hosts, ring of 25: P(at least one broken host) = 22.2%
defect on 1% of hosts, ring of 250: P(at least one broken host) = 91.9%
defect on 2% of hosts, ring of 25: P(at least one broken host) = 39.7%
defect on 2% of hosts, ring of 250: P(at least one broken host) = 99.4%
defect on 5% of hosts, ring of 25: P(at least one broken host) = 72.3%
defect on 5% of hosts, ring of 250: P(at least one broken host) = 100.0%
That is the reason ring 1 exists and the reason canaries must be chosen to cover the rare configurations on purpose instead of hoping random selection finds them.
Soak times
Soak must be at least as long as the shortest cycle that would reveal the problem. These are example values that I would set and justify per estate:
| Ring | Example soak before promotion | Reason |
|---|---|---|
| 0 | 24 hours | Covers a full daily cycle: a nightly scheduled job and morning peak |
| 1 | 48 hours | Covers a weekday spread, includes backups and scheduled jobs |
| 2 | 48 hours | Large enough population that rare errors surface |
| 3 | n/a (final) | Verification scan and watch period after completion |
Add time for monthly or quarterly workloads: if a billing or month-end job is the thing a patch could break, either include that system in an earlier ring and let one real run complete, or hold ring 3 for it deliberately. Patches that need a reboot are not "soaked" until the reboot has happened. Under these example values the happy-path campaign takes 24 + 48 + 48 = 120 hours of soak, which is 5 days, plus deployment time inside each ring; that is deliberately slower than an emergency track, and an emergency compresses soak (see the note at the end).
Promote or halt
Decide the criteria before the ring starts, write them down, and make them measurable. Example criteria (thresholds are a team choice and should come from your own baselines):
| Check | Promote when | Halt when |
|---|---|---|
| Install success | Almost all installs succeed and failures are explained | Failure rate in the ring exceeds a threshold you set in advance (example: 2 percent), or any failure pattern shared by one hardware or software type |
| Service health | Error rate and latency stay inside the baseline for the soak period | A sustained rise over baseline on any patched host, or a patched-host-only incident |
| Reboot and boot | Every host that rebooted came back | Any host that does not return, or boot time changes materially |
| Support signals | No tickets linked to the patch | Two or more independent reports with the same symptom |
| Security | Post-patch scan shows the target vulnerability gone | Scan still shows it (the patch did not apply) |
Halting means the orchestration stops sending the patch to later rings, and the decision is reversible. Pre-agree who may halt (the on-call engineer, without waiting for approval) and who may resume (the change owner). Prepare the rollback before the ring: a snapshot or image for virtual machines, the previous package version available in the repository, or a documented uninstall; and note which patches cannot be rolled back, because those need a longer soak and a rehearsal. After a halt, find the cause, exclude the affected configuration from the ring until fixed, and resume with the same criteria.
Worked example
A monthly operating-system patch. Day 0 evening: ring 0 (25 hosts) is patched, health stays inside baseline through the next 24 hours. Day 1 evening: ring 1 (250 hosts) is patched; on day 2, 7 of the 250 hosts show high disk latency, all of them using one storage driver version. The campaign halts. The halt fires under the service-health row of the criteria table (a sustained rise over baseline on patched hosts, all with the same storage driver), not under the install-failure row, because nothing failed to install. Seven hosts out of 250 is 2.8 percent, which is context for how large the affected group is, not the trigger: the 2 percent example threshold applies to install failures, and the service-health row halts on any patched host. Ring 2 and ring 3 never receive the patch: 1,250 + 3,475 = 4,725 hosts were protected from a problem that the 25 canaries alone did not reveal, since none of them used that driver (a case where coverage-based selection should be revised to add a host with that driver). Fix: update the driver, add a canary with that driver, re-run ring 1's affected hosts, then resume.
Failure modes and pitfalls
- Rings by convenience: all the canaries are the same VM template, so they cannot catch driver-specific or application-specific failures.
- Redundant pairs in one ring: both nodes down at once. Rule: at most one member of any redundant pair per ring.
- No halt authority: the person who sees the problem has to ask permission and the patch keeps rolling.
- Promotion by calendar instead of evidence: the soak ended, so everything proceeds, even though nobody looked.
- Skipping the ring structure for "urgent" patches. A genuine emergency compresses soak and shrinks ring 0 to a few hosts, but still keeps a canary and still keeps the halt.
You are handed a freshly provisioned Linux server that will host a production web service. How do you bring it to a secure baseline before it takes traffic, and how do you make that work repeatable rather than a one-off?
Sample Answer
Direct answer
I treat the first hour of a server's life as the cheapest time to harden it: it carries no traffic, no one depends on it, and a mistake costs a rebuild rather than an outage. In order, I patch it, remove or disable everything the service does not need (accounts, packages, listening ports), lock down remote access (key-only SSH, scoped sudo, default-deny firewall), set safe kernel and file permission defaults, turn on logging that leaves the host, and then prove the result with commands and a scanner. To make it repeatable I never do any of that by hand on the real server: the steps live in an image build and in configuration management (a tool such as Ansible that describes the desired state and applies it idempotently, meaning a second run changes nothing), and a scheduled run reports drift (a host that no longer matches the desired state).
The point of every step is to shrink the attack surface: the set of things an attacker can reach or abuse. An assessor looking at the host should see few open ports, few accounts that can log in, and no weak defaults left to find.
The eight steps, why each matters, and how I check it
| # | Step | Why it matters | How I check it |
|---|---|---|---|
| 1 | Apply pending security updates, then reboot if a kernel or libc (the C standard library nearly every program uses) changed | A fresh image is usually weeks old; known flaws are the easiest way in | On Ubuntu, apt list --upgradable should list nothing security-related afterwards |
| 2 | Accounts and sudo: remove unused accounts, give every person their own login, grant sudo to named commands rather than blanket root | Shared or unused accounts destroy accountability and widen the attack surface; narrow sudo limits what a stolen account can do | sudo -l -U <user> shows exactly what each person may run |
| 3 | SSH: keys only, no root login, no password or keyboard-interactive login | Password guessing against an internet-facing port is constant background noise | sshd -T prints the effective settings the daemon will use |
| 4 | Network exposure: stop services that are not part of the web service, then default-deny inbound with the firewall allowing only 443 and an admin source range | A port nobody listens on cannot be attacked | ss -tln before and after: only expected sockets remain |
| 5 | Kernel network parameters via a sysctl drop-in (sysctl reads and sets kernel settings; a drop-in is a small file in /etc/sysctl.d/ that is loaded at boot) | Stops the host honouring redirects (messages telling it to send traffic through a different router, which an attacker on the network can forge to divert traffic) and source-routed packets (packets that dictate their own path, which can steer around filtering), and logs impossible source addresses (a packet arriving from outside that claims a source such as 127.0.0.1 is almost certainly spoofed; the kernel calls these martians and the setting is log_martians) | Read each value back with sysctl -n <name> |
| 6 | File permissions: least-privilege owners and modes on the app tree, no world-writable files, review of setuid files (programs that run with their owner's rights) | A writable file in the wrong place turns a small bug into code execution | find listings (below) return nothing unexpected |
| 7 | Logging and audit: ship auth and system logs to a central collector, add audit rules for changes to /etc/ssh, /etc/sudoers.d and the account files | Logs kept only on the compromised host can be erased by the attacker | Generate a test event with logger and find it on the collector; make a test edit and find the audit record |
| 8 | File integrity: record a baseline of hashes for system binaries and /etc with a tool such as AIDE, check on a schedule | Detects a changed binary or config that no patch or ticket explains | A scheduled run that alerts on changes outside patch windows |
Repeatable: the same decisions as code
sshd reads the files in /etc/ssh/sshd_config.d/ in alphabetical order and, for each setting, the first value it finds wins. That is why the file is named 00-hardening.conf: it sorts before vendor or cloud-image drop-ins such as 50-cloud-init.conf, so its values cannot be overridden by them. The play's become: false means it does not escalate to root with sudo, because in the test container it already runs as root; on real hosts the play would use become: true.
This playbook was executed with ansible-core 2.16.3 inside an ubuntu:24.04 container (root, ansible-playbook baseline.yml). It writes the SSH drop-in, a validated sudoers rule and the sysctl drop-in, then fails the run if the effective SSH configuration is not what was intended.
- hosts: localhost
connection: local
become: false
tasks:
- name: sshd hardening drop-in (read first because of the 00 prefix)
ansible.builtin.copy:
dest: /etc/ssh/sshd_config.d/00-hardening.conf
mode: "0644"
content: |
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin no
- name: sudoers rule for the deploy user, syntax-checked before install
ansible.builtin.copy:
dest: /etc/sudoers.d/deploy-webapp
mode: "0440"
validate: /usr/sbin/visudo -cf %s
content: |
deploy ALL=(root) NOPASSWD: /usr/bin/systemctl restart webapp
- name: kernel network hardening drop-in
ansible.builtin.copy:
dest: /etc/sysctl.d/90-hardening.conf
mode: "0644"
content: |
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.log_martians = 1
- name: refuse to continue if the effective sshd config is not what we intend
ansible.builtin.command: /usr/sbin/sshd -T
register: eff
changed_when: false
failed_when: "'passwordauthentication no' not in eff.stdout"
Run output (first run, then second run on the same host):
TASK [sshd hardening drop-in (read first because of the 00 prefix)] ************
changed: [localhost]
TASK [sudoers rule for the deploy user, syntax-checked before install] *********
changed: [localhost]
TASK [kernel network hardening drop-in] ****************************************
changed: [localhost]
TASK [refuse to continue if the effective sshd config is not what we intend] ***
ok: [localhost]
localhost : ok=5 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
--- second run
localhost : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
The check task runs sshd -T, which refuses to start with "Missing privilege separation directory: /run/sshd" on a host where the SSH service has never run; on a real server ssh.service creates that directory, and in the bare test container it was created first with mkdir -p /run/sshd. The recap line says ok=5 although the play lists four tasks: Ansible runs an automatic Gathering Facts step first (it collects details about the host), and that counts as the fifth. In the first run three tasks changed something and the fourth only read the result, which is why it shows ok and changed=3. changed=0 on the second run is the idempotence proof. The sysctl file only takes effect once the settings are loaded (sysctl --system reads every system directory, -p reads one file), which I did not run because a container does not let you change host kernel settings. The kernel's own documentation (ip-sysctl) gives tcp_syncookies a default of 1 and rp_filter a default of 0; on the test kernel the defaults read back as rp_filter = 0, tcp_syncookies = 1, accept_redirects = 0, send_redirects = 1 and accept_source_route = 0, which is why the drop-in sets send_redirects explicitly rather than trusting the default.
Reverse-path filtering (rp_filter, which drops packets whose source address would not be routed back out the same interface) is deliberately not in the drop-in. Strict mode is correct for a single-homed web server but breaks hosts with asymmetric routing, and the kernel uses the larger of the all and per-interface values (the kernel documentation: "The max value from conf/{all,interface}/rp_filter is used"; the values are 0 off, 1 strict, 2 loose), so setting all to strict cannot be undone for one interface, and I decide it per host class. Asymmetric routing means replies leave by a different network interface than the one the request arrived on. Illustrative case: a server has a public interface and a management interface, and a request from a monitoring system arrives on the management interface while the server's default route sends replies via the public one. Strict mode checks "would I send a reply to this source out of the interface it came in on?", answers no, and silently drops the request.
File permissions on the application tree, as run in the same kind of container (users webapp and deploy created first):
$ chmod 750 /srv/app; chmod 2770 /srv/app/shared
$ setfacl -m u:deploy:rx /srv/app
$ getfacl -p /srv/app
# file: /srv/app
# owner: webapp
# group: webapp
user::rwx
user:deploy:r-x
group::r-x
mask::r-x
other::---
$ stat -c '%A %U:%G %n' /srv/app /srv/app/shared
drwxr-x--- webapp:webapp /srv/app
drwxrws--- webapp:webapp /srv/app/shared
$ touch /srv/app/oops; chmod 666 /srv/app/oops
$ find /srv -xdev -type f -perm -0002 -print
/srv/app/oops
The s in drwxrws--- is the setgid bit on a directory, so files created inside inherit the directory's group. The ACL (access control list, a per-user permission beyond owner, group and other) lets deploy read the tree without joining the webapp group, and other has no access at all. The find line is the audit: any file under the application tree that anyone can write is a finding. find /usr/bin -xdev -type f -perm -4000 lists setuid files; on the test image it printed chfn, chsh, gpasswd, mount and newgrp among others, and the review question is whether each is expected for this server's role.
Steps 4, 7 and 8 as commands
These three steps are not part of the playbook above; each was run in an ubuntu:24.04 container. The firewall needs --cap-add NET_ADMIN to run there.
Step 4, default-deny inbound with ufw (Ubuntu's firewall front end), allowing SSH only from an illustrative admin range (203.0.113.0/24 is a documentation address block) and 443 from anywhere:
ufw default deny incoming
ufw default allow outgoing
ufw allow from 203.0.113.0/24 to any port 22 proto tcp
ufw allow 443/tcp
ufw enable
ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN 203.0.113.0/24
443/tcp ALLOW IN Anywhere
443/tcp (v6) ALLOW IN Anywhere (v6)
Run over an SSH session, ufw enable first asks "Command may disrupt existing ssh connections. Proceed with operation (y|n)?"; the rule for port 22 above is added before enabling so that your own session survives the prompt. Read the table as: anything inbound that has no row is dropped; port 22 answers only the admin range; 443 answers everyone, on IPv4 and IPv6.
Step 7, audit rules. Create /etc/audit/rules.d/50-hardening.rules (the augenrules tool merges every file in that directory into /etc/audit/audit.rules, which auditd, the Linux audit daemon, loads):
-a always,exit -F arch=b64 -F dir=/etc/ssh -F perm=wa -F key=ssh_config
-a always,exit -F arch=b64 -F dir=/etc/sudoers.d -F perm=wa -F key=sudoers
-a always,exit -F arch=b64 -F path=/etc/passwd -F perm=wa -F key=accounts
-a always,exit -F arch=b64 -F path=/etc/shadow -F perm=wa -F key=accounts
Each line says: always log, on exit from a system call, when a file in this directory (dir=) or this exact file (path=) is written to or has its attributes changed (perm=wa: w is write, a is attribute change; r and x exist too), and tag the record with a key so ausearch -k ssh_config finds it later. Running augenrules in the container merged the file into /etc/audit/audit.rules; loading rules into a kernel was not possible there, so the test edit that produces an audit record needs a real host. Shipping logs off the host (the other half of step 7) is done with your log forwarder, such as rsyslog or a vendor agent; logger "test" then proves the path.
Step 8, file integrity with AIDE (Advanced Intrusion Detection Environment). Illustrative minimal setup, using a throwaway configuration file that watches one directory and records permissions, owner, group, size and SHA-256 hash:
# /tmp/aide.conf
database_in=file:/tmp/aide.db
database_out=file:/tmp/aide.db.new
database_new=file:/tmp/aide.db.new
report_url=stdout
Rules = p+u+g+s+sha256
/srv/demo Rules
aide -c /tmp/aide.conf --init builds the baseline database as aide.db.new; copy it to aide.db (the file named by database_in) to make it the baseline, then aide -c /tmp/aide.conf --check compares the disk with it and a clean run exits 0. After echo "more text" >> /srv/demo/app.conf (the file held hello plus a newline, 6 bytes), the check printed the following, abridged: the real report also has dashed section headings, shows the new SHA-256 value beside the old one, and ends with a block of database checksums.
AIDE found differences between database and filesystem!!
Summary:
Total number of entries: 2
Added entries: 0
Removed entries: 0
Changed entries: 1
Changed entries:
f > ... H : /srv/demo/app.conf
Detailed information about changes:
File: /srv/demo/app.conf
Size : 6 | 16
The summary counts entries added, removed and changed; the detail block shows the stored value on the left of | and the current value on the right (the file grew from 6 to 16 bytes, and its SHA-256 differs as well). The exit status is a sum: 1 if files were added, 2 if removed, 4 if changed, so this run exited 4 and a clean run exits 0, which makes it easy to alert on from a schedule.
Worked example: attack surface before and after
Before step 4 a default image running only SSH listens on one port. On the test container, with sshd started on port 2222, ss -tln printed:
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 128 0.0.0.0:2222 0.0.0.0:*
LISTEN 0 128 [::]:2222 [::]:*
On a real web host the target list is explicit: SSH (restricted by the firewall to the bastion or admin range) and 443. Anything else that appears in ss -tln after provisioning (a database listening on all interfaces, a metrics agent, a leftover test service) is either bound to localhost, firewalled, or removed. That before and after listing is also what I hand a security assessor.
Trade-offs and pitfalls
- Developer workflow. Developers lose "just sudo to root and fix it". The fix is to give them what they actually do as named sudo rules (restart the service, read its logs), to deploy through the pipeline instead of by hand, and to give them a read-only way to see logs. Pushing back on blanket root is easier when the three commands they need work on day one.
- Emergency access. Key-only SSH plus a firewall can lock out the people who must fix an incident. Keep an out-of-band path (cloud serial console or the server's management controller) and a documented break-glass credential that is sealed, audited and rotated after use. Test it before you need it.
- Hardening that breaks the app. Apply the baseline to a staging host built from the same image, run the application's smoke tests, and only then promote the image. A baseline that is only ever tested on production eventually causes an outage.
- One-off hand edits. A hardened server that someone then tweaks by hand drifts. Either rebuild instead of editing, or have configuration management revert and report the change.
- File integrity is noisy until it is told about patch windows: baseline after patching, and alert on changes outside them.
What does least privilege mean on a host, and how would you actually enforce it for users, files and directories on both Windows and Linux?
Sample Answer
Direct answer
Least privilege means every user, program and service gets only the permissions needed for its job, and only for as long as it needs them. On a host that means three layers: people (no everyday admin rights, separate admin identities, named sudo rules on Linux, managed local admin passwords on Windows), files and directories (owner and group set to the real service account, no access for "everyone", broken inheritance only where needed), and services (each running under its own low-privilege account). I enforce it with groups rather than individual grants, write the permissions as code, and then audit them with commands so I find drift rather than assume it.
Users: who can do what
| Layer | Linux | Windows |
|---|---|---|
| Daily account | Normal user, no root | Normal user, not a member of local Administrators |
| Elevation | sudo rules naming specific commands, per group | UAC (User Account Control) prompts for admin tasks, plus a separate admin account for administrators |
| Shared local admin credential | Do not have one; root login over SSH is disabled | Windows LAPS (Local Administrator Password Solution) gives every machine its own rotating local admin password, stored in Active Directory or Microsoft Entra ID (Microsoft's cloud identity directory, formerly called Azure AD) and readable only by authorised staff |
| Review | sudo -l -U <user> | Get-LocalGroupMember -Group 'Administrators' |
Windows LAPS is built into supported Windows versions, rotates the managed local administrator password regularly, and exists to stop one shared password enabling lateral movement from machine to machine (Microsoft Learn, Windows LAPS overview). Retrieval is a deliberate act: Get-LapsADPassword -Identity 'WEB01' returns the password as a SecureString unless you add -AsPlainText, which Microsoft says to use only in support or testing situations.
Linux sudo, tested. A sudoers file with a syntax error can lock out all admins, so it is validated before install. Executed in an ubuntu:24.04 container:
$ cat good.sudoers
deploy ALL=(root) NOPASSWD: /usr/bin/systemctl restart webapp
$ visudo -cf good.sudoers
good.sudoers: parsed OK
$ cat bad.sudoers
deploy ALL=(root) NOPASSWD /usr/bin/systemctl
$ visudo -cf bad.sudoers
bad.sudoers:1:46: syntax error
deploy ALL=(root) NOPASSWD /usr/bin/systemctl
^
$ install -m 0440 -o root -g root good.sudoers /etc/sudoers.d/deploy-webapp
$ sudo -l -U deploy
Matching Defaults entries for deploy on 75de9dd7b378:
env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin, use_pty
User deploy may run the following commands on 75de9dd7b378:
(root) NOPASSWD: /usr/bin/systemctl restart webapp
deploy can restart one service as root and nothing else. The NOPASSWD tag removes the password prompt for that one command, which is acceptable for automation but should not be a blanket on ALL. Be careful with wildcards in command paths and with commands that can launch a shell (editors, pagers): the sudoers manual warns that wildcards can grant more than intended, and the NOEXEC tag stops dynamically linked programs from spawning further commands.
If you do three things first, make them these: remove everyday admin rights, give every machine its own LAPS password, and run each service under its own account. The finer points are details for when you write the rules: NOEXEC is a sudoers tag that stops a permitted program from launching further programs, UAC is the Windows prompt that asks for confirmation before an admin action, and a SecureString is a .NET string type that is kept encrypted in memory and does not print as plain text.
Files and directories on Linux
Set the owner and group to the account that really needs access, remove the "other" bits, and add ACLs (access control lists, per-user or per-group permissions beyond the owner, group and other triplet) rather than widening the group. Executed in the same container:
$ chmod 750 /srv/app; chmod 2770 /srv/app/shared
$ setfacl -m u:deploy:rx /srv/app
$ getfacl -p /srv/app
# file: /srv/app
# owner: webapp
# group: webapp
user::rwx
user:deploy:r-x
group::r-x
mask::r-x
other::---
$ stat -c '%A %U:%G %n' /srv/app /srv/app/shared
drwxr-x--- webapp:webapp /srv/app
drwxrws--- webapp:webapp /srv/app/shared
$ touch /srv/app/oops; chmod 666 /srv/app/oops
$ find /srv -xdev -type f -perm -0002 -print
/srv/app/oops
Reading the digits: each digit is read 4 + write 2 + execute 1, for owner, group and other in that order. 750 is 7 (4+2+1, rwx) for the owner, 5 (4+1, r-x) for the group and 0 for everyone else, which is the drwxr-x--- in the stat line. 2770 has a fourth, leading digit for special bits, where 2 means setgid: setgid, then rwx for owner, rwx for group, nothing for others, shown as drwxrws--- with the s standing in for the group x.
mask::r-x is the ceiling for every named-user entry and for the group entry: an entry's effective permission is its own bits ANDed with the mask. Here deploy has r-x and the mask allows r-x, so deploy gets r-x. Had the mask been r--, deploy would have lost execute (the right to enter the directory) and getfacl would have printed #effective:r-- beside the entry. setfacl -m recalculates the mask for you unless told not to.
other::--- means a user who is neither webapp nor deploy cannot even list /srv/app. deploy can read and traverse but not write. The setgid bit (the s in drwxrws---) makes new files in shared inherit its group. The find command is the audit for the classic mistake, a world-writable file; run it on a schedule. The same applies to setuid programs, which run with their owner's rights: list them with find / -xdev -type f -perm -4000 and review the list against what the server's role needs.
Files and directories on Windows
NTFS (the Windows file system) permissions are held in an ACL on each folder, and by default folders inherit entries from their parent. Least privilege usually means breaking inheritance on a sensitive folder and granting the service account, administrators and SYSTEM only what each needs. This script was parse-checked with PowerShell 7 and every cmdlet, method and parameter was checked against Microsoft Learn; it was not executed, because it needs a Windows host (Set-Acl is Windows-only, and Get-LapsADPassword needs the LAPS module and an AD):
# 1. Who is in the local Administrators group on this host?
Get-LocalGroupMember -Group 'Administrators' | Select-Object Name, ObjectClass, PrincipalSource
# 2. Restrict D:\AppData to the service account, Administrators and SYSTEM
$path = 'D:\AppData'
$acl = Get-Acl -Path $path
$acl.SetAccessRuleProtection($true, $false) # stop inheriting, drop the inherited entries
$inherit = [System.Security.AccessControl.InheritanceFlags]'ContainerInherit,ObjectInherit'
$propagate = [System.Security.AccessControl.PropagationFlags]::None
foreach ($rule in @(
@('CORP\svc-webapp', 'Modify'),
@('BUILTIN\Administrators', 'FullControl'),
@('NT AUTHORITY\SYSTEM', 'FullControl'))) {
$ace = New-Object System.Security.AccessControl.FileSystemAccessRule(
$rule[0], $rule[1], $inherit, $propagate, 'Allow')
$acl.AddAccessRule($ace)
}
Set-Acl -Path $path -AclObject $acl -WhatIf # remove -WhatIf after reviewing
icacls $path
# 3. Break-glass: read one machine's local admin password from AD
Get-LapsADPassword -Identity 'WEB01' -AsPlainText
ContainerInherit,ObjectInherit makes each entry apply to the subfolders (containers) and the files (objects) inside D:\AppData, so the grant flows down the tree; PropagationFlags::None adds no extra limit on that flow. In icacls notation the same ideas are (CI) and (OI), and RX means read and execute.
SetAccessRuleProtection($true, $false) means "protect from inheritance, and do not preserve the inherited entries", so the folder ends with only the three explicit entries. The three grants are added to the same in-memory ACL before Set-Acl writes it, so administrators are never locked out part-way. The -WhatIf switch makes Set-Acl report what it would do without doing it, so while -WhatIf is present nothing is written and icacls $path still prints the old ACL. After you remove -WhatIf and run the script for real, icacls $path lists the resulting ACL for review, one entry per line in the form name:(inheritance flags)(rights), where (M) is Modify and (F) is Full control. You should see exactly the three entries above (service account (M), Administrators (F), SYSTEM (F)); an entry marked (I) or any other name means inheritance was not removed or an extra grant exists. This describes the documented format and was not run, since it needs a Windows host. icacls $path /save <file> stores a copy of the ACL that /restore can re-apply if the change goes wrong.
Share permissions and NTFS permissions are separate layers: when a folder is reached over a network share, the access a user gets is the more restrictive of the two, so a locked-down NTFS ACL is not undone by a generous share.
Services
Each service runs under its own account with only the rights it needs, and never as root or as a domain administrator. On Linux that is a dedicated user such as webapp that owns only /srv/app. On Windows it is a dedicated service account, like CORP\svc-webapp above, granted rights only on its own folders and not given interactive logon.
Worked example
A web server hosts an app owned by webapp, deployed by a pipeline user deploy, administered by two people. Result: webapp owns /srv/app with mode 750 (full access for the owner, read and traverse for the group, nothing for others); deploy gets read via an ACL and one sudo rule to restart the service; the two administrators have personal logins with sudo for a short named list; there is no shared password anywhere; and the find audit above returns nothing. On the Windows file server the same pattern gives one service account modify rights on D:\AppData, administrators and SYSTEM full control, and everyone else no entry at all.
Trade-offs and pitfalls
- Least privilege costs setup time and generates "access denied" tickets. Pay that cost once in staging, by running the application as its real service account there.
- Group-based grants decay: people change roles. Review membership of the privileged groups quarterly, with
Get-LocalGroupMemberandsudo -l -U. - Standing admin rights are the thing to remove first. Time-limited elevation (just-in-time access) is the stronger end state but needs tooling; do the cheap steps first.
- A broad sudo rule on
ALL, or a sudo rule that lets someone run an editor as root, is effectively root; read rules for what they can be made to do.
How does a mature patch management process work end to end, from knowing what you have to proving the work is done, and where do programmes usually break down?
Sample Answer
Direct answer
A patch management process is a closed loop with six stages: know what you have (an inventory of every host, OS and application, with an owner and a criticality), find what is missing (detect which patches and vulnerabilities apply to which host), prioritise by real risk, test and deploy in stages, verify independently that the patch landed, and report and improve. Programmes usually break at the first and the last stages: the inventory is incomplete, so hosts never get patched, and "done" is declared from the patching tool's own report instead of from an independent check.
The stages
- Inventory. A list of hosts is not enough. For each one you need the operating system and version, installed software, internet exposure, owner, business criticality and a maintenance window. Sources: the configuration management database (CMDB, a record of assets and their relationships), cloud APIs, the endpoint agents (small programs installed on a host that report what it runs and can act on it), and network discovery to find what nobody registered. Reconcile them; an asset that appears in discovery but not the CMDB is a finding.
- Assess. Match each host's software to published vulnerabilities and vendor patches, using the patching tool for OS and vendor patches and a vulnerability scanner (preferably authenticated, meaning it logs in to the host and reads installed versions) for coverage across everything else. Third-party applications and libraries are the usual blind spot, not the OS.
- Prioritise. Decide what goes first and what waits, using exploitation evidence, exposure and asset value rather than severity score alone. This stage needs a named owner and a written rule.
- Test and deploy in rings. A ring is a group of hosts that receives a patch at the same time. Start with a small pilot ring, then widen to larger rings, with soak time between them (a soak is a waiting period to let problems appear), and keep the ability to halt. Define maintenance windows and reboot handling, because a patch that needs a reboot is not applied until the reboot happens.
- Verify. Confirm four things per host: the package or update is installed (version check), the host rebooted if required, the service is healthy, and an independent scan no longer reports the vulnerability. A tool that says "installed successfully" can be wrong when the host was offline, the reboot is pending, or a second copy of the vulnerable library exists elsewhere on disk.
- Report and improve. Track coverage (percentage of the estate patched within its target window, by criticality), time to patch, exceptions and their age, and failed or missing hosts. Feed misses back into the inventory and the rings.
What "proving the work is done" looks like
For each patch campaign keep one record per host: patch identifier, install timestamp, reboot timestamp, post-patch scan result. A report that says "98 percent compliant" is only meaningful if the denominator is the whole inventory, including hosts that were offline or never reported. If 1,000 hosts are in the inventory and the tool reports on 920 of them, with 900 of those patched, the tool shows 97.8 percent (900 of 920) while the estate is 90.0 percent patched (900 of 1,000), and the 80 silent hosts are the actual risk.
Where programmes break down
| Breakdown | What it looks like | Fix |
|---|---|---|
| Incomplete inventory | Shadow servers, forgotten test VMs, cloud instances nobody owns | Discovery scans reconciled against the CMDB; unowned assets are quarantined or deleted |
| Reboots never happen | Patch "installed", host still running the old kernel or library | Track pending-reboot state as a patch status of its own; enforce reboot windows |
| Third-party software | OS is current, browser, Java, agents and libraries are not | Include applications in scanning; assign each an owner |
| No testing path | Patches either go out untested or never go out | Rings with a pilot that includes the critical applications |
| Fear of breaking things | Exceptions grow, patches wait for "next quarter" | Rollback plans, snapshots or images, and a small exception queue with expiry dates |
| Ownership gaps | Security finds, infrastructure patches, nobody closes | One accountable owner per stage, and a monthly review of misses |
| Measuring effort, not outcome | "We deployed 500 patches" | Measure exposure: critical findings open past their target window |
| Appliances and embedded devices | Firewalls, hypervisors, printers outside the tooling | Put them in the inventory with a manual owner and schedule |
Worked example
Estate: 1,000 hosts, 600 Windows servers and 400 Linux servers. Monthly cycle: week 1, vendor patches released and scanned against inventory; week 1 end, prioritisation meeting; week 2, pilot ring (30 hosts, drawn from both OS families and including each critical application); week 3, two further rings (150 hosts, then the remaining 820, so 30 + 150 + 820 = 1,000); week 4, verification scan and report. If the verification scan finds 37 hosts still vulnerable, the reasons are classified (offline, pending reboot, failed install, application pinned to an old version) and each class has a different action: wake or retire the offline ones, force the reboot, retry the failed install with logs, and write exceptions with an owner and an end date for the pinned ones. The report shows 963 of 1,000 patched (96.3 percent) with 37 itemised.
Trade-offs
Speed and safety pull against each other; the rings are how you buy safety cheaply. Automatic updates everywhere is simple but can remove your ability to halt, so for servers I prefer staged automation: automated deployment, human-owned promotion decisions. Agent-based patching needs an agent (a small program installed on each host that reports its state and can install patches) on every host; it sees deep detail but misses hosts where the agent is absent or broken. Agentless scanning (a scanner that connects over the network or reads cloud APIs, installing nothing) sees more kinds of device, such as appliances, but is shallower, because it only sees what the remote login exposes. Most mature programmes use both.
Your organisation runs about 1,000 mixed Windows and Linux servers, on-prem and in cloud, with no consistent security baseline. Design the programme that gets them to one and keeps them there: what you enforce first, how you enforce it, how you prove it, and how you decide what to leave out.
Sample Answer
Direct answer
I would run this as a measured programme, not a one-off hardening project. Pick one published baseline per operating system (CIS Benchmarks, the Center for Internet Security's consensus configuration guides, at Level 1 as the starting profile), measure first without changing anything, enforce a short first tier of low-breakage, high-impact settings through the same tooling that builds and manages the servers, prove compliance with automated scans whose results feed a dashboard, and handle every deliberate omission through an exception record with an owner, a compensating control and an expiry date. The baseline is a living definition in version control, so "keeping them there" is a scheduled enforcement and scan loop, not a recurring audit.
For illustration assume 600 Linux and 400 Windows servers (1,000 in total) in a mix of on-premises and cloud. The split is an assumption; the structure does not depend on it.
What the baseline is, and why Level 1 first
CIS defines a Level 1 profile as a base recommendation that can be implemented fairly promptly without extensive performance impact, and Level 2 as defense in depth for environments where security is paramount, which can have an adverse effect if implemented without due care. CIS also advises testing either level in a test environment first. For Windows Server, Microsoft publishes security baselines as Group Policy Object (GPO) backups in its Security Compliance Toolkit, together with Policy Analyzer (compares sets of GPOs against each other or against local policy) and LGPO.exe (applies local policy to machines that are not domain-joined). So the plan is: CIS Level 1 server profile per Linux distribution, and either the Microsoft baseline or the CIS Windows Server benchmark per Windows version, choosing one per OS and not mixing, because overlapping baselines conflict.
Phase 0: discovery and assessment (measure before enforcing)
You cannot enforce what you have not inventoried. Build the server list from more than one source (the configuration management database, the hypervisor and cloud account inventories, the directory) and reconcile it, because the servers nobody remembers are the ones with no baseline. Record for each server: OS and version, owner, environment, internet exposure, whether it can be rebooted, and whether a vendor supports changes to it.
Then run the benchmark in assessment-only mode everywhere. For Linux, OpenSCAP (oscap, an open-source implementation of SCAP, the Security Content Automation Protocol) with the SCAP Security Guide content (the rule definitions) evaluates a profile and writes results without changing the host. A real run in a test AlmaLinux 9 container against the CIS server Level 1 profile:
dnf -y install openscap-scanner scap-security-guide
oscap xccdf eval \
--profile xccdf_org.ssgproject.content_profile_cis_server_l1 \
--results /tmp/results.xml --report /tmp/report.html \
/usr/share/xml/scap/ssg/content/ssg-almalinux9-ds.xml
echo "exit status: $?"
The run printed one block per rule: a Title, the Rule id and a Result. Three of them, copied from the run:
Title Ensure AlmaLinux GPG Key Installed
Rule xccdf_org.ssgproject.content_rule_ensure_almalinux_gpgkey_installed
Result pass
Title Implement Custom Crypto Policy Modules for CIS Benchmark
Rule xccdf_org.ssgproject.content_rule_configure_custom_crypto_policy_cis
Result fail
Title Install AIDE
Rule xccdf_org.ssgproject.content_rule_package_aide_installed
Result notapplicable
pass means the host matches the rule, fail means it does not and needs a fix or an exception, and notapplicable means the rule does not apply to this host (the scanner decides this from conditions in the content). The --profile value is the XCCDF (the XML format that SCAP uses for benchmarks) profile id, and here it selects the CIS server Level 1 rule set out of the content file. The tally was 70 pass, 5 fail, 220 notapplicable, 0 error, with exit status 2: according to the oscap manual, 0 means every rule passed, 1 means an error occurred during evaluation, and 2 means at least one rule failed or was unknown, so a pipeline can gate on the exit status. The honest compliance figure excludes the not-applicable rules from the denominator: 70 / (70 + 5) = 93.3% of the 75 applicable rules, not 70 of 295. Report both numbers, and say which one is the headline, or the dashboard will quietly flatter itself. (CIS-CAT Pro Assessor is CIS's own tool for assessing conformance, and is the alternative where a vendor-certified assessment is wanted.)
The assessment also tells you how bad it is by item: the fleet-wide failure count per rule is your prioritisation list.
What to enforce first (tier 1)
Rank candidate settings by three questions: does it close a path attackers actually use, how likely is it to break something, and can I verify it automatically? The first tier takes settings that score well on all three:
| Area | Linux | Windows | Why first |
|---|---|---|---|
| Remote administration | key-only SSH, no direct root login (sshd_config drop-in) | RDP (Remote Desktop Protocol, Windows' remote login) only from a jump host or gateway (a hardened server that administrators connect through) | most intrusions arrive over admin protocols |
| Local admin credentials | no shared local passwords | Windows LAPS (Windows Local Administrator Password Solution) rotates a unique local administrator password per machine and escrows it (stores a copy for authorised administrators to retrieve) in Active Directory or Microsoft Entra ID | one stolen local password otherwise opens every server |
| Patch posture | automatic security updates or a scheduled cadence with a reporting hook | WSUS (Windows Server Update Services, Microsoft's on-premises update server; Microsoft lists it as no longer actively developed in Windows Server 2025, with existing capabilities and content still available) or whichever update tooling the estate already runs, with a ring schedule | known-vulnerability exposure shrinks fastest here |
| Host firewall | default-deny inbound, named exceptions | host firewall enabled with inbound blocked by default | limits lateral movement (an attacker who has compromised one machine hopping to others) |
| Legacy and unused services | remove or disable what the server role does not need | disable obsolete protocols | smaller attack surface, rarely breaks anything |
| Logging and time | auditd (the Linux audit daemon) or journal forwarding, time sync | advanced audit policy, event forwarding | you need evidence for the "prove it" step and for incidents |
The Windows LAPS row of tier 1 has a concrete shape. Windows LAPS is configured through a Group Policy setting under Computer Configuration, Policies, Administrative Templates, System, LAPS. Illustrative policy for the fleet, using the setting names and defaults from Microsoft's Windows LAPS documentation: backup directory Active Directory, password age 30 days, password length 14, complexity 4 (upper case, lower case, numbers and special characters). An administrator with the right to decrypt can then read a server's current password:
Get-LapsADPassword -Identity SRV-APP-01 -AsPlainText
Output shaped like Microsoft's documentation example (host name illustrative, password omitted):
ComputerName : SRV-APP-01
Account : Administrator
Password : <the current 14-character password>
PasswordUpdateTime : 4/9/2023 9:39:38 AM
ExpirationTimestamp : 4/14/2023 9:39:38 AM
Source : EncryptedPassword
DecryptionStatus : Success
Read it as: the managed account is Administrator, the password was last rotated at PasswordUpdateTime and will be rotated again after ExpirationTimestamp, it is stored encrypted in Active Directory (Source), and the caller was allowed to decrypt it. A different password per server is the point: a stolen password for one machine opens nothing else.
Everything else in Level 1 follows in later tiers, and Level 2 items are opt-in per workload.
How to enforce: one definition, two delivery paths
The plan rests on three pieces: the published baseline as the definition, one enforcement tool per OS family (Group Policy for domain-joined Windows, Ansible for Linux), and one scanner per OS family (OpenSCAP for Linux, Policy Analyzer and CIS-CAT for Windows). Packer, LGPO.exe, Puppet, Chef and PowerShell DSC appear in the tables as the alternatives that fit particular situations (image builds, machines outside the domain, estates that already run an agent).
| Decision | Options | Recommendation |
|---|---|---|
| Image baking vs post-provision | Bake the baseline into the machine image (built with a tool such as Packer, which automates image creation, and scanned at build time) vs apply it after the server boots | Both, from the same definition. Bake for new cloud and template-built servers so they are born compliant; apply post-provision for the existing 1,000, since a new image does nothing for a server that already exists. A baked image goes stale until rebuilt, so the scheduled run still applies. |
| Agent vs agentless | Push over SSH or WinRM (Windows Remote Management) from a controller (Ansible) vs a resident agent that pulls policy (the Group Policy client, or configuration managers such as Puppet, Chef and PowerShell DSC, Desired State Configuration) | Use what already exists first. GPO for domain-joined Windows (the client is built in) and LGPO.exe for non-domain machines; Ansible, run on a schedule from a pipeline, for Linux. Agentless needs a network path and a credential vault and misses hosts that are offline during the run; an agent self-heals on its own interval and works behind NAT (network address translation, where a host sits behind a shared address and cannot be reached from outside, so it must call out to the controller instead), but adds a new always-running component to 1,000 servers. |
| Audit vs enforce | Report only vs change the setting | Audit mode in Phase 0 and for every new setting for one ring; enforce after the owner has seen the report. |
Roll out in rings, so a bad setting hurts few servers: ring 0 is 20 servers (2%), ring 1 is 100 (10%), ring 2 is 300 (30%), ring 3 is the remaining 580 (58%): 20 + 100 + 300 + 580 = 1,000. Each ring waits for a clean soak (no baseline-caused incidents) before the next starts. Pick ring 0 deliberately: non-production, then low-risk production, with owners who agreed in advance.
How to prove it, and keep proving it
- Scans on a schedule, results to one store: OpenSCAP or CIS-CAT results for Linux, Policy Analyzer comparisons and CIS-CAT for Windows. Keep the raw results file as evidence, because "dashboard says green" is not evidence.
- Metrics that cannot be gamed: percentage of servers passing tier 1 (applicable rules only), count of open exceptions and how many are expired, and median days from "new failing rule detected" to "fixed or excepted".
- Continuous assessment trade-offs: a daily scan catches drift quickly but costs CPU on the servers and generates volume; weekly scans are cheap and slower to notice. Stagger scan start times so 1,000 servers are not all scanning at once, run daily for tier 1 only and weekly for the full profile.
- Remediation automation: OpenSCAP can emit remediation content from a result (
oscap xccdf generate fix, with fix types including bash and ansible) and can apply it with--remediate. Treat generated fixes as a starting point to review and put in version control. Do not run--remediateacross production unreviewed. - Independent check: have someone outside the team sample 25 servers a quarter and compare the scan result with what is actually configured.
How to decide what to leave out
Leave a setting out (or defer it) only when one of these is true, and write it down:
| Reason | Example | Record |
|---|---|---|
| The server role needs the opposite | a legacy application needs a protocol the baseline disables | the specific hosts, the dependency, the plan to retire it |
| The control does not apply | a rule about a wireless interface on a server with none | marked not-applicable, no exception needed |
| A compensating control already covers the risk | a rule that duplicates a network-level restriction | name the control and how it is verified |
| Cost clearly exceeds benefit now | a Level 2 rule on a fleet where it needs a reboot per server | revisit date |
Each exception carries an owner, the exact hosts, the reason, the compensating control and an expiry date (I would default to six months) so it forces a decision again. An exception without an expiry is a permanent hole.
Patch windows and emergency changes
Align the monthly patch window with the rings, so a baseline change and a patch do not land on the same host in the same night, which makes failures impossible to attribute. For an actively exploited vulnerability, keep a pre-approved emergency path outside the monthly cycle; an out-of-band change that touches a hardened setting creates a time-limited exception (72 hours, for example) rather than a silent edit, and the scheduled enforcement run is paused for that host until it expires.
The first 90 days
| Days | Deliverable | Exit test |
|---|---|---|
| 1 to 30 | reconciled inventory, owners, baseline chosen per OS, assessment-only scans on every server, tier 1 list agreed | every server has an owner and a measured pass rate |
| 31 to 60 | golden images rebuilt with tier 1; enforcement live on rings 0 and 1 (120 servers); exception process running | zero baseline-caused outages in rings 0 and 1 |
| 61 to 90 | rings 2 and 3 (the other 880); scheduled scans and dashboard; drift alerts | proposed target: at least 95% of applicable tier 1 rules passing fleet-wide, every failure either ticketed or excepted |
The 95% figure is a target to agree, not a measurement.
Boundary
Container images and the cluster that schedules them are hardened separately. This programme covers the host operating systems that run them, since a container runtime inherits the host's weaknesses.
Pitfalls
- Enforcing everything in Level 1 on day one because "it is only Level 1".
- Counting not-applicable rules as passes, or excluding failing servers from the denominator.
- Two baselines applied to one host (a CIS GPO plus a Microsoft one) that silently overwrite each other.
- Exceptions with no expiry, which turn the baseline into a suggestion.
Unlock Full Question Bank
Get access to all 22 System and Endpoint Hardening interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.