Wednesday, December 2, 2026
Tech

With ‘Greenlight,’ AWS is using math to keep AI agents from going rogue


AWS introduces Greenlight during the re:Invent keynote Tuesday in Las Vegas. (GeekWire Photo / Todd Bishop)

For a decade, a team of mathematicians and engineers inside Amazon Web Services has been using a branch of math called automated reasoning as a check on security — basically proving that the locks on the company’s cloud actually work.

Now AWS is applying the approach in a much bigger way, aiming to keep AI agents in line.

The company on Tuesday released a preview of Greenlight, a service that writes rules for what an AI agent is allowed to do and checks whether the agent has any way to break them.

Greenlight, announced at AWS’s re:Invent conference in Las Vegas, works from AI coding tools including Claude Code, Codex and Kiro. It reads an agent’s tools, documents and past runs, proposes rules, and checks them for conflicts before a person signs off.

Delta Air Lines, Salesforce, ServiceNow and Accenture are among the companies looking to use it, according to AWS.

AWS is also expanding a security service called Continuum to track down AI agents running across a company’s systems, including ones nobody knew about.

A common thread across both: Amazon has been recruiting longtime Microsoft engineers and research leaders, some of them AWS veterans coming back to the company.

The math behind it: Byron Cook, a former Microsoft researcher, started AWS’s Automated Reasoning Group about 10 years ago to apply it to the company’s cloud. The group’s work is behind tools that check, for example, whether a customer’s data is exposed to the internet.

AI models like ChatGPT work by predicting the most likely next word, which is why they can be confidently wrong. Automated reasoning relies on logic instead, working like a math proof that accounts for every case its rules cover.

Portrait of Marvin Theimer
Marvin Theimer, AWS vice president and distinguished engineer. (LinkedIn Photo)

Applying that work to AI agents is what brought Marvin Theimer back to the company. An AWS vice president and distinguished engineer, he spent most of his career building giant computer systems that behave in ways even their creators don’t fully understand — always wondering, as he put it, “how do we tame this beast?”

He left AWS in 2022 after nearly 14 years, spending two years at Stripe and two more at Microsoft, where he was a corporate vice president working on cybersecurity. He returned to AWS in July, convinced that AI had finally made the math practical on a large scale.

“It’s maybe the most important thing I’ll ever work on,” he said.

Shawn Bice, who left AWS for Splunk in 2021 and later became corporate vice president of security platform and AI at Microsoft, returned to AWS in May to lead the Automated Reasoning Group, reporting to Swami Sivasubramanian, Amazon’s vice president of agentic AI.

Rogue agents and everyday mistakes: The approach is designed to catch the kind of rogue agent behavior that makes headlines, like the OpenAI test models that broke out of their sandbox in July and hacked into Hugging Face to get the answers to the test they were taking.

It’s also meant for the everyday mistakes that never make the news, such as an agent moving one traveler to an earlier flight and leaving a companion on standby with no ticket, the example used in one of Amazon’s demos.

AWS is competing with Microsoft, Google and others to be where companies build and run AI agents, software that can take on real work by itself. More agents in production means more business on AWS.

The challenge is that a lot of those agents are stuck in testing, essentially “sitting in purgatory” because corporate security chiefs won’t approve software that could do serious damage, Theimer explained.

As Theimer summed up their thinking: “I won’t put my signature under something that could tank the company.”

The idea behind Greenlight is to give those security chiefs proof that an agent will follow the rules, rather than taking the agent’s word for it. The rules are enforced outside the agent, so it can’t change them.

“It runs 99 out of 100 times, but as I get to scale, that’s not good enough,” Theimer said of other AI guardrails. “I need 100 percent.”

Theimer acknowledged a limit: the proof covers only the rules a company specifies, and those rules may not capture everything it intended.

Greenlight enforces the rules through Strands Box, an open-source sandbox for AI agents that AWS released in October, blocking any action that would break one.

The competition: AWS isn’t the only company trying to put controls around agents. Google offers an agent gateway that checks what agents are allowed to do, and Microsoft has an agent registry and an identity system for agents called Entra Agent ID.

Theimer said the difference with Greenlight is the math, which can show whether any sequence of actions would let an agent get around a rule.

Finding the agents: A separate AWS team is tackling an earlier question: which agents a company even has. Continuum, a security service AWS introduced this summer, is adding a feature called Continuum for agents that finds AI agents running across a company’s systems on AWS, Microsoft Azure and Google Cloud, including ones nobody registered, and flags any that behave differently than their developers intended.

Portrait of Rudra Mitra
Rudra Mitra, AWS vice president of security services. (LinkedIn Photo)

“Customers struggle to even identify how many agents they have in their environment right now,” said Rudra Mitra, AWS’s vice president of security services, who joined the company this year after more than 27 years at Microsoft.

Continuum is also adding tools to check the open-source code that companies build on, and to respond to attacks automatically, such as by quarantining stolen credentials.

AWS says thousands of customers have used Continuum since it launched, including IBM and Robinhood. It runs on frontier AI models including Anthropic’s Mythos and OpenAI’s GPT-6 Cyber. Amazon has also filed more than 195,000 reports of malicious open-source packages with the Open Source Security Foundation, more than 80% of the reports in its database, according to the company.

What’s next: Agents are the start, Theimer said. The obvious next step is checking the code itself, now that AI coding tools are writing millions of lines of it, and proving that it does what a business actually needs. Over time, he said, the goal is to be able to reason about “anything that we can characterize in a more formal way.”

AWS took a step in that direction Monday night, announcing Project C2, a tool in limited preview that combines automated reasoning with AI models to find rare bugs in code.

Continuum’s first feature, which finds and fixes security flaws in a company’s code, became generally available in October. Greenlight and the new Continuum features are available in preview.