Drift is the gap between what your Infrastructure as Code declares and what actually runs. It comes from manual changes, pipeline misconfigurations, or forgotten overrides. Detecting drift early is a direct security need: mismatched states mean unmanaged attack surfaces, unpatched components, and broken compliance guarantees.
A strong IaC drift detection security review starts with continuous scanning. Pull the current state from your cloud account. Compare it against your source of truth in Git. Identify every resource that has changed without a corresponding commit. Flag policy violations immediately.
Automated drift detection tools should integrate with CI/CD and trigger alerts before deployment. They must track configuration changes, role bindings, network rules, and encryption settings. Ignore only what is explicitly excluded. Anything else is drift, and drift is potential risk.