Your cloud is not what you deployed: configuration drift, explained

The account you reviewed at launch and the account running today are different systems. How configuration drift happens, what a decade-long exposure and two major cloud outages teach about it, and how to keep reality close to the plan.

Antivenom4 min read

Every cloud account has two versions. There's the one in your head, your diagrams and your infrastructure code. And there's the one actually running. On launch day they match. A week later, they start to drift apart.

That gap has a name, configuration drift, and it's where a surprising share of cloud incidents begin.

What drift is

AWS describes drift in its CloudFormation docs as unmanaged configuration changes: changes made to resources outside the tool that's supposed to manage them.

In practice it looks like this:

  • An engineer opens a port in the console to debug an incident at 2 a.m. The incident ends. The port stays open.
  • A support script attaches a broader policy to a role "for now".
  • A new service gets created by hand because the pipeline was broken that day, and never gets imported into code.
  • A setting in one Region gets fixed, and its twin in another Region doesn't.

None of these are attacks. All of them change what an attacker would find.

Ten years from one setting

The clearest example of how long drift can last comes from Toyota. In 2023, the company disclosed that a cloud environment holding vehicle location data for about 2.15 million customers in Japan had been set to public instead of private through human error. The setting had been wrong since November 2013, almost a decade.

Toyota's response wasn't a new firewall. It was continuous auditing and monitoring of cloud settings. In other words: stop assuming the configuration is still what you think it is, and check.

Even the biggest clouds trip on configuration

Drift isn't only a security problem, and it isn't only a small-team problem. In 2025, two of the largest cloud providers in the world had major incidents that came from configuration and state, not from code bugs alone.

  • Google Cloud, June 12, 2025. A policy change with blank fields was written into a global data store. A service that read it hit an unhandled case and crashed in a loop, taking many products down for hours. Google wrote that the change did not have appropriate error handling and was not feature-flag protected.
  • AWS us-east-1, October 19-20, 2025. A race condition in DynamoDB's DNS automation let an old plan overwrite a newer one, and a cleanup step then left an empty DNS record. The system's actual state no longer matched what anyone intended.

These teams are among the best at configuration management in the world. If the state of their systems can drift from the intended state, so can yours. The useful takeaway isn't "the cloud is fragile". It's that intended state and actual state need to be compared constantly, by something that isn't a human remembering.

Why drift matters more for security now

Drift used to be mostly a reliability concern. A forgotten open port might sit unnoticed for months, because finding it meant someone had to go looking.

That's no longer a safe bet. Scanning the internet is cheap, and attackers increasingly use automation to look at everything and try everything. A setting that drifted open on Tuesday can be found by Wednesday. The window between "it changed" and "someone noticed" is the window that matters, and the attacker's side of that race is getting faster.

How to keep reality close to the plan

You won't stop every manual change, and you shouldn't try. Incidents need fast hands. The goal is to make drift visible and short-lived.

  • Make code the source of truth. If your infrastructure is defined in code, every resource that isn't in code is a question to answer, not a fact to accept.
  • Run drift detection on a schedule. CloudFormation and most infrastructure-as-code tools can compare reality to the template. Run it often, and know its limits: some resource types and properties aren't checked.
  • Record configuration history. AWS Config keeps a timeline of how resources were configured, so you can see what changed, when, and what the last known good state was.
  • Alert on risky changes as they happen. A security group opening to the internet, a role gaining a wildcard, encryption being switched off. These deserve a message in minutes, not a line in a monthly report.
  • Give break-glass changes an expiry. If someone opens something during an incident, the follow-up to close it should be created at the same moment.

Checking the plan isn't the same as testing the system

Drift detection tells you that something changed. It doesn't tell you whether the change matters, or what an attacker could do with it. An open port on an empty test box and an open port in front of a database look the same in a diff.

That's where testing from the outside comes in. At Antivenom, an AI red team continuously probes your own systems, only with your permission, to find which changes actually opened a path. The AI blue team closes the ones that matter and watches for the next drift. Launch-day reviews are a snapshot. Your cloud is a moving picture.

For one kind of drift that keeps leaking data, read why cloud buckets still leak.

← All posts
  • configuration drift
  • cloud security
  • AWS Config
  • infrastructure as code
  • misconfiguration

The arms race has started

Evolve as fast as the attacker.

Antivenom is opening to a small group of security and platform teams first. Join the waitlist to get early access.