Pcornel
Security · Hardening

Secure Configuration

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

Back to the Topic

Answer

Secure Configuration expresses approved, supportable settings that reduce risk for a defined technology and role, with versioned rationale, automated deployment where appropriate, exception handling and evidence of effective runtime behavior.

Remember

  • Configuration file edited ≠ setting parsed, applied and effective.
  • Vendor default ≠ approved secure configuration for the organization.
  • Desired baseline ≠ deployed, effective and persistent runtime state.
  • Compliant score ≠ secure workload, correct recovery or acceptable residual risk.

First checks

  • Golden image/config management code — secure configuration source
  • ansible-playbook harden.yml --check --diff — drift check
  • Baseline document — settings

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

config as code → deployment → verification

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 → Secure Configuration 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=4842

Confirmation

Confirm action

Continue?