Use this when systems fall out of compliance over time.
Compliance Drift
Compliance drift is when systems that once passed compliance checks fall out of compliance through changes or new requirements, tracked as a trend so it is fixed before an audit.
1. Compliance drift: systems fall out of baselines over time.
2. Continuous scanning.
3. Alert on regressions.
4. Remediate.
5. Evidence for audits.
baseline → scan → regression → remediate
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Checking compliance only during audits.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Compliance drifts with changes and new rules.
- Track trend, not only current state.
- Fix before audits.
oscap xccdf eval ...— compliance scan- Compliance score trend — drift over time
- Alerts on compliance regressions — detection
ReferenceWhy it matters1 section · depth on demand
What it is
Compliance drift is when devices move away from required security baselines (for example Telnet re-enabled).
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Compliance drift checks run the baseline rules regularly against all devices and report which rules each device fails, often feeding dashboards and tickets.
Example
- name: Telnet must be disabled
cisco.ios.ios_command:
commands: show running-config | include transport input
register: vty
- ansible.builtin.assert:
that: "'telnet' not in vty.stdout[0]"
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Drift Management > Compliance Drift. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.hashicorp.com/terraform/tutorials/state/resource-drift · confidence 94%