Pcornel
Security · Hardening

Configuration Drift

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

Back to the Topic

Answer

Configuration Drift is an unauthorized, unintended or unreviewed divergence between approved desired state and deployed or effective state, including local changes, failed automation, update resets, emergency actions and newly inherited policy.

Remember

  • File diff ≠ effective configuration drift in all systems.
  • No detected drift ≠ desired baseline correct or monitoring complete.
  • Desired baseline ≠ deployed, effective and persistent runtime state.
  • Compliant score ≠ secure workload, correct recovery or acceptable residual risk.

First checks

  • ansible-playbook site.yml --check --diff — config drift
  • Intune/GPO compliance changes — drift
  • aide --check — file integrity drift

Commands

git diff -- <config-path>
Read-only/validation observation for line-level difference between managed configuration and the selected repository ba…

Verify in this order

baseline → changes over time → drift detected → corrected

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 → Configuration Drift 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=4850

Confirmation

Confirm action

Continue?