AI agents are gaining ever more autonomy. Can the safeguards keep up?

Away from the increasingly alarming headlines about frontier AI tests going awry, millions of AI agents are hard at work on real-world tasks.

Businesses are increasingly using agents like employees, getting them to write and deploy code, analyse documents, interact with databases, use cloud services and carry out tasks that previously required a human being to spend hours in front of a computer.

This raises an uncomfortable question for security teams. If an AI agent can access company systems, hold credentials and take actions without somebody approving each step, should we really be treating it as just another piece of software?

An autonomous agent has more in common with a privileged human user than a mere program; albeit one that can operate at machine speed, doesn’t get tired or take breaks, and which may be influenced by the information it encounters while doing its job.

The industry tends to discuss this problem in terms of AI agents “going rogue”. This evocative phrase is a useful shorthand, but it can also be misleading.

Most of the incidents we’ve seen so far didn’t involve an AI system suddenly developing malicious intent. They’ve mostly arisen after agents were given permissions that were too broad, objectives that left too much room for interpretation, or where agents were manipulated through techniques such as prompt injection.

We recently saw a striking example in Australia, where an OpenAI agent gained unauthorised access to the Australian government’s Medicare statistics portal. The agent had been given a benign research task, but after encountering barriers in its search for certain information, it found a way around them and accessed public and non-public files. OpenAI later acknowledged that its models had taken actions it did not intend.

This is a better illustration of what “going rogue” means in practice. The agent didn’t have malicious intent or an attacker telling it what to do, it was pursuing an ordinary objective and crossed a boundary in the process.

Permissions are only part of the answer

An agent should only have access to the systems and data it actually needs to complete a task, just as you wouldn’t grant administrator privileges to every employee.

Give a human administrator permission to modify a database and there are natural limits on what they can do. They pause, they get distracted, they go for lunch and eventually they go home. An AI agent can carry out tens of thousands of individually permitted actions in a short period.

That means CISOs need to ask not only whether an agent should be allowed to perform an action, but how often and at what scale.

If an agent needs permission to update customer records, for example, allowing it to modify a limited number within a defined period may be sensible. Allowing it to modify 40,000 records in an hour probably isn’t.

Rate limits and aggregate impact limits should therefore sit alongside conventional permissions. They give organisations a way of containing the damage when an agent’s individual actions are technically legitimate but their cumulative effect isn’t.

Don’t confuse an instruction with a control

There is another problem with AI agents that security teams need to get comfortable with. Telling an agent not to do something isn’t the same as preventing it from doing it.

System prompts are important, but they aren’t security boundaries, and the Australian example shows how an agent encountering an obstacle in the field may take another route to its objective. If an agent has the technical ability to reach a production environment, telling it in its instructions that the environment is off limits shouldn’t be the only thing standing in its way.

We’ve had to confront this directly at Ethiack because our own AI pentesting agent, Hackian, is deliberately adversarial. Its job is to look for vulnerabilities in customers’ infrastructure and work out how those vulnerabilities could be exploited. Giving an autonomous system that capability makes strict scope control particularly important.

We use a deterministic layer to define where Hackian can send requests and what it can interact with. That scope is fixed before the session begins and the agent can’t expand it unilaterally. We also filter potentially destructive payloads before they reach the target, with another layer assessing whether a particular tool use could cause damage before allowing it to execute.

Agents can be targets too

Perhaps the bigger shift for CISOs is recognising that agents aren’t just a potential source of security incidents in themselves. They’re also assets that cyber attackers will want to compromise.

Consider an agent that can read emails, access internal documents and interact with other company systems while holding privileged credentials. It isn’t difficult to see why that would be attractive to an attacker.

Prompt injection illustrates this problem well. An agent might encounter malicious instructions inside an email, webpage or document while carrying out a legitimate task. If the same agent also has access to sensitive systems, the distinction between the way it processes untrusted information and acts on trusted instructions becomes extremely important.

This is why untrusted input and privileged access should be separated whenever possible. The component reading content from the outside world need not be the same component holding the keys to sensitive infrastructure.

Start treating agents as part of the estate

For CISOs, one of the first questions to answer is deceptively simple: how many autonomous agents are operating inside the organisation, and what can each of them reach?

I suspect many businesses would struggle to give a complete answer.

That needs to change. Agents with meaningful autonomy should appear in asset inventories and their permissions and credentials should be understood. Their behaviour should be logged and monitored, and they should be included in security testing.

Testing must evolve too. Conventional penetration testing is largely built around reproducibility: find a vulnerability, reproduce it, patch it and verify the fix. AI behaviour is probabilistic, so one clean test today tells you little about how an agent might behave tomorrow when it encounters different inputs or a partial failure.

Organisations therefore need to test whether agents keep to their boundaries when circumstances change, whether external content can redirect their behaviour, what happens when a tool fails unexpectedly and, critically, whether investigators could reconstruct the agent’s actions afterwards.

AI agents will become more useful as we give them greater autonomy. Trying to remove that autonomy altogether would defeat much of the point of deploying them.

So the security challenge is to make sure autonomy doesn’t mean unlimited trust. If an agent can hold credentials, access sensitive systems and take action on behalf of the business, we should stop treating it as a clever feature bolted onto an existing application.

It has become part of the privileged estate, and it must be secured accordingly.

____

About Jorge Monteiro

Jorge Monteiro is CEO and co-founder of Ethiack, an AI cybersecurity company specialising in pentesting, autonomous ethical hacking and continuous security testing.

 

Join our LinkedIn group Information Security Community!

No posts to display