Why Math Proofs Are Becoming Essential as AI Attacks Shrink to Seconds

Analysts monitoring large displays in a modern security operations control room

Why Math Proofs Are Becoming Essential as AI Attacks Shrink to Seconds

Analysts monitoring large displays in a modern security operations control room

Attacks that once took weeks to unfold now land in seconds, and the defence industry is running out of time to react. That was the blunt message from Amazon’s chief security officer at AWS re:Invent 2026, where security took centre stage in the opening keynote and mathematical proof was put ahead of promises. When an adversary can go from first probe to real damage before a human finishes reading the alert, speed alone is not a defence.

The centrepiece of that argument is AWS Greenlight, a new service announced in preview at re:Invent that applies automated reasoning, a branch of mathematical logic, to the problem of trusting AI agents. Instead of asking a model to behave and hoping it does, Greenlight turns an organisation’s rules into deterministic checks that can be proven to hold, every time, for every action. It is the most visible bet yet that formal verification, long a niche discipline inside cloud engineering, is about to become a mainstream security control.

The timing is not accidental. AI is accelerating attacks at every level, from state actors running far broader campaigns to opportunistic attackers automating what used to need a skilled human. Defenders, meanwhile, are handing more autonomy to AI agents of their own. The question is how you prove an agent will stay inside its bounds, rather than taking its word for it?

Key takeaways

  • Amazon’s security chief Steve Schmidt says attacks that used to take days or weeks now land in seconds, with one detection sensor tripped by an adversary in just 87 seconds.
  • AWS Greenlight, announced in preview at re:Invent 2026, uses automated reasoning to turn plain-language rules into deterministic checks AI agents cannot break.
  • Automated reasoning is not new at AWS: the company has used it for a decade to verify its own cloud, from access policies to a 35-step data-loss bug in DynamoDB.
  • Proof has limits: it guarantees the rules you wrote, not the rules you forgot, and it works best alongside fast detection, not instead of it.
  • Humans still make the hardest calls, including signing off on intrusive mitigations, while automation handles the seconds-scale response.

Table: Formal verification at a glance.

Topic What it is Why it matters
Formal verification Mathematical proof that a system has a stated property, for every case the rules cover. Certainty instead of sampling: a proof covers cases no test would ever try.
Automated reasoning Software that uses logic to prove or disprove statements about a system, with mathematical certainty. It scales proof to systems far too large for humans to check by hand.
AWS Greenlight A preview service converting natural-language agent rules into deterministic, enforceable checks. It decides how much autonomy a company can safely hand to its AI agents.

What formal verification actually is

Formal verification starts from an unfashionable idea: that you can prove things about software the way mathematicians prove theorems. You describe a system and the property you care about in terms precise enough for software to analyse, and then a reasoning engine checks whether the property holds in every reachable state. A counterexample is a bug; finding none is a proof, not a passing test suite.

The difference matters because testing can only sample. A test checks the cases somebody thought to write, on the inputs somebody thought to try. A proof accounts for every case its rules cover, including the combinations no human would think to test. AWS’s own history makes the point. While building DynamoDB, engineers stress-tested the database on real hardware and simulated network failures, and a flaw in its replication design still slipped past their tests and code reviews. One engineer described the algorithm in a formal language called TLA+ and ran a tool that explored the states the design could reach. It found a combination of failures and recovery steps that could lose data, and the shortest sequence that triggered it was 35 steps long. No test had come close. AWS launched its Automated Reasoning Group in 2016.

The 87-second problem: why attack speed changed everything

Cybersecurity professionals working at monitors in a dimly lit security operations room
Security teams now watch attacks unfold in seconds, not weeks, and the response has to keep pace.

Steve Schmidt, Amazon’s senior vice president and chief security officer, put the speed problem in one sentence at re:Invent: things that used to take days to weeks to months to become problems now happen in seconds. His example was concrete. The last time he checked, it took only 87 seconds for one of Amazon’s detection sensors to be tripped by an adversary. That used to be hours at least. For defenders, the only honest response is to operate far more quickly than ever before.

Amazon watches attackers through MadPot, a global network of decoy sensors that behave like ordinary web servers and databases. The system recently flagged PHP2Shell exploitation attempts four days before public disclosure, That early warning is valuable, but it is still a race, and the race is getting shorter.

AI is widening the reach of attackers at every level. Schmidt noted that the biggest actors are not necessarily getting better at what they do, but they can do so much more of it, putting far more people at risk. The cost of AI-driven cyberattacks is already landing on business leaders, and the volume is the point: when attacks are automated, the number of targets an adversary can probe in an hour goes up by orders of magnitude. If you can prove that an agent cannot reach a piece of data, or cannot take an action outside its bounds, the speed of the attack stops mattering for that failure, because the failure cannot happen at all.

What AWS Greenlight does

Greenlight is AWS’s attempt to turn that idea into a service companies can actually use. Organisations write rules in natural language, and Greenlight turns them into deterministic rules that get followed every time. A rule like refunds over $200 require approval becomes a check the enforcement engine applies, blocking the $201 refund.

The enforcement happens outside the agent itself, in Strands Box, an open-source sandbox for AI agents that AWS released in October. The rules sit outside the agent’s harness so the agent cannot change them, and each agent is isolated at the operating-system level. Greenlight also reads an agent’s tools, documents and past runs, proposes rules, and checks them for conflicts before a person signs off. It works through Kiro, Claude Code and Codex, and draws on AWS Context to infer rules from how the business works. AWS is also expanding Continuum, its autonomous security service, to AI agents and live attacks.

Pros

  • Deterministic enforcement: a proven rule holds every time, not just when the model is behaving well.
  • Natural-language starting point: teams write rules in plain English instead of learning a formal language first.
  • Enforcement outside the agent: rules live in a sandbox the agent cannot rewrite or talk its way around.

Cons

Where the math already works

The same approach is now being aimed at code itself. AWS announced Project C2 at re:Invent, a limited-preview tool combining automated reasoning with AI models to find rare bugs the most advanced models miss. It has already found more than 800 bugs across 22 popular pieces of open-source software. AI researcher Ben Goertzel makes the broader case: formal proof is the only lasting fix for AI-powered hacking, though rewriting critical code that way is a multi-year effort.

The limits of proof

Proof is powerful, but it is not magic, and the honest version of this story includes its limits. A proof guarantees the rules you wrote, not the rules you forgot. If the policy says nothing about a particular data store, the proof says nothing about it either. Formal verification is only as complete as the specification behind it, and writing a complete specification for a messy, changing business system is itself hard work. Inferred rules still need a human to check them.

There is also the question of scope. Automated reasoning works best on properties that can be stated precisely: access, permissions, sequences of actions, numeric limits. It is less useful for judgement calls, like whether a response is appropriate or a decision is wise. The gap between AI-written code and the security practices meant to check it shows the same tension from the other side: most organisations now ship large amounts of AI-generated code while only a minority apply security continuously as they write. Proof can close part of that gap, but it cannot fix a team that never writes the rules in the first place.

Pros

  • Covers the cases tests miss, including long chains of failures like the 35-step DynamoDB bug.
  • Scales: a reasoning engine can check a system far larger than any human review team.
  • Finds real bugs today, with Project C2 already reporting hundreds in open-source software.

Cons

  • Only as good as the specification: unwritten rules are unenforced rules.
  • Hard to apply to judgement, tone and other properties that resist precise statements.
  • Demands new skills: teams must learn to write, read and maintain formal rules.

How to choose: proof, detection, or both

Detection belongs everywhere else: novel attacks, behaviour that looks wrong but breaks no written rule, and the long tail of things nobody predicted. AWS’s own systems are among the fastest-growing targets for AI-driven attacks, and no set of rules, however careful, will anticipate every new technique. The sensible default is both, layered: proof for boundaries that must never be crossed, detection for everything that moves. Schmidt’s other warning was about trust: you do not just trust the output of an AI system, you ask how you prove it, and that scepticism is the whole point of Greenlight.

A six-point checklist for teams adopting proof-based security

  • List the five rules that matter most, usually data access and payment limits, in plain language.
  • Check which of those rules your current tools can only test, not prove, and start there.
  • Give every AI agent a stable identity, so you can tell which agent acted.
  • Put enforcement outside the agent, in a sandbox the agent cannot change.
  • Keep a human in the loop for intrusive mitigations and inferred rules.
  • Measure time to mitigation in minutes or seconds.

Frequently asked questions

What is formal verification?

Formal verification uses mathematical proof to show a system has a stated property, for every case the rules cover: a reasoning engine checks all reachable states and either proves the property or finds a counterexample.

What is AWS Greenlight?

AWS Greenlight, announced in preview at re:Invent 2026, applies automated reasoning to AI agents: organisations write rules in natural language, Greenlight turns them into deterministic checks, enforced in the Strands Box sandbox.

Why does attack speed make proof more important?

Because detection and human response take time, and that time is shrinking. Amazon’s security chief says an adversary tripped a detection sensor in 87 seconds, down from hours. A proven rule prevents the failure outright.

Is automated reasoning new?

No. AWS has used it for about a decade to verify its own cloud, including access-policy analysis with Zelkova and the discovery of a 35-step data-loss bug in DynamoDB. What is new is applying it to AI agents.

What are the limits of formal verification?

A proof only covers the rules that were written. It applies best to properties that can be stated precisely, like access and numeric limits, rather than judgement calls, and works best alongside fast detection, not instead of it.

Do humans still matter in a proof-based security operation?

Yes. Humans write and review the rules, sign off on intrusive mitigations, and make the judgement calls automation cannot.

The bottom line

The 87-second attack is the number that makes the rest of this story make sense. When the window between first probe and real damage is measured in seconds, a defence that depends on a human reading an alert is a defence that arrives too late. Proof does not slow attacks, but it makes some of them impossible.

Greenlight is still in preview, and proof is still only as good as the rules behind it. But the direction is clear: decide boundaries in advance, prove them, and enforce them outside the agent. The maths was always there. The urgency is new.

on this page