Pcornel
Security · Hardening

Least Functionality

Cheat sheet · https://pcornel.dk/topic.php?topic=4845

Back to the Topic

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 features
  • lsmod — 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

BoundaryEstablishDoes not establish
ScopeExact platform/version, role, threat model, required functions and approved profileGeneric benchmark selection does not prove suitability
Effective stateDesired source, deployment, precedence and loaded/runtime valueFile, policy or compliance result alone does not prove enforcement
BehaviorCorrelated allowed/denied test, events and protected workload resultOne blocked action does not prove the intended control caused it
AssurancePersistence, drift monitoring, exception state, recovery and regressionOne-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

Confirmation

Confirm action

Continue?