Least Functionality
Cheat sheet · https://pcornel.dk/topic.php?topic=4845
Answer
Least Functionality limits systems, services, protocols, ports, features and identities to capabilities required for their approved purpose, reducing attack surface and privilege while retaining explicit operational and recovery needs.
Remember
- Least functionality ≠ least privilege, though they reinforce each other.
- Feature available ≠ feature required or safely exposed.
- Desired baseline ≠ deployed, effective and persistent runtime state.
- Compliant score ≠ secure workload, correct recovery or acceptable residual risk.
First checks
- Feature inventory — enabled features
Get-WindowsOptionalFeature -Online | ? State -eq Enabled— Windows featureslsmod— loaded kernel modules
Verify in this order
system → only required functions
Where it usually breaks
First mismatch in asset inventory → applicable baseline/finding → risk/exception decision → remediation → verification → compliance/reporting; preserve identity/policy/pre-state before mutation.
Hardening → Least Functionality proof map
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact platform/version, role, threat model, required functions and approved profile | Generic benchmark selection does not prove suitability |
| Effective state | Desired source, deployment, precedence and loaded/runtime value | File, policy or compliance result alone does not prove enforcement |
| Behavior | Correlated allowed/denied test, events and protected workload result | One blocked action does not prove the intended control caused it |
| Assurance | Persistence, drift monitoring, exception state, recovery and regression | One-time hardening does not prove maintained secure state |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4845