SecurityIdentity

Everyone is racing to give AI more autonomy. Who's building the brakes?

Part 4 of our AI agent governance series. In our view, companies hand AI agents authority faster than they build ways to take it back. We walk through six questions to ask of every agent and an operating model we call continuous enterprise trust and containment, including what to do when an action can't be undone.

Aditya, Cohash Security Practice November 2026 17 min read 7 chapters 3-question check
part 12 of 18 · Identity security, from the ground up
01 Identify every agent,… 02 Suspend and its… 03 Preserve logs and… 04 Reverse or compensate 05 Restore with sign-off

the ideaFind the agent and stop it first. Undoing what it did comes after

after reading, you can
  • Explain to your board why agents get new powers faster than anyone builds the brakes
  • Work out where your agents hand tasks on, and where the rights grow when they do
  • Work out which of an agent's actions you could roll back, and which you'd have to correct instead

Your AI agents probably do more than answer questions now. They pull data and change records, and some hand jobs to other agents while nobody watches. Before you give the next one more authority, make sure you could find it and stop it. Then check you could undo its work without breaking something bigger.

in plain wordsGood to know

We keep giving AI agents more power to act. Far less goes into being able to stop them

An AI agent is software that takes a goal and works out the steps itself. It signs in to your systems and changes records, and it can ask other agents for help. That's useful, and in our view it's where the money is going. The catch, as we see it, is that much of it goes into what agents can do. Much less goes into who answers for them and how you'd stop one halfway through a job. And once an agent has done something wrong, someone still has to pull that work back.

think of it like this

Think of a car. Nobody buys one for its brakes, but brakes are why you dare drive fast at all. An agent with plenty of authority and no tested way to stop it is a fast car whose brakes nobody has checked.

who should care
  • Executives approving AI agent projects
  • CISOs and security leads
  • Risk, audit and compliance teams
  • Business owners whose teams run agents
  • IT and platform teams

If you need the detail behind any step, part 1 covers ownership and discovery, part 2 covers kill switches, token revocation and agents calling agents, and part 3 covers the agent lifecycle from design to retirement. We won't repeat them here.

chapter 01

We keep handing agents new powers. Has anyone budgeted for stopping them?

Our starting point for this series is a simple imbalance. Enterprises are spending real money giving AI authority, on connectors, tool access, service accounts and agent platforms. They spend far less keeping control of that authority once it's out. We think that gap is where the next round of AI incidents will come from.

OWASP already has a name for the result. Its LLM Top 10 calls it excessive agency, damaging actions taken in response to unexpected, ambiguous or manipulated output from the model, and it traces the root cause to too much functionality, too many permissions or too much autonomy. Each of those is a decision someone made when the agent went live, often, we'd argue, in a hurry.

The agents themselves are now worth attacking, too. A CVE published on 30 October covers TAKO, an AI agent that helps Okta admins query their tenant in plain language. Before version 3.0.1-beta, anyone who reached it on the network first could make themselves its sole administrator, then read the Okta-synced user data and API tokens it held. It carries a CVSS score of 9.8, critical. Whatever an agent can reach, someone who takes over the agent can reach too.

side by sideLeft is what we see companies paying for. Right is what we see left until later
Giving agents authority
  • More connectors and tools per agent
  • Service accounts and API keys so it can act
  • Agents that call other agents
  • Faster go-live for each new use case
Keeping control of it
  • A named owner for every agent
  • Permissions someone approved and reviews
  • Limits on what an agent can pass on
  • Logs that rebuild what it did and why
  • A tested way to stop it mid-task
how it worksOne sensible fix, five steps later, and nobody can stop itWe made this agent up. Every step passes its own permission check, and the chain still ends up somewhere nobody wanted it to go.
  1. 01 Spots a mismatch

    The agent spots a customer record that doesn't match billing and fixes it. Nobody told it to check which system was right first.

  2. 02 Updates the record

    It overwrites the customer record. Its account has write access, so as far as the system's concerned, nothing happened worth flagging.

  3. 03 Sends a notification

    Updating the record fires off an email to the customer. Nobody can unsend it, whatever happens next.

  4. 04 Hands off to agent B

    It asks a second agent to change the customer's entitlements. That agent has broader rights than the first one ever had.

  5. 05 Nobody can pull it back

    By now the business owner has left. Security can see the chain, but there's no switch for the downstream workflow.

chapter 02

Every step was authorised. So what went wrong?

Nobody hacked anything in that chain, and no model went rogue. Every system it touched saw a request it was allowed to accept. Taken one at a time, they probably were fine. The trouble is in the hand-offs.

tableWe broke the same made-up chain into rows. Permission checks alone won't catch any of them
Where it can failWhat happensWhich question it fails
The instructionThe agent may have misread which system was right, so the fix makes the data worseCan its behaviour be reconstructed?
The hand-offAgent B holds broader privileges than agent A, so the task gains rights as it movesCan it delegate authority?
The ownerThe person who signed off the agent has left, so nobody can say what it was meant to doWho owns the agent?
The stopSecurity can disable agent A, but agent B keeps working on the task it was givenCan its execution be interrupted?

We'd call this autonomy without accountability. Malice needn't come into it. What would have caught it is dull stuff, like an owner who's still around, a cap on what one agent can hand another and a way to contain the work. Part 2 has how agent-to-agent chains go wrong at the token level. The executive question is whether anyone in your company knows where these chains run.

OWASP's agentic Top 10, out since December 2025, has entries for both halves of this. ASI08 covers cascading failures, where false signals spread through automated pipelines and get worse at each hop. ASI03 covers identity and privilege abuse. A chain like ours could trip both with every step inside its rights.

chapter 03

Six questions to ask of every agent you run. The last two are the hard ones

These are our six questions. Ask them of each agent that can change something, starting with the ones closest to money or customer data. If an answer takes a meeting to find, write it down as a gap.

tableRead across each row. The right-hand column is what your auditor will ask to see
QuestionA good answerEvidence to ask for
Who owns the agent?A named business owner who's still here, plus a technical ownerAgent register entry with both names and a review date
Which credentials does it use?Its own identity, never a person's login or a shared service accountThe identity record and every secret or key tied to it
Who approved its permissions?A person who isn't the builder signed off each permissionApproval record and the last access review
Can it delegate authority?Only to named agents, and never with more rights than it holdsDelegation rules and a log of hand-offs
Can its behaviour be reconstructed?You can replay what it was told, what it decided and what it changedLogs that join the request, the tool calls and the changes
Can its execution be interrupted?Someone has stopped it in a drill and timed how long it tookDrill notes with the time per system

The first two you can usually answer from records. The last two need engineering done before an incident, and no amount of paperwork afterwards fills that in.

chapter 04

Continuous enterprise trust and containment: what would your team actually have to build?

Continuous enterprise trust and containmentdefinitionWe use it as shorthand for continuous enterprise trust and containment. It's the setup you build so you can stop an agent, undo what it did and keep the evidence. is our name for an operating model your company builds for itself. You can't buy it off the shelf. The idea is that the way you run AI should include the means to take an action back, the same way a change process includes a rollback plan. You design it in from the start, and nobody has to improvise it during an incident.

  1. 01
    Identify the agents

    Know every agent acting for you, who owns it and what it runs as. You can't stop what you can't name, and part 1 covers how to find the ones nobody registered.

  2. 02
    Restrict permissions

    Cut an agent's rights down to the task in front of it, quickly and without redeploying it. Keep a pre-approved narrower profile ready, so restricting doesn't need an emergency change.

  3. 03
    Suspend execution

    Pause the agent and any jobs it has queued, ideally at the gateway its tool calls pass through. A pause you can lift beats a delete you can't undo.

  4. 04
    Revoke delegated authority

    Pull back whatever it handed to other agents, including tasks already running downstream. This step is easy to leave out of a stop procedure.

  5. 05
    Preserve evidence

    Freeze the logs, prompts, tool calls and the identity record before anyone cleans up. You'll need them to work out what to reverse and to explain it later.

  6. 06
    Restore operations safely

    Restore what you can and compensate for the rest. Then run the process without the agent until its owner agrees it can come back.

The frameworks already lean this way. NIST's AI RMF, under MANAGE 2.4, wants someone assigned and a mechanism in place to disengage or deactivate AI that behaves outside its intended use.

The EU AI Act goes further for high-risk systems. Article 14 says whoever oversees one has to be able to stop it, with a stop button or something like it that halts it safely. Neither NIST nor the Act explains how you'd stop a five-step agent chain safely, though. Your engineers have to work that out.

before

Before: agents act straight on business systems

In the made-up chain, agent A writes to the customer record and hands work to agent B, which changes entitlements. Nothing sits in the path, so there's no single place to pause the chain or see what it did.

Before: agents act straight on business systems In the made-up chain, agent A writes to the customer record and hands work to agent B, which changes entitlements. Nothing sits in the path, so there's no single place to pause the chain or see what it did. 01 · AGENTS 02 · BUSINESS SYSTEMS writes triggers hands off task changes Agent A account maintenance Agent B broader rights Customer record Customer email can't be unsent Entitlements © Cohash · cohash.com
01 · AGENTS02 · BUSINESS SYSTEMS Agent A: account maintenance Agent A accountmaintenance Agent B: broader rights Agent B broader rights Customer record Customerrecord Customer email: can't be unsent Customeremail can't be unsent Entitlements Entitlements writes changes © Cohash · cohash.com
after

After: every call passes a control point you own

Here both agents call through one gateway that you run. Nothing writes until the old value is logged, and the customer email waits for a person. If something looks off, security pauses agent A and the task it handed to agent B without touching other workloads.

After: every call passes a control point you own Here both agents call through one gateway that you run. Nothing writes until the old value is logged, and the customer email waits for a person. If something looks off, security pauses agent A and the task it handed to agent B without touching other workloads. 01 · AGENTS 02 · CONTROL YOU OWN 03 · BUSINESS SYSTEMS scoped hand-off every call every call checks records allowed write after approval scoped change Agent A own identity, owner named Agent B can't exceed A's task Agent register owner and limits Gateway policy, approvals, pause Evidence log old values, hand-offs Customer record Customer email sent after approval Entitlements tested revoke © Cohash · cohash.com
01 · AGENTS02 · CONTROL YOU OWN03 · BUSINESS SYSTEMS Agent A: own identity, owner named Agent A own identity,owner named Agent B: can't exceed A's task Agent B can't exceed A'stask Agent register: owner and limits Agentregister owner andlimits Gateway: policy, approvals, pause Gateway policy,approvals,pause Evidence log: old values, hand-offs Evidence log old values,hand-offs Customer record Customerrecord Customer email: sent after approval Customeremail sent afterapproval Entitlements: tested revoke Entitlements tested revoke every call every call allowed write after approval scoped change © Cohash · cohash.com
chapter 05

What can you undo, what needs a compensating action, and what can't be taken back?

Pulling the plug on an agent stops what it does next. Whatever it did before is still sitting in your systems. We sort those actions by what you can still do about them.

tableWe put each step of the chain into a row. Try the same with the tools your agents call
KindWhat it meansExample from the chainWhat you need ready
ReversibleYou can put the old state backThe customer record update, if nobody else changed the record sinceThe old value logged before every write
CompensableYou can't rewind it, but a new action cancels its effectThe entitlement change agent B madeA tested counter-action, such as revoking the entitlement and logging why
IrreversibleOnce it happens, it stays happenedThe notification email to the customerApproval before it runs, and a plan for a correction message

None of this is new to software architects. Microsoft's write-up of the compensating transaction pattern points out you can't always roll data back, since other processes may have changed it, and putting back the old state can overwrite their work. So you record each step and how to undo it while it runs, and undo in reverse order if it fails. In Microsoft's saga pattern the point of no return is called a pivot transaction. Past it, the saga has to finish going forward rather than undo.

Agent tools don't always carry that information. The Model Context Protocol lets a tool server mark tools as read-only, destructive or idempotent, which is close to the split above. The specification is blunt that these are hints. Clients must treat them as untrusted unless they come from a trusted server, so a tool that says it's harmless still needs checking.

Logs have the same gap. A developer who built an undo trail for coding agents put it plainly on Hacker News: git diff shows what changed, but not why the agent changed it or how to roll back one specific action. In business systems the record of why can live only in the agent's context, which may not outlast the session.

Switching an agent off stops its next action. It does nothing about the last ten.
chapter 06

Could you name every agent acting for you, and stop one without causing a bigger outage?

That's the question we'd put to executives, and it's a fair one to ask at the next board or risk committee. It has two halves. Can you name every agent? And can you stop one without the cure doing more damage than the agent did?

If the honest answer is "we don't know", that's an assurance gapdefinitionThe gap between thinking you're in control and being able to prove it. If nobody knows the answer, that counts.. You may well be fine. But if nobody can show it, an auditor or a regulator may treat it the same as not being fine.

tableA quick assurance check. Ask for evidence, not reassurance, on each line
Ask your teamGood signWarning sign
How many agents act for us today?A number from a register, with ownersAn estimate, or "it depends who you ask"
Which can move money or change customer data?A short list with approvals attachedNobody's sorted agents by impact
Which ones can call other agents?A map of the hand-offs"Probably a few"
When did we last stop one in a drill?A date and a time-to-stop per systemNever, or only in a demo
What couldn't we undo?A list of irreversible actions with approvals in frontThe question gets a blank look

What to do now, by who you are

Executives and the boardthis quarter
  • Ask the five assurance questions above and ask for the evidence, not a slide.
  • Make one named executive accountable for agent control, separate from whoever owns agent delivery.
  • Hold new agent authority until the ones already running have an owner and a tested stop.
CISO and securitythis month
  • Run a stop drill on one agent that writes to a business system and time each step.
  • Draw the hand-offs between agents. Wherever the receiving agent holds more rights, that's a gap.
  • Put irreversible actions behind an approval checked at the gateway.
Risk, audit and compliancethis quarter
  • Put our six questions into the next AI or identity audit as test steps. Then the answers get checked, not just asked for.
  • Treat an agent nobody can stop as a finding, even if nothing has gone wrong yet.
  • Check how long agent logs are kept. If they're gone before anyone asks, nobody can rebuild what the agent decided.
Engineering and platform teamsthis sprint
  • Go through each tool your agents can call and mark whether its effect can be undone. You'll need that list on the day something goes wrong.
  • Have every agent write log the value it replaced. That log is your undo button.
  • Write a compensating action for each compensable tool, and test it. One that's never been run won't help on the day.

If an agent chain does something nobody asked for, work in this order

Same steps as above, in incident order. For token revocation and kill switch detail per identity platform, see part 2.

  1. 01Containfirst hour
    • Suspend the agent at its gateway first, then pause the jobs it has queued. That stops new damage while you work out the old.
    • Find every downstream agent it handed work to and suspend those tasks too.
    • Move it to a restricted permission profile, or disable its identity. Don't delete it.
  2. 02Preservefirst hour
    • Freeze the logs, prompts and tool calls, and the agent's identity record with them. Cleanup can wait until you have copies.
    • Write down when each system last accepted a call from the agent or anything it delegated to. That tells you how far back to look.
  3. 03Sort the damagefirst day
    • Go through everything the chain did. Mark which actions you can restore, which need a counter-action and which you can only correct.
    • Find who owns each affected system now, since the agent's own owner may be gone.
  4. 04Reverse and compensatefirst days
    • Restore old values where nobody has changed the record since. Check before overwriting.
    • Run the compensating actions, usually in reverse order, and log each one.
    • Where an action can't be undone, send a correction. Then tell the people it affected before they find out some other way.
  5. 05Restore and learnfirst weeks
    • Bring the process back without the agent first. It only returns once an owner signs off.
    • Run the six questions on this agent again. Fix the one that failed before it goes back into service.
    • Work out whether the chain touched data or money you're obliged to report. If it did, you may owe your regulator, customers or insurer a call.

Three made-up situations

01 Service agent misreads complaint 02 Billing agent broad rights 03 Approvalcheck amount over limit 04 Credit paid can't be undone
scenario 01High risk
A customer-service agent hands work to a billing agent
the setup
A retailer's service agent can edit customer records. When a billing complaint comes in, it asks a billing agent for a credit. Nobody ever put a cap on what that billing agent can pay out.
what happens
It gets the complaint wrong and asks for a much bigger credit. The billing agent is allowed to pay that, so it does, and the money's gone before anyone checks.
what to do
Cap what one agent can ask another to do, and put credits above a set amount behind human approval at the gateway. Treat a settled payment as irreversible and plan for it.
01 Owner leaves nobody reassigned 02 Processchanges agent not updated 03 Wrong rolegranted for weeks 04 Audit findsit revoke by hand
scenario 02Medium risk
An onboarding agent whose owner has left
the setup
A mid-size firm's HR team built an agent that sets up access for new joiners. The manager who sponsored it left months ago, and nobody picked it up.
what happens
A process change means it now grants a role that was retired. Nobody notices for weeks, because nobody is looking at its output or knows they should.
what to do
Move sponsorship when an owner leaves, and suspend agents that have no owner. Treat role grants as compensable, with a tested revoke that runs from the agent's own log.
01 Bad writes reconciliation… 02 Accountdisabled shared with jobs 03 Batch jobsfail close stalls 04 Gateway pause agent only
scenario 03Medium risk
A stop that causes a bigger outage
the setup
An enterprise runs a reconciliation agent that several finance jobs now lean on. It starts writing bad values, so security disables its service account.
what happens
Disabling the account also breaks two batch jobs that shared it, and month-end close stalls. The fix made the incident bigger than the agent did.
what to do
Give each agent its own identity so you can stop it alone. Drill the stop before you need it, and keep a pause at the gateway that leaves other workloads running.
chapter 07

How Cohash helps

We'd start by running that assurance check against your own agents. Then we'd pick the agent that sits closest to money or customer data and work out which of its actions can actually be undone. After that, your team drills the stop with us until it works. If you'd rather see where you stand before talking to anyone, start with an assessment.

That runs through our AI agent identity and AI governance work, and it isn't tied to one vendor. An agent's reach rarely stops at the identity provider, so we follow it wherever it goes:

  • Sign-in and directories, like Microsoft Entra, Okta or Ping Identity. That's where the agent's identity lives and where you cut it off
  • Governance, privileged access and secrets, like SailPoint, CyberArk or HashiCorp Vault. Someone has to own what the agent was granted and rotate what it held
  • Where the agent actually runs, on Microsoft Foundry, AWS Bedrock or Databricks. Pause it there and the batch jobs sharing its account usually keep going
  • The business systems agents act in, like ServiceNow, Salesforce or SAP. This is where the undo, the compensating fix or the clean-up actually happens

Coming next in the series: Microsoft 365, cloud dependency, and what you're left with when an autonomous workflow stops partway through.

key takeaways

What to take from this

  1. 01

    Check whether you're funding agent authority faster than agent control. The gap between the two is the risk.

  2. 02

    Ask our six questions of every agent that can change something, and treat a slow answer as a gap.

  3. 03

    Find the hand-offs. A task that moves from one agent to another can pick up rights on the way.

  4. 04

    Ask of every agent tool: could we undo this? Plan for the ones where the answer is no.

  5. 05

    Put approvals in front of irreversible actions. No stop switch brings a sent payment back.

  6. 06

    Drill the stop. If nobody can say how long it takes, you don't have one yet.

fact-checked November 2026 against vendor and official documentation · where to go next
  1. How Cohash delivers Microsoft Entra ID: scope, roles and architecture
  2. How Cohash delivers Okta: scope, roles and architecture
  3. How Cohash delivers Ping Identity: scope, roles and architecture
  4. Hire vetted Microsoft Entra ID engineers
  5. AI agent identity
  6. Book a 30-minute working session with a senior engineer
01Is this about AI going rogue?

Mostly no. The risk we describe comes from agents doing what they were allowed to do, in a chain nobody owns or can stop. Malicious behaviour is possible, but the failure we expect is ordinary authority with no accountability around it.

02Can we buy continuous enterprise trust and containment, or do we have to build it?

You build it. It's our name for an operating model your company runs for itself. Taking an AI action back gets designed in from the start, the way a change plan has a rollback, so you can pause each agent and pull back what it delegated without losing the evidence.

03Can't we just switch the agent off?

That stops what it does next, and nothing more. Work it already finished stays finished, and other agents may still be running tasks it gave them. If the account is shared, other jobs go down with it.

04What if an agent's action can't be undone?

Then reversibility is the wrong control for it. Put an approval in front of the action and enforce it at the gateway, so the action can't run without one. Plan the correction, such as a follow-up message, before you need it.

05Where should we start?

Ask our six questions of the agent closest to money or customer data. Then run a stop drill on it and time each step. The answers tell you which of parts 1 to 3 of this series to read next.

up next in this track

Keep the thread going.

Start with sign-in policy, finish with the agents now asking for access.

  1. 01Conditional access is a policy, not a prayer
  2. 02Zero trust means proving every access. Here's how to start, and what to do if someone's already in.
  3. 03The access review nobody dreads
  4. 04Is your AI agent running on someone else's login? Give it its own, and cap what it can do
  5. 05Who owns your AI agents? How to find them, give each one a sponsor and stop their access creeping
  6. 06Stopping a rogue AI agent: kill switches, token revocation and what OAuth can't do yet
  7. 07From AI development to AI governance with AIDLC
  8. 08SuccessFactors basic auth is going away: moving Entra HR provisioning to workload identity
  9. 09What breaks in Entra ID this November: MemberOf, the PIM beta APIs and agent permissions
  10. 10Your Entra-to-Salesforce provisioning breaks on December 1. One permission fixes it
  11. 11Zendesk is killing API tokens, and your Entra ID provisioning still runs on one
  12. 12Everyone is racing to give AI more autonomy. Who's building the brakes?
  13. 13Your Entra provisioning jobs for GoTo, Vonage and Puzzel need new credentials before spring
  14. 14Identity Security Cloud provisioning failed? Where to look first, and what usually fixes it
  15. 15Moving Delinea Server Suite from classic to hierarchical zones without breaking logins
  16. 16When a PingAM or ForgeRock login keeps failing, how do you find the broken node?
  17. 17Why Okta SCIM provisioning fails, and how to read the errors it leaves behind
  18. 18PingFederate SAML errors: where to look in the logs and how to fix the common failures
all learning tracks →
01 Entraprovisioning 02 AuthorizationCode retiring 03 31 Mar 2027 04 Clientcredentials
Security · 12 minYour Entra provisioning jobs for GoTo, Vonage and Puzzel need new credentials before spring

One sign-in method retires; give the job its own credentials

read next
next step

Tell us what you're running. We'll tell you what we'd do first.

A 30-minute working session with a senior engineer. No slides.

useful to bring
  • The platform and the version you're on
  • Where you need to get to, and by when
  • What's custom: rules, plugins, integrations
  • Any audit finding or deadline driving it