Security News

AWS Greenlight aims to keep AI agents inside safe limits using mathematical rules

The Register · 2 Dec 2026
Key Takeaway Before giving an AI agent access to business tools, define what it must never do and make sure those limits are enforced outside the agent itself.

At its re:Invent conference, Amazon announced AWS Greenlight, a new service aimed at a problem facing every organisation that deploys AI agents: how to let them complete business tasks without exposing customer data to the internet or moving money to the wrong account. Greenlight is available in public preview.

The service lets organisations write rules in natural language. It then uses a technique called automated reasoning, which applies mathematical logic to prove what a system can and cannot do, to convert those rules into deterministic ones. AWS says it also infers rules from AWS Context graphs and an agent's prior behaviour. It draws on Dogwood, an open source policy language for agents that can set rules based on an agent's recent events. One example given by AWS is that after an agent reads a database holding confidential customer data, it cannot access the internet. It also uses the Lean programming language for proofs of safe behaviour.

Enforcement happens outside the agent. Rules are deployed to an engine in Strands Box, an open source sandbox that sits beyond the agent's own harness so the agent cannot alter them. AWS's Marc Brooker said a gateway intercepts each tool call and checks it against the policies, based on what the agent has already done. Any action that breaks a rule is blocked. AWS also says Greenlight suggests rule improvements over time as the agent encounters real-world scenarios.

AWS executives say the goal is to keep the autonomy that makes agents useful while adding predictability. Today, developers can use Greenlight as a power for Kiro and as a plugin for Claude Code and Codex. AWS says support for multi-agent systems and deeper AWS Context integration is planned.

Why it matters

Many teams rely on instructions given to the model to keep agents in line, but an agent that can reach many tools can break those instructions, so the control sits in the wrong place. Greenlight shifts enforcement to the tool call, outside the agent's reach, and adds sequence rules such as no internet access after touching confidential data. Anyone planning to deploy agents with access to customer data or payments now has to decide which action sequences are off limits, not just which tools are permitted.

What to do

  • Write down which tool-use sequences should be blocked, such as internet access after reading confidential customer data.
  • Place policy enforcement outside the agent so it cannot change its own rules.
  • Trial Greenlight in public preview through Kiro, Claude Code or Codex before wider rollout.
  • Review the rules Greenlight infers from prior agent behaviour before accepting them.
AI agents AWS re:Invent Greenlight policy enforcement agentic AI security
Running AI agents? Eight controls for securing them, mapped to the ISM ->

Summarised by CISO AI from The Register, written with Claude Sonnet 5.5. We link back to every original so you can read it yourself.