What Is AWS Greenlight? Security That Stops AI Agents from Taking Dangerous Actions Before They Happen
\n
One Second Before the Agent Clicks “Issue Refund”
A customer support agent is handling a refund request. It looks up the order, checks the payment status, and is about to call the refund API. But what if, in that same workflow, it also detects that the customer’s payment information could be sent to an external email address?
The most important question is this:
Can anyone stop the agent just before it calls a real tool?
AWS Greenlight’s answer is that it should be possible. The key is not to tell the agent in a prompt, “Don’t send sensitive information.” Instead, whenever the agent is about to call a refund API, send an email, or modify a database, a policy layer outside the agent first decides whether to allow the action.
In other words, the agent’s decision-making is separated from its authority to execute.
Customer request
↓
Agent creates a plan to process the refund
↓
Request to call refund API or email tool
↓
AWS Greenlight policy check
├─ Conditions met → Allow execution
├─ Approval required → Request human review
└─ Policy violation → Block execution
For example, policies could be designed as follows:
- Refunds of $100 or less are approved automatically only if the order and payment status have been verified
- Refunds over $100 require administrator approval
- Duplicate refunds for the same order are always blocked
- Full card numbers and payment tokens must never be sent by email
- Additional verification is required when customer data access, refund processing, and external email are combined in one workflow
The important point is that it’s not enough to look at each permission separately. Accessing customer information may be necessary, processing a refund may be routine, and sending an email may be needed to notify the customer. But when these three actions are combined, they could lead to sensitive data exposure or an incorrect financial transaction.
In these situations, AWS Greenlight aims to make decisions based not on the agent’s intent or natural-language explanation, but on policy conditions and the context of the actual tool call. Even if the agent says, “This is for customer support,” execution stops if the action would send data in a way that policy does not allow or issue a high-value refund without approval.
This is fundamentally different from an after-the-fact audit. By the time someone reviews the logs and investigates what went wrong, the refund may already have been processed and the information sent. A policy check immediately before execution, by contrast, aims to stop an incident before it reaches an external system.
Ultimately, what businesses want is not a control that slows agents down. They want to automate low-risk, repetitive work quickly while ensuring that actions that are hard to reverse—such as moving money, handling personal information, or changing permissions—stop at exactly the right boundary. That is precisely where AWS Greenlight aims to intervene: one second before the agent clicks “Issue Refund.”
Turning Agent Rules into Enforceable Policies
The rule “Automatically process refunds of $100 or less, and require manager approval for anything above that” is clear to a person. But simply giving an Agent that sentence is not enough to ensure it can carry out the work correctly.
The Agent must understand the refund request, retrieve the order details, check the payment status, and then call the refund API. If it misses even one condition—such as the refund threshold, whether the order has already been refunded, approval status, or customer data protection—the business rule can easily be circumvented.
AWS Greenlight aims to turn natural-language rules and business procedures into policies that can be validated immediately before execution.
Breaking Down Written Rules into Execution Conditions
Enterprise policies are usually scattered across many sources:
- Customer support operations manuals
- Privacy guidelines
- Financial, healthcare, and security regulations
- Department-specific approval procedures
- Internal wikis and FAQs
- Undocumented knowledge held by frontline teams
- Existing Agent execution logs and traces
The problem is that most of these materials are written in natural language for people to read. A statement such as “High-value refunds require approval” includes several specific conditions that must be checked in practice.
| Business rule | Example of an enforceable policy condition |
|---|---|
| Refunds of $100 or less are allowed | refund_amount <= 100 |
| High-value refunds require approval | If refund_amount > 100, check approval status |
| Duplicate refunds are prohibited | Look up existing refund history for the order |
| Only delivered items are eligible for refunds | Check whether the order is in a return- or refund-eligible status |
| Sensitive information must not be sent externally | Block specific data fields, such as credit card or national ID numbers |
In other words, each business rule must be broken down into the action the Agent will take, the data it must check beforehand, the conditions under which the action is allowed, how exceptions are handled, and what approval steps are required.
Greenlight points toward generating draft policies from regulatory documents, business procedures, expert knowledge, and existing execution traces. The goal is to reduce the burden of formalizing every rule from scratch, while ensuring that business owners and security teams review and approve the final policies.
Policies Govern Not Just “What Can Be Done,” but “When It Can Be Done”
Traditional access control often focuses on whether an Agent can access the refund API. But in enterprise operations, access alone is not enough.
Having permission to call the refund API does not mean every refund request should be processed immediately. Effective controls require an understanding of the business context.
Refund API call requested
↓
Check whether the order exists
↓
Check existing refund history
↓
Check refund amount
↓
Determine whether approval is required
↓
Allow the API call only if policy conditions are met
In this structure, the Agent can propose or request a refund, but its authority to actually execute it is limited by the policy validation result.
For example, policies might specify that:
- A refund is automatically allowed if the amount is $100 or less, the order is in a refund-eligible status, and no duplicate refund exists.
- A manager approval ID is required for refunds over $100.
- An attempt to send data containing a customer’s payment information through an external email tool is blocked.
- A request to process a refund and send an external email at the same time requires additional review.
Policies therefore go beyond simply allowing or denying access to a tool. They must account for data, amounts, timing, approval status, and the sequence of operations.
Execution Traces Can Reveal Hidden Business Rules
Real-world business procedures cannot be fully captured in documents alone. Teams often follow rules repeatedly that are not adequately documented in official materials.
For example, analyzing existing Agent execution traces may reveal patterns such as:
- The order status is always checked before a refund.
- Customers in certain tiers go through an approval process even for smaller amounts than ordinary customers.
- International orders trigger an additional shipping-verification tool before a refund.
- Customer data from certain countries is never sent to external services.
- Repeated failed requests are routed to a support ticket instead of being refunded.
Greenlight’s approach is notable in that it treats these execution records as more than just audit logs. Traces can help identify missing policies, problems with tool-call sequences, and unexpected combinations of permissions.
However, rules suggested by execution traces should not be applied automatically. Past exceptions or faulty execution patterns could otherwise become embedded as policy. A recommended process is:
- Generate draft policies from documents and procedures.
- Use Agent execution traces to find missing conditions and recurring patterns.
- Have security, legal, and business teams review the policies.
- Deploy only approved policies to production.
- Analyze blocked and exceptional cases to continuously improve the policies.
Put a Control Layer Between Natural-Language Rules and Actual Execution
The key is not to make the Agent “remember” the rules, but to make it impossible to execute actions that violate them.
Writing “Refunds over $100 require approval” in a system prompt relies on the model’s interpretation and reasoning. A policy layer like Greenlight, by contrast, aims to check the same conditions immediately before a tool call, regardless of which model the Agent uses.
User request
↓
Agent's business reasoning and execution plan
↓
Tool-call request
↓
Policy engine validates the conditions
├─ Conditions met: allow execution
├─ Approval required: request additional approval
└─ Conditions violated: block execution
The aim is not to eliminate Agent autonomy. It is to automate repetitive, low-risk work quickly while stopping only actions that pose risks involving amounts, data, or permissions.
Ultimately, an enforceable policy is more than a security rule. It is the operational boundary an Agent must respect when putting a company’s business principles into action.
How the Control Layer Governing Agent Tool Calls Works
Just because an agent concludes, “This customer is eligible for a refund,” doesn’t mean the refund API runs immediately. AWS Greenlight places a separate checkpoint between the model’s judgment and the authority to execute actions in real systems.
The core idea is simple: whenever an agent tries to call a tool, Greenlight checks the action against policy before it can be executed.
User request
↓
Agent analyzes the situation and plans an action
↓
Request to call a tool, such as a refund API
↓
Greenlight policy check
├─ Conditions met → Call allowed
├─ Further review needed → Human approval requested
└─ Policy violation or insufficient information → Call blocked
In this structure, the agent understands the task and proposes what to do next. Greenlight, meanwhile, checks whether “this action can be taken now, under these conditions, with this level of authority.” In other words, it separates reasoning from execution.
How Is a Refund Request Validated?
Suppose a customer support agent is handling a customer’s refund request. After looking up the order, the agent may decide that a refund is warranted. But before the refund API is called, Greenlight can check conditions such as:
- Does the order actually exist?
- Is the order in a refundable state?
- Is the refund window still open?
- Has a refund already been issued for this order?
- Is the refund amount within the automatic approval limit?
- Are there exceptions based on the customer’s tier or contract terms?
- Has the required manager approval been completed for a high-value refund?
For example, if the policy is set to “Automatically process refunds of $100 or less; anything above that must go through an approval process,” the outcomes are clear.
| Agent request | Greenlight decision | Result | |---|---|---| | $35 refund, conditions met | Allowed | Refund API executed | | $250 refund, no approval | Further approval required | API call held | | Order already refunded | Denied | Duplicate refund blocked | | Unable to verify order information | Denied | Execution blocked |
The important point is that even if the agent produces a highly persuasive explanation, it cannot bypass policy. Greenlight bases its decision on defined conditions and system state—not on how convincing the natural-language response sounds.
Why Enforce Policies Outside the Model?
Previously, a common approach was to add instructions to the system prompt, such as “Get manager approval for high-value refunds.” But a prompt is just guidance for the agent—it isn’t a security mechanism that can enforce execution controls.
Agents can misinterpret rules during long conversations or complex workflows. Attempts by users to circumvent safeguards, ambiguous tool descriptions, and unexpected data formats can also lead to errors in judgment. The bigger problem is that if an agent breaks a rule and an external API has already been called, it can be difficult to undo the damage.
Greenlight reframes the problem this way:
Not “Remember and follow the rules,” but “You cannot execute the action unless the rules are satisfied.”
Policy checks are therefore performed in an external control layer, not inside the agent. Regardless of how the model reasoned, an actual tool call must be authorized by the policy engine.
Deny by Default: Block Unapproved Actions from the Start
Another core principle of Greenlight is deny by default. It does not grant the agent broad permissions up front and then restrict them only if problems arise.
Initially, all of the following are blocked:
- Tool calls not registered in policy
- Access to unapproved data
- Connections to unauthorized external network destinations
- Undefined high-risk operations
- Combinations of permissions not included in the workflow
Only the actions needed are then allowed, with permissions scoped as narrowly as possible. For example, a customer support agent might be allowed to look up orders and call a limited refund API, while bulk downloads of customer lists or sending external emails remain blocked unless covered by a separate policy.
This approach reduces the risk of an agent discovering new tools or expanding its permissions through an unexpected path.
Look at the Context of an Action, Not Just a Single Permission
Conventional access control tends to ask, “Can this account call the refund API?” But in enterprise workflows, the order and context in which permissions are combined can matter more than the permissions themselves.
For example, each of the following permissions may be necessary for legitimate work:
- Look up customer order information
- Call the refund API
- Send external email
But if a single agent can combine all three capabilities, it may create a path for sending customer information outside the organization and issuing an unapproved refund. Greenlight uses automated reasoning to identify combinations of permissions like these, policy conflicts, and missing constraints.
Ultimately, this control layer is more than a simple API blocker. It is closer to a pre-execution policy engine that verifies which tools an agent can use, under what conditions, with what data, and in what order as it works toward a goal.
The Boundaries of Safe Autonomy
Greenlight is not designed to slow agents down or hand every task over to a human. Its goal is to handle repetitive, low-risk tasks automatically while requiring a block or approval only when an action crosses a policy boundary.
- Low-risk actions within policy: Execute automatically
- Actions exceeding limits for amount, data, or permissions: Require additional approval
- New actions not covered by policy: Deny by default
- Clear policy violations: Block immediately
This frees people from having to click a button every time, allowing them to focus instead on deciding which workflows to automate and how far to automate them, then approving the relevant policies. As agents become more capable of taking action, this checkpoint is likely to become not an optional feature but a fundamental requirement for enterprise automation.
Agent Security: From Prompt Security to the Control Plane
There is one crucial distinction to make when securing enterprise agents: “Who is acting?”, “Is that action allowed?”, and “What happened?” are three different questions.
A common approach has been to put instructions in the system prompt, such as “Do not send customer data outside the organization” or “Get approval for refunds over $100.” But prompts only guide a model’s behavior; they are not security boundaries that enforce what can be executed. Problems can arise if the model misinterprets a rule or loses sight of priorities during a complex conversation or lengthy task.
Consider AWS Greenlight, IAM for agents, and CloudTrail together, and it becomes clear that the security architecture enterprises need to operate agents has three distinct layers.
| Security layer | Key question | Role | Representative technology | |---|---|---|---| | Identity layer | Who made the request? | Identify and authenticate agents and workloads | IAM for agents | | Execution control layer | Is this action allowed? | Check and block actions based on policy before tool calls | AWS Greenlight | | Audit layer | What actually happened? | Record, trace, and investigate activity after the fact | AWS CloudTrail |
Identity: What permissions does an agent act with?
IAM for agents gives agents verifiable identities. Just as we distinguish between human accounts, service accounts, and application roles, agents should also be managed as independent identities.
For example, if a customer support agent and an infrastructure operations agent share the same administrator permissions, it can be difficult to determine responsibility when an incident occurs. By giving each agent a separate identity and least-privilege access, you can clearly establish:
- Which agent accessed the database
- Which agent called the refund API
- Which resources the agent was authorized to access
- Which user or service delegated those permissions
This provides the foundation for determining whether an agent can execute an action. But identity and permissions alone are not enough. Just because an agent has permission does not mean the action is appropriate in every situation.
Execution control: Block policy violations—even when the agent has permission
AWS Greenlight aims to provide controls that are closer to the business context than IAM. If IAM grants a specific agent permission to call the refund API, Greenlight determines whether this particular refund request is actually allowed under policy—right before execution.
Suppose a customer support agent has permission to call the refund API. Before the tool call, Greenlight can check conditions such as:
- Is the refund amount within the automatic approval limit?
- Does the order actually exist, and does its shipping or payment status meet the requirements?
- Has a refund already been processed for the same order?
- Do the customer’s account tier or contract terms allow an exception?
- Has a human approved the refund if it exceeds the specified amount?
- Is unnecessary personal information being sent to an external system during the refund process?
The distinction matters. IAM generally determines “Can this agent call this API?” Greenlight verifies “Can this agent call this API in this context, right now, with these parameters?”
Agent security is therefore moving beyond simple permission management toward enforcing business rules at execution time. Even if the model determines that a refund is necessary, the API call will not happen unless it passes the policy check.
Agent requests a tool call
↓
Check identity and baseline permissions
↓
Greenlight checks business policies
├─ Conditions met → Allow execution
├─ Additional approval required → Request approval
└─ Policy violation → Block execution
This structure separates the probabilistic judgment of an LLM from policy enforcement. An agent can plan and make recommendations, but any action that affects an external system must pass through a separate control layer.
Auditing: Keep a record—even when an action is blocked
An audit layer such as CloudTrail records “what happened.” It supports investigation after the fact; unlike Greenlight, it does not block execution itself. In an enterprise environment, however, prevention and traceability are both essential.
Audit records are critical when you need to:
- Investigate when a particular agent accessed a resource and what it accessed
- Analyze why policy blocks are occurring repeatedly
- Improve misconfigured permissions or approval processes
- Provide access and change histories for regulatory audits
- Determine the scope of an incident after a security breach
Tool calls can occur in rapid succession in an agent environment. A single user request may lead to a data lookup, document search, external API call, email, and database update. That means you need more than a log of isolated events: you need to trace the agent’s entire execution flow as a connected sequence.
Prompts should be a supporting measure, not the policy itself
System prompts still matter. They are the most direct way to tell an agent its goals, tone, procedures, and prohibited actions. But prompts should not be treated as the final line of defense.
A more practical division of responsibilities looks like this:
- Prompts: Guide the agent toward a sound plan
- IAM for agents: Manage the agent’s identity and baseline access
- AWS Greenlight: Deterministically validate business policies immediately before an action
- CloudTrail: Record execution results and support investigation afterward
In this model, an agent is not simply “a model trained to follow the rules.” It becomes an operating entity with an assigned identity, limited permissions, policy checks applied to every action, and a record of every outcome.
Ultimately, the competitiveness of enterprise agents is not determined by answer quality alone. What matters is how safely permissions can be delegated, how effectively policy violations can be blocked in advance, and how clearly an agent’s actions can be explained when something goes wrong. AWS Greenlight can be seen as a technology seeking to sit at the center of this agent control plane.
Reviewing Agent Policies for Safe Autonomy
Following a policy does not automatically mean getting the job done correctly. AWS Greenlight is a powerful control layer that can block or allow an Agent’s tool calls before they execute—but if the policy itself is wrong, it can make the Agent carry out the wrong actions consistently.
For example, even if a policy that says “automatically approve refunds of $100 or less” is enforced exactly as written, the outcome can still be problematic if the customer’s request is fraudulent or the order data is linked incorrectly. Greenlight guarantees compliance with defined rules—not the right business outcome in every situation.
That’s why organizations should approach Greenlight not simply as a security tool, but as a foundation for designing how authority is delegated to Agents.
What Can You Trust?
Greenlight’s strength lies in separating an LLM’s judgment from the authority to actually execute actions. Regardless of which model an Agent uses, an external policy layer can consistently check conditions such as:
- Blocking access to unapproved tools and network destinations
- Validating explicit conditions such as refund amounts, processing times, and customer tiers
- Enforcing required steps in sequence, such as confirming an order before issuing a refund
- Blocking duplicate actions, unauthorized data transfers, and excessive API calls
- Requesting human approval for high-risk actions
- Denying by default any action not defined in policy
In these areas, you can trust Greenlight’s deterministic policy enforcement. It is particularly well suited to work with relatively clear conditions and procedures for tool calls, such as customer support, IT operations, and cloud resource management.
The key is not to tell the Agent to “act carefully.” It is to have an independent policy engine check, just before an action takes place, “Is this action allowed under these conditions?”
What Must You Review Yourself?
A policy engine enforces rules; it does not provide the final assurance that those rules are sound. Organizations therefore need to review the following four areas themselves:
| Area to Review | Question to Ask | |---|---| | Business fit of the policy | Does the policy reflect actual operational procedures and exceptions? | | Reliability of input data | Are the order, customer, and approval data the Agent relies on current and accurate? | | Risk boundaries | Are approval thresholds appropriate for the amounts involved, data classifications, and scope of system changes? | | Policy change management | Who approves policies, and how are change history and impact validated? |
In particular, policy drafts generated from regulatory documents or execution traces should never be put into production automatically. Documents may omit exceptions, and past execution traces may include practices that were already wrong.
Automated policy suggestions are useful as a starting point. But final approval should involve security staff, business owners, and system owners together.
An Operating Principle: Separate “Allowed” from “Correct”
To operate autonomy safely, it helps to assess an Agent’s actions by asking two separate questions:
Is this action allowed by policy?
This is Greenlight’s role. Before execution, it validates permissions, amounts, approval status, tool-call sequence, and the scope of data transfers.Is this action right for the business?
This is the organization’s responsibility. It must determine whether a customer request is genuine, whether external data is accurate, whether fraud is possible, and whether a policy exception should apply.
Without this distinction, organizations can fall into the false confidence of thinking, “It passed policy, so it’s safe.” By contrast, when the two layers are separated, Greenlight can reliably enforce clear, repeatable rules, while people focus on ambiguous exceptions and accountability for outcomes.
Start the Preview with Narrow, Well-Defined Tasks
Because AWS Greenlight is in Preview, it is safer to validate it in scenarios with a limited impact before entrusting it with entire critical workflows.
Good candidates for an initial rollout include:
- Simple refund requests within a defined limit
- Sending customer communications based on approved templates
- Checking the status of cloud resources with specific tags
- Searching and summarizing internal documents without permission to make changes
- Limited IT operations that require human approval
At this stage, measure policy block rates, false positives and missed detections, tool-call latency, and how often approval is requested. Also analyze blocked Agent actions and continually adjust the policies to determine whether they are too restrictive or missing important exceptions.
Ultimately, safe autonomy does not come from granting more authority. It comes from combining clear policies, verifiable data, responsible human review, and controls applied before execution. Greenlight is a promising foundation for implementing those controls—but it cannot take responsibility for deciding what should be allowed.
Comments
Post a Comment