AI Security

Before Your AI Agent Gets an Action Button

The security decisions that matter when AI moves from answering questions to taking action in business systems.

The security decisions that matter when AI moves from answering questions to taking action in business systems.

Consider an operations team dealing with an overnight processing job that has failed.

An AI assistant can read the alert, check the job logs and compare them with the operating instructions. It might suggest that an engineer rerun a particular step. That could save time during a busy morning.

Then comes a reasonable question: if the assistant can identify the failed step, why not let it restart the job itself?

The processing system already has an API, so the integration may seem straightforward. But once the assistant can call that API, it is no longer just giving advice. It can change what happens in a production system.

And once that works, other requests tend to follow. Could it restart a related service? Change a schedule? Rerun a larger batch of transactions?

Those may all sound like operations tasks, but the consequences of getting them wrong are very different.

An answer and an action are different things

When an assistant suggests the wrong troubleshooting step, an employee may notice before acting on it. When the assistant executes that step directly, the opportunity to catch the mistake may be much smaller.

That doesn’t mean agents should never act. It means deciding which actions they can take and how much freedom they need.

Rerunning a single failed step is not the same as restarting an entire production service. A job might also be safe to rerun once, but not several times if it processes the same transactions again. What matters is what the agent can change and how serious a mistake would be.

Even a timeout needs care. The job may have restarted successfully while the response was lost. Before trying again, the integration should check the result or use a mechanism that prevents the same request from running the job twice.

Singapore’s IMDA makes the broader point in its updated Model AI Governance Framework for Agentic AI: organisations should set limits on an agent’s powers, identify when people need to step in, and put technical safeguards around its actions.

An API connection should not automatically give an agent permission to use every operation the API supports.

Who is the agent actually acting for?

Return to that failed processing job. Who asked the agent to investigate it? Who is allowed to restart it? And when the agent calls the operations API, whose authority does it use?

Suppose every agent request reaches the platform through the same operations account. The API may recognise the account, but that alone does not establish which engineer or approved process requested the action.

The design needs to distinguish who initiated the work, which agent is carrying it out and what the processing platform permits. A restart should be traceable to the engineer or approved automated role behind it, with the permitted job and environment made clear.

The agent still needs an identity the connected system can verify and only the access required for its task. Where supported, credentials that expire quickly can reduce the damage if they are stolen. But short-lived credentials cannot replace a check on the operation itself.

Organisations already manage privileged accounts and software identities. An AI agent adds another consideration: it may choose which tool to call and what information to send as it works through a task.

The question is not only whether the agent has access. It is whether it has permission to perform this particular action, in this particular situation.

The API must enforce the limits

Suppose the agent is allowed to rerun a particular failed job, but not restart the entire production service. That distinction must still hold when it calls the operations API.

The platform should reject requests for other jobs or wider service restarts. It should also check whether the requested operation makes sense for the job’s current state. If an engineer’s approval is required, that approval must be checked before the action goes ahead. The agent’s explanation of why the action is needed is not a substitute for those checks.

A gateway can help inspect and restrict calls, but the connected system still needs enough information to determine whether the requested operation is permitted. If it cannot confirm the required permission or approval, it should pause the action. The operations team can then follow a separate, authorised procedure if the work is urgent.

There is another way things can go wrong. The agent may read a misleading instruction in a job log or incident note and decide to rerun something that does not need restarting. The attacker may not have gained any new permissions. They may simply have influenced how the agent uses an operation it is already allowed to request.

The restrictions must apply to the actual API request, regardless of what led the agent to make it.

That is a familiar security principle, even if the technology delivering the request is new.

Approval must match the action

The important part of approving an agent’s action is what the approval actually permits the system to do.

Before an engineer approves a restart, the request should identify the job, the environment, what will run and whether it could repeat transactions already processed. A general request to let the agent fix the problem is not enough.

The system should tie that approval to the specific job and operation, and limit how long it remains valid. Approval to rerun one failed step should not also permit a different job, a wider service restart or repeated attempts without another check.

Timing matters as well. An engineer may approve a restart only to discover that another operator has already recovered the job. The integration should check the current state before acting rather than execute a request simply because it was approved earlier.

Not every action needs individual approval. Routine steps can be pre-approved within defined limits. The business owner and system designers should decide where that boundary lies, and the connected system should enforce it.

The system should carry out what was approved, not whatever the agent decides to do next.

Can we stop it, and can we explain what happened?

Before putting an agent into production, I would want the team to demonstrate one more thing: what happens when it makes a mistake or behaves unexpectedly?

Closing the chat window may not stop a task that is already running, especially if the agent has passed work to another service. The team needs to know how to cut off its access, stop running tasks and deal with queued work. Revoking a credential may block the next request without cancelling one the system has already accepted. Test the stopping procedure so the team knows what it can halt, what has already changed and what can be recovered.

They should also be able to reconstruct an important action. Which request started it? Which user or business process was involved? What did the agent ask the connected system to do? Was approval required and recorded? What actually changed?

Keep sensitive information out of logs unless it is needed and properly protected. For routine business operations, records should connect the original request, permission check, approval and action to the outcome; they do not need to capture every internal reasoning step by default.

The agent should not be able to alter its own activity records or interfere with monitoring. Before allowing it to resume after an incident, the team should check that its access restrictions, monitoring and stopping controls still work. These precautions are also reflected in recent joint guidance from NIST, NSA and CISA, although that guidance is primarily aimed at highly capable agents during training and evaluation.

Security testing matters here too. A team should try misleading log entries, invalid job identifiers, repeated requests and attempts to operate outside the approved scope. It should also test an expired approval, an unavailable permission check and a timeout where the job may already have restarted. The goal is not to prove that the model never makes a mistake. It is to show that a mistake does not automatically become an unauthorised change.

These controls have costs. Narrow permissions complicate integration, checks add time, and assessing different actions takes work. But granting broad production access for convenience can be far more expensive when something goes wrong.

What I’d want to see before approving action

A successful pilot tells me the agent can restart a job. It doesn’t tell me whether the team has put meaningful limits around that ability.

Before granting production access, I’d ask the team to show a restart that is allowed, one the system refuses and a case where the operation may have succeeded although the confirmation was lost.

Those results help establish what has been delegated, whether the restrictions are enforced and whether the team can account for an uncertain outcome. The business owner needs to understand those limits as well as the expected benefit.

The aim is not to put a person in front of every button. It is to give an agent enough freedom to be useful, without quietly handing it permissions that nobody meant to approve.

An AI agent can decide what to propose. It should not be the final authority on what it is allowed to do.